Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256369 - sys-libs/libcap
Summary: sys-libs/libcap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-25 23:50 UTC by Chris Brennan
Modified: 2009-03-23 15:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info_twinkie,3.24 KB, text/plain)
2009-01-25 23:51 UTC, Chris Brennan
Details
libcap-2.16.ebuild (libcap-2.16.ebuild,1.25 KB, text/plain)
2009-01-25 23:51 UTC, Chris Brennan
Details
Fix to the ebuild. Tested in ~amd-linux prefix. (libcap-2.16.ebuild.patch,587 bytes, patch)
2009-03-11 20:49 UTC, Heiko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Brennan 2009-01-25 23:50:35 UTC
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
Comment 1 Chris Brennan 2009-01-25 23:51:01 UTC
Created attachment 179722 [details]
emerge --info
Comment 2 Chris Brennan 2009-01-25 23:51:22 UTC
Created attachment 179724 [details]
libcap-2.16.ebuild
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-01-26 15:39:55 UTC
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...)
Comment 4 Chris Brennan 2009-01-27 00:57:13 UTC
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
Comment 5 Heiko 2009-03-11 20:48:21 UTC
(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.
Comment 6 Heiko 2009-03-11 20:49:31 UTC
Created attachment 184742 [details, diff]
Fix to the ebuild. Tested in ~amd-linux prefix.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-23 15:03:58 UTC
(In reply to comment #6)
> Created an attachment (id=184742) [edit]
> Fix to the ebuild. Tested in ~amd-linux prefix.
> 

doh, thx!