Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620016 - sys-libs/libuuid-1.0.3: rm: cannot remove '/var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib/*.la'
Summary: sys-libs/libuuid-1.0.3: rm: cannot remove '/var/tmp/portage/sys-libs/libuuid-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-28 13:21 UTC by Peter
Modified: 2017-06-20 11:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2017-05-28 13:21:23 UTC
In ebuild file, https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/libuuid/libuuid-1.0.3.ebuild?id=468c73bad702e3b7ca82203d3953bc4f33488a1f, line 31 tries to delete the libtools files (*.la) in post build step, at which point the script exits with "No such file or directory".

Steps to repro

Docker:

```dockerfile
FROM gentoo/stage3-amd64-hardened:latest

RUN emerge-webrsync

RUN emerge --autounmask-write sys-libs/libuuid; \
    etc-update --automode -5; \
    emerge sys-libs/libuuid
```

Output:

```log
...
...
>>> Install libuuid-1.0.3 into /var/tmp/portage/sys-libs/libuuid-1.0.3/image/ category sys-libs
make -j4 DESTDIR=/var/tmp/portage/sys-libs/libuuid-1.0.3/image/ install 
make[1]: Entering directory '/var/tmp/portage/sys-libs/libuuid-1.0.3/work/libuuid-1.0.3'
 /bin/mkdir -p '/var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64/pkgconfig'
 /bin/mkdir -p '/var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64'
 /bin/mkdir -p '/var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/include/uuid'
 /bin/sh ./libtool   --mode=install /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c   libuuid.la '/var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64'
 /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c -m 644 uuid.pc '/var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64/pkgconfig'
 /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c -m 644 uuid.h '/var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/include/uuid'
libtool: install: /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c .libs/libuuid.so.1.0.0 /var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64/libuuid.so.1.0.0
libtool: install: (cd /var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64 && { ln -s -f libuuid.so.1.0.0 libuuid.so.1 || { rm -f libuuid.so.1 && ln -s libuuid.so.1.0.0 libuuid.so.1; }; })
libtool: install: (cd /var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64 && { ln -s -f libuuid.so.1.0.0 libuuid.so || { rm -f libuuid.so && ln -s libuuid.so.1.0.0 libuuid.so; }; })
libtool: install: /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c .libs/libuuid.lai /var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64/libuuid.la
libtool: install: warning: remember to run `libtool --finish /usr/lib64'
make[1]: Leaving directory '/var/tmp/portage/sys-libs/libuuid-1.0.3/work/libuuid-1.0.3'
rm: cannot remove '/var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib/*.la': No such file or directory
 * ERROR: sys-libs/libuuid-1.0.3::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called src_install
 *   environment, line 1270:  Called die
 * The specific snippet of code:
 *       rm "${ED}"/usr/lib/*.la || die
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/libuuid-1.0.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libuuid-1.0.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libuuid-1.0.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libuuid-1.0.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/libuuid-1.0.3/work/libuuid-1.0.3'
 * S: '/var/tmp/portage/sys-libs/libuuid-1.0.3/work/libuuid-1.0.3'

>>> Failed to emerge sys-libs/libuuid-1.0.3, Log file:

>>>  '/var/tmp/portage/sys-libs/libuuid-1.0.3/temp/build.log'
 * Messages for package sys-libs/libuuid-1.0.3:
 * ERROR: sys-libs/libuuid-1.0.3::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called src_install
 *   environment, line 1270:  Called die
 * The specific snippet of code:
 *       rm "${ED}"/usr/lib/*.la || die
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/libuuid-1.0.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libuuid-1.0.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libuuid-1.0.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libuuid-1.0.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/libuuid-1.0.3/work/libuuid-1.0.3'
 * S: '/var/tmp/portage/sys-libs/libuuid-1.0.3/work/libuuid-1.0.3'


The command '/bin/sh -c emerge --autounmask-write sys-libs/libuuid;     etc-update --automode -5;     emerge sys-libs/libuuid' returned a non-zero code: 1
```
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-05-28 13:43:10 UTC
On a side note, sys-libs/libuuid is not meant to be installed with amd64.

sys-apps/util-linux includes libuuid.so
Comment 2 Fabian Groffen gentoo-dev 2017-05-28 13:45:42 UTC
side-side-note: then why are you trying to install it? :)
Comment 3 Fabian Groffen gentoo-dev 2017-05-28 14:04:15 UTC
On Solaris, where this is keyworded, this works fine.  libtool is used and the .la is generated to be removed.

Since this happens for you:

libtool: install: /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c .libs/libuuid.lai /var/tmp/portage/sys-libs/libuuid-1.0.3/image//usr/lib64/libuuid.la

I wonder if something else removes it for you without telling.
Comment 4 Fabian Groffen gentoo-dev 2017-06-20 11:35:12 UTC
I added -f to the rm call, that should silence the error for you.