Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555706 - sys-apps/util-linux[unicode]: missing depend on sys-libs/ncurses[unicode]
Summary: sys-apps/util-linux[unicode]: missing depend on sys-libs/ncurses[unicode]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 15:54 UTC by Ashley Skye
Modified: 2015-08-04 14:05 UTC (History)
0 users

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


Attachments
emerge -ebk --binpkg-respect-use=y world -pv (world.1,22.79 KB, text/plain)
2015-07-23 15:54 UTC, Ashley Skye
Details
emerge -e world -pv (world.2,24.85 KB, text/plain)
2015-07-23 15:55 UTC, Ashley Skye
Details
output from emerge (emerge_error,3.14 KB, text/plain)
2015-07-23 15:58 UTC, Ashley Skye
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ashley Skye 2015-07-23 15:54:27 UTC
Created attachment 407458 [details]
emerge -ebk --binpkg-respect-use=y world -pv

When building sys-libs/glibc from a pre-built package (binpkg) the dependencies seem to be calculated incorrectly.  The sys-libs/glibc build calls /usr/bin/cal at one point early on (preinst phase) which is part of the sys-apps/util-linux package.  When building from source, util-linux is built before glibc and no issue is observed; however, when installing from prebuilt binaries, util-linux is evaluated to be installed after glibc.
In my specific case, the issue is that util-linux, while present, is linked against a version of ncurses that has unicode support.  The version of ncurses installed (ordered before both glibc and util-linux) no longer has unicode support, thus breaking the util-linux binaries that relied on it.  As mentioned, this breakage is never observed when building normally as the order is correctly evaluated.
Comment 1 Ashley Skye 2015-07-23 15:55:17 UTC
Created attachment 407460 [details]
emerge -e world -pv
Comment 2 Ashley Skye 2015-07-23 15:58:04 UTC
Created attachment 407462 [details]
output from emerge
Comment 3 SpanKY gentoo-dev 2015-08-04 02:20:30 UTC
i don't think this is an issue with glibc.  util-linux does not express the ncurses/unicode relationship via its dependency tree.  glibc is free to assume that installed binaries are not broken.
Comment 4 SpanKY gentoo-dev 2015-08-04 05:49:41 UTC
should be all set now in the tree; thanks for the report!

Commit message: Use subslots/USE deps for ncurses/udev
http://sources.gentoo.org/sys-apps/util-linux/util-linux-2.26.2.ebuild?r1=1.2&r2=1.3
http://sources.gentoo.org/sys-apps/util-linux/util-linux-9999.ebuild?r1=1.64&r2=1.65
Comment 5 Ashley Skye 2015-08-04 14:05:20 UTC
Fantastic!
Makes sense that it was in util-linux.
Thanks for the fix!