Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639754 - sys-libs/db-1.85-r3 - /usr/bin/install: cannot remove '/usr/lib64/libdb1.a': Permission denied
Summary: sys-libs/db-1.85-r3 - /usr/bin/install: cannot remove '/usr/lib64/libdb1.a': ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-04 12:09 UTC by Volker Wegert
Modified: 2019-11-07 17:35 UTC (History)
1 user (show)

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


Attachments
sys-libs_db-1.85-r3_20171204-114850.log (sys-libs_db-1.85-r3_20171204-114850.log,15.54 KB, text/plain)
2017-12-04 12:09 UTC, Volker Wegert
Details
emerge --info '=sys-libs/db-1.85-r3::gentoo' (emerge-info.txt,6.21 KB, text/plain)
2017-12-04 12:11 UTC, Volker Wegert
Details
emerge -pqv '=sys-libs/db-1.85-r3::gentoo' (emerge-pqv.txt,37 bytes, text/plain)
2017-12-04 12:11 UTC, Volker Wegert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Wegert 2017-12-04 12:09:13 UTC
Created attachment 508016 [details]
sys-libs_db-1.85-r3_20171204-114850.log

Following the procedures for the profile change from 13 to 17, I'm attempting to perform the last step (emerge -e @world). This fails when re-merging sys-libs/db-1.85-r3:

[...]
>>> Test phase [not enabled]: sys-libs/db-1.85-r3

>>> Install db-1.85-r3 into /var/tmp/portage/sys-libs/db-1.85-r3/image/ category sys-libs
make: Entering directory '/var/tmp/portage/sys-libs/db-1.85-r3/work/db.1.85/PORT/linux'
install -m 0755 -d /usr/lib64 /usr/include/db1 /usr/bin
install -m 0644 libdb1.a /usr/lib64
 * ACCESS DENIED:  unlink:       /usr/lib64/libdb1.a
/usr/bin/install: cannot remove '/usr/lib64/libdb1.a': Permission denied
make: *** [Makefile:37: install] Error 1
make: Leaving directory '/var/tmp/portage/sys-libs/db-1.85-r3/work/db.1.85/PORT/linux'
 * ERROR: sys-libs/db-1.85-r3::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_install
 *   environment, line 1924:  Called die
 * The specific snippet of code:
 *       make -C PORT/linux install DESTDIR="${ED}" || die;
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/db-1.85-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/db-1.85-r3::gentoo'`.
 * The complete build log is located at '/var/log/portage/sys-libs:db-1.85-r3:20171204-114850.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-libs/db-1.85-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/db-1.85-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/db-1.85-r3/work/db.1.85'
 * S: '/var/tmp/portage/sys-libs/db-1.85-r3/work/db.1.85'
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-3107.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: unlink
S: deny
P: /usr/lib64/libdb1.a
A: /usr/lib64/libdb1.a
R: /usr/lib64/libdb1.a
C: /usr/bin/install -m 0644 libdb1.a /usr/lib64 
 * --------------------------------------------------------------------------------
Comment 1 Volker Wegert 2017-12-04 12:11:02 UTC
Created attachment 508018 [details]
emerge --info '=sys-libs/db-1.85-r3::gentoo'
Comment 2 Volker Wegert 2017-12-04 12:11:23 UTC
Created attachment 508020 [details]
emerge -pqv '=sys-libs/db-1.85-r3::gentoo'
Comment 3 Nico R. 2018-01-27 22:44:43 UTC
Need to set EAPI=3 (or higher) in ebuild, as it uses ${ED}.

See <https://devmanual.gentoo.org/eclass-reference/ebuild/index.html#lbAF> for detailed description of ${ED}.
Comment 4 Larry the Git Cow gentoo-dev 2019-11-07 17:35:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35649ba689623e24501e7091b13eb8ba8d60fc84

commit 35649ba689623e24501e7091b13eb8ba8d60fc84
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-11-07 17:35:02 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-11-07 17:35:18 +0000

    sys-libs/db: First batch of EAPI-7 revbumps
    
    Bug: https://bugs.gentoo.org/697542
    Closes: https://bugs.gentoo.org/612686
    Closes: https://bugs.gentoo.org/639754
    Closes: https://bugs.gentoo.org/603680
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../db/{db-1.85-r3.ebuild => db-1.85-r4.ebuild}    |  30 ++--
 .../{db-3.2.9_p2.ebuild => db-3.2.9_p2-r1.ebuild}  | 177 +++++++++++----------
 ...-4.2.52_p5-r1.ebuild => db-4.2.52_p5-r2.ebuild} | 164 +++++++++++--------
 ...-4.3.29_p1-r1.ebuild => db-4.3.29_p1-r2.ebuild} | 158 ++++++++++--------
 ...-4.4.20_p4-r1.ebuild => db-4.4.20_p4-r2.ebuild} | 146 +++++++++--------
 sys-libs/db/files/db-1.85-gentoo-paths.patch       |   4 +-
 sys-libs/db/files/db-3.2.9-gcc43.patch             |   2 +-
 .../db/files/db-4.2-jni-check-prefix-first.patch   |   4 +-
 .../db/files/db-4.2-listen-to-java-options.patch   |   4 +-
 sys-libs/db/files/db-4.2.52_p2-TXN.patch           |   8 +-
 .../db/files/db-4.3-jni-check-prefix-first.patch   |   4 +-
 sys-libs/db/files/db-4.3-libtool.patch             |   4 +-
 sys-libs/db/files/db-4.4-libtool.patch             |   4 +-
 13 files changed, 398 insertions(+), 311 deletions(-)