Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473440 - FEATURES="preserve-libs" breaks db.eclass
Summary: FEATURES="preserve-libs" breaks db.eclass
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 519092 520390 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-16 00:44 UTC by Rick Harris
Modified: 2022-07-27 07:43 UTC (History)
4 users (show)

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


Attachments
db.eclass_preserve-rebuild-fix.diff (db.eclass_preserve-rebuild-fix.diff,1.03 KB, patch)
2013-06-16 00:44 UTC, Rick Harris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Harris 2013-06-16 00:44:08 UTC
Created attachment 351070 [details, diff]
db.eclass_preserve-rebuild-fix.diff

db.eclass creates incorrect symlinks to libraries left behind by FEATURES="preserve-libs"

Steps to reproduce:
1. emerge -1 db:4.6 db:4.7 db:4.8
2. emerge something that links to libdb.so (eg. USE="berkdb" emerge iproute2)
3. emerge -C db:4.8

# ls -l /usr/lib/libdb.so
lrwxrwxrwx 1 root root /usr/lib/libdb.so -> libdb-4.8.so

# ls -l /usr/include/db.h
lrwxrwxrwx 1 root root /usr/include/db.h -> db4.7/db.h

This causes 'emerge @preserved-rebuild' to be stuck in a loop as the packages being rebuilt, build against the preserved lib file.

It also causes packages trying to build, to fail with db.h header file and db library version mismatch.
Comment 1 Pacho Ramos gentoo-dev 2013-08-23 11:01:54 UTC
sys-libs/db is the only consumer of this eclass
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-21 11:32:13 UTC
*** Bug 520390 has been marked as a duplicate of this bug. ***
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-21 11:32:27 UTC
*** Bug 519092 has been marked as a duplicate of this bug. ***
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-27 07:43:33 UTC
We can't rely on Portage internals like that.