Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405795 - sys-fs/zfs-9999 fails during install, *.a *.la being installed to /
Summary: sys-fs/zfs-9999 fails during install, *.a *.la being installed to /
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Yao (RETIRED)
URL: https://github.com/zfsonlinux/zfs/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-25 18:14 UTC by Andrew D Kirch
Modified: 2012-02-27 01:14 UTC (History)
1 user (show)

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


Attachments
compile output for ZFS (zfscompile.log,193.96 KB, text/plain)
2012-02-25 18:16 UTC, Andrew D Kirch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew D Kirch 2012-02-25 18:14:16 UTC
ZFS fails to install, possible FHS compliance issues in ZFS product.  Link goes to thread.

Reproducible: Always

Steps to Reproduce:
1. emerge spl/zfs on a system which doesn't have it
2.
3.
Actual Results:  
compile bomb, see attached log.


localhost src # emerge --info =sys-fs/zfs-9999
Portage 2.3.2-r2 (default/linux/x86/2008.0/desktop, gcc-4.6.2, glibc-2.13-r4, 3.2.6-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.6-gentoo-i686-Intel-R-_Core-TM-_i7_CPU_Q_740_@_1.73GHz-with-gentoo-2.1.8
Timestamp of tree: Sat, 25 Feb 2012 07:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r1, 2.7.1-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1.8-r3
sys-apps/openrc:          0.8.3-r5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
Installed sets:
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -fomit-frame-pointer -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/portage-mini-2011.git"
SYNC_USER="root"
USE="X a52 aac acl acpi alac alsa apng bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dhcpcd dri dts dvd dvdr dvdread emboss encode exif fam fastscroll firefox flac fortran gdbm gdu gif gnome gpm gtk hires-icons iconv ipv6 java jpeg kde kdrive lame lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nss ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt-webkit qt3 qt3support qt4 readline sasl sdl session spell sql sqlite ssl startup-notification static-libs svg sysfs tcpd tiff truetype udev unicode usb vorbis wavpack webkit win32codecs x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="virtualbox evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
localhost src # emerge -pqv =sys-fs/zfs-9999
[ebuild  N    ] sys-fs/zfs-9999  USE="static-libs -debug"
Comment 1 Andrew D Kirch 2012-02-25 18:16:12 UTC
Created attachment 303195 [details]
compile output for ZFS
Comment 2 Mike Gilbert gentoo-dev 2012-02-25 20:40:12 UTC
This is triggered by USE=static-libs.

 * QA Notice: Excessive files found in the / partition
 * /tmp/portage/sys-fs/zfs-9999/image/lib64/libnvpair.a
 * /tmp/portage/sys-fs/zfs-9999/image/lib64/libnvpair.la
 * /tmp/portage/sys-fs/zfs-9999/image/lib64/libuutil.a
 * /tmp/portage/sys-fs/zfs-9999/image/lib64/libuutil.la
 * /tmp/portage/sys-fs/zfs-9999/image/lib64/libzfs.a
 * /tmp/portage/sys-fs/zfs-9999/image/lib64/libzfs.la
 * /tmp/portage/sys-fs/zfs-9999/image/lib64/libzpool.a
 * /tmp/portage/sys-fs/zfs-9999/image/lib64/libzpool.la

 * ERROR: sys-fs/zfs-9999 failed:
 *   static archives (*.a) and libtool library files (*.la) do not belong in /

As the message says, *.a and *.la should not be installed in /lib. They need to be moved to /usr/lib.

I will leave it as an exercise for Richard to figure out how to do it.

I suggest looking at the gen_usr_ldscript function in toolchain-funcs.eclass. You can grep for that in existing ebuilds to see how it is used.
Comment 3 Richard Yao (RETIRED) gentoo-dev 2012-02-27 01:14:16 UTC
This is now fixed in portage.