Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133547 - baselayout-1.12.0_pre19-r2 does not pass LIBDIR to make during make install
Summary: baselayout-1.12.0_pre19-r2 does not pass LIBDIR to make during make install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-16 15:37 UTC by Jonathan Coome (RETIRED)
Modified: 2006-05-22 08:05 UTC (History)
5 users (show)

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 Jonathan Coome (RETIRED) gentoo-dev 2006-05-16 15:37:43 UTC
Baselayout passes LIBDIR to make during src_compile, but not during src_install. This means that the default, "lib", gets used instead, and so rcscripts/conf.d/${SYS_WHITELIST} is installed into /lib regardless of how $LIBDIR was specified when compiling. This normally isn't a problem because if /lib isn't $LIBDIR directory it will be a symlink to $LIBDIR, but if there is no /lib the Makefile creates it as a directory. This leads to the creation of /lib, /lib64 and /lib32 all as directories on amd64, for instance.

rm -r "${D}"/{lib,usr/lib,usr/local/lib} (line 251) has no effect because at that point there is no /lib directory, and ksym only creates the symlinks during pkg_postinst. By this point the /lib directory exists, and so mklinks.sh doesn't try to create the symlink.

So, it seems the solution is to pass LIBDIR to make install, then nothing will be created in /lib and the symlink from /lib to /lib64 will be created successfully.
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2006-05-16 15:41:49 UTC
This bug is critical from releng pov. CC'ing Chris G.
Comment 2 Jonathan Coome (RETIRED) gentoo-dev 2006-05-17 00:06:31 UTC
kdir /lib/dev-state
kdir /lib/udev-state

These two lines (253..254) also create /lib as a directory, as mkdirs.sh is done before mklinks.sh.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-05-17 02:13:36 UTC
Fixed.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-17 14:23:55 UTC
Removing myself, adding release@
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-05-18 07:25:58 UTC
*** Bug 122274 has been marked as a duplicate of this bug. ***