You are not logged in.
Everything for my package[1] was building fine until the most recent changes with GCC, or at least that is the best I can track it down to, as I built it just before the change, now it no longer builds with no modifications to the package. The PKGBUILD[2] is listed below as well.
The error I am getting is:
==> Starting package()...
/home/user/abs/MyAUR/pacmanager/PKGBUILD: line 37: cd: ../../pkg/usr/share/pacmanager/: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
the last line is line 37:
package() {
cd $srcdir/pac
mkdir -p $pkgdir/usr/{share/pacmanager/{lib,res,utils},bin}
/bin/tar cf - lib/* | ( cd ../../pkg/usr/share/pacmanager/; tar xfp - )
It is the tar cf - lib/* portion, it seems to make the directories. Is there a proper way to debug an issue like that that I am missing? Can anyone point out what the issue is with it?
Thanks for any help.
[1] https://aur.archlinux.org/packages/pa/pacmanager/
[2] https://aur.archlinux.org/packages/pa/p … r/PKGBUILD
Last edited by vwyodajl (2013-04-07 17:51:00)
Offline
Why cd ../../pkg/ instead of cd $pkgdir? That's why those variables exist; use them instead of navigating manually.
If you place echo $pkgdir before line 37 you'll see why it's failing. Or just go to pkg/ and see what is in there.
Offline
I think you should try to replace this strange tar-line with a copy:
mkdir -p $pkgdir/usr/{share/pacmanager/{lib,res,utils},bin}
cp -af lib "$pkgdir"/usr/share/pacmanager/
install -D -m 644 res/*png $pkgdir/usr/share/pacmanager/res
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Why are you using "../../pkg" instead of "$pkgdir"?
I suspect that you should also be using tar's "--directory" option instead of invoking a subshell and using "cd".
Then there's also the problem that you're using tar to begin with instead of installing files with utilities such as "install", "cp", etc.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I think you should try to replace this strange tar-line with a copy:
mkdir -p $pkgdir/usr/{share/pacmanager/{lib,res,utils},bin} cp -af lib "$pkgdir"/usr/share/pacmanager/ install -D -m 644 res/*png $pkgdir/usr/share/pacmanager/res
Thank you doing it that way worked.
Honestly I took the package over and had not really dug into the PKGBUILD until this issue. My fault I know. But I do thank you for pointing out the issues it currently has. I am going to go over the rest now to make sure it conforms properly.
Thanks.
Offline