ecopy sys-libs/libcap Reproducible: Always Actual Results: ebuild sys-libs/libcap/libcap*.ebuild test -> test successful Expected Results: portage sees new ebuild and installs correctly
Created attachment 179722 [details] emerge --info
Created attachment 179724 [details] libcap-2.16.ebuild
Sorry, don't have time to investigate at the moment but this ebuild does not work: mv: cannot stat `/public/tmp/linux-64/portage/sys-libs/libcap-2.16/image/home/jolexa/portage/linux-64//lib/libcap.a': No such file or directory * ERROR: sys-libs/libcap-2.16 failed: * (no error message) * * Call stack: * ebuild.sh: 49: <call src_install> * environment:2365: mv "${ED}"/$(get_libdir)/libcap.a "${ED}"/usr/$(get_libdir)/ || die; %% pwd /public/tmp/linux-64/portage/sys-libs/libcap-2.16/image/home/jolexa/portage/linux-64 %% find . . ./usr ./usr/lib A file is not installed and if it was, it was installed to usr/lib not lib/ (Oh, and a dep was missing. I wonder how you got this to work...)
yeah I got the same thing, my dumbness forgot to actually EMERGE my own ebuilds to finish the test results. Did that today and updated my bugs for prefix. A little investigation on this bug though showed me this: The ebuild wants a prefixed ...../lib/: 1) mv: cannot stat `/home/xaero/.local/var/tmp/portage/sys-libs/libcap-2.16/image/home/xaero/.local//lib/libcap.a': No such file or directory but this path is what us being made 2) ls /home/xaero/.local/var/tmp/portage/sys-libs/libcap-2.16/image/home/xaero/.local/usr/lib/ here we can see ./local/usr/lib is being asked for ... for shiggles, lets see if we can fool the ebuild ... xaero@xaerolimit.net [~/.local/usr/local/portage]# cd /home/xaero/.local/var/tmp/portage/sys-libs/libcap-2.16/image/home/xaero/.local xaero@xaerolimit.net [~/.local/var/tmp/portage/sys-libs/libcap-2.16/image/home/xaero/.local]# ls usr xaero@xaerolimit.net [~/.local/var/tmp/portage/sys-libs/libcap-2.16/image/home/xaero/.local]# ln -s usr/lib/ lib xaero@xaerolimit.net [~/.local/var/tmp/portage/sys-libs/libcap-2.16/image/home/xaero/.local]# ls -lsha total 12K 4.0K drwxr-xr-x 3 xaero xaero 4.0K 2009-01-26 19:37 . 4.0K drwxr-xr-x 3 xaero xaero 4.0K 2009-01-26 19:33 .. 0 lrwxrwxrwx 1 xaero xaero 8 2009-01-26 19:37 lib -> usr/lib/ 4.0K drwxr-xr-x 3 xaero xaero 4.0K 2009-01-26 19:33 usr xaero@xaerolimit.net [~/.local/var/tmp/portage/sys-libs/libcap-2.16/image/home/xaero/.local]# emerge libcap ... ... ... and it still failed .... investigating further, looked at the ebuild directly and found the line of the ebuild where it is failing, ln44 -> mv "${ED}"$(get_libdir)/libcap.a "${ED}"/usr/$(get_libdir)/ || die <- I removed the doubleslash in the error msg by removing the leading '/' infront of ${ED}. manifisted the changed ebuild and it still failed, same error. libcap.a does exist though (for me) in ~/.local/var/tmp/portage/sys-libs/libcap-2.16/image/lib xaero@xaerolimit.net [~/.local/var/tmp/portage/sys-libs/libcap-2.16/image/lib]# ls -lsha total 48K 4.0K drwxr-xr-x 3 xaero xaero 4.0K 2009-01-26 19:42 . 4.0K drwxr-xr-x 6 xaero xaero 4.0K 2009-01-26 19:42 .. 20K -rw-r--r-- 1 xaero xaero 18K 2009-01-26 19:42 libcap.a 0 lrwxrwxrwx 1 xaero xaero 11 2009-01-26 19:42 libcap.so -> libcap.so.2 0 lrwxrwxrwx 1 xaero xaero 14 2009-01-26 19:42 libcap.so.2 -> libcap.so.2.16 16K -rw-r--r-- 1 xaero xaero 16K 2009-01-26 19:42 libcap.so.2.16 4.0K drwxr-xr-x 2 xaero xaero 4.0K 2009-01-26 19:42 security xaero@xaerolimit.net [~/.local/var/tmp/portage/sys-libs/libcap-2.16/image/lib]# eye are fresh out of idea's now
(In reply to comment #3) > Sorry, don't have time to investigate at the moment but this ebuild does not > work: > The fix is trivially: just use ${ED} instead of ${D} for make install. The reason is that the DESTDIR is used as the (FAKE)ROOT the files should be installed in, thus all was put into $PORTAGE_TMPDIR}/.../image/usr, that is without the $EPREFIX. Fix to the ebuild in the created attachment.
Created attachment 184742 [details, diff] Fix to the ebuild. Tested in ~amd-linux prefix.
(In reply to comment #6) > Created an attachment (id=184742) [edit] > Fix to the ebuild. Tested in ~amd-linux prefix. > doh, thx!