Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341983 - app-backup/bacula-5.0.3-r1 fails with USE="static"
Summary: app-backup/bacula-5.0.3-r1 fails with USE="static"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 341471
  Show dependency tree
 
Reported: 2010-10-21 09:42 UTC by David Abbott
Modified: 2010-12-29 10:31 UTC (History)
2 users (show)

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


Attachments
build log (app-backup:bacula-5.0.3-r1:20101021-091646.log,10.38 KB, text/plain)
2010-10-21 09:43 UTC, David Abbott (RETIRED)
Details
config log (config.log,40.99 KB, text/plain)
2010-10-21 09:43 UTC, David Abbott (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Abbott (RETIRED) gentoo-dev 2010-10-21 09:42:57 UTC
While Arch testing with different USE combinations I ran into;

configure: error: Libtool is enabled, not compatible with static tools,
  please rerun configure with --disable-libtool

I will attach build.log and configure.log


Reproducible: Always




emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 21 Oct 2010 01:00:21 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.6.3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages keeptemp metadata-transfer news parallel-fetch protect-owned sandbox sfperms splitdebug strict test test-fail-continue unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 aspell assistant berkdb bluetooth branding bzip2 cairo ccache cdb cddb cdio cdparanoia cdr cdrom cdrtools cleartype colordiff colors consolekit contrib corefonts cracklib crypt cups curl cvs cvsgraph cxx dahdi dbus device-mapper dhcpcd djvu doc dri dts dvd dvdr eds emboss encode evo exif extensions extras fam ffmpeg firefox firefox3 flac fortran gcj gd gdbm gdu gedit gif gimp glep glitz gnome gnome-keyring gnome-print gnomecd gnutls gpg gpm gstreamer gtk gtk2-perl guidexml hal iconv id3tag ipv6 jabber jadetex jpeg kde lame lcms ldap libnotify libv4l libv4l2 lm_sensors logrotate logviewer logwatch mad maildir mikmod mjpeg mng modules mp2 mp3 mp4 mpd mpeg mplayer mudflap mysql nautilus ncurses nls nptl nptlonly nvidia ogg ogg123 opengl openmp openssl oss pae pam pango pdf perl png policykit portage ppds pppd pulseaudio python qemu qt3support qt4 readline sdl slang speex spell sqlite sqlite3 ssl startup-notification svg sysfs tcpd tiff tk truetype unicode usb v4l v4l2 vim vim-syntax vim-with-x vorbis x264 x86 xcb xft xml xorg xterm xterm-color xulrunner xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 David Abbott (RETIRED) gentoo-dev 2010-10-21 09:43:27 UTC
Created attachment 251423 [details]
build log
Comment 2 David Abbott (RETIRED) gentoo-dev 2010-10-21 09:43:46 UTC
Created attachment 251425 [details]
config log
Comment 3 Thomas Beierlein gentoo-dev 2010-10-23 15:19:53 UTC
Thanks for pointing that out David. Good catch. Just checked: It does also not work on (mostly) stable version 5.0.2-r2.

(In reply to comment #0)
>
> configure: error: Libtool is enabled, not compatible with static tools,
>   please rerun configure with --disable-libtool
> 
Since bacula-5.*.* upstream forces a complete static link to a lot of libs - even complete glibc.
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2010-12-16 13:38:47 UTC
I just emailed to gentoo-dev about this, but I think the only option would be to mask the static use-flag, right?
Comment 5 Thomas Beierlein gentoo-dev 2010-12-17 08:11:24 UTC
(In reply to comment #4)
> I just emailed to gentoo-dev about this, but I think the only option would be
> to mask the static use-flag, right?
> 
I have not quite decided how to proceed. 

a) There seems to be not so much scenarios where you would need that feature. That means mask (or better drop) the flag would be good.

b) A static linked file daemon may make sense for restoring a backup during disaster recovery. So we could restrict USE=static to work only for USE=bacula-clientonly. But there may be need for a lot of additional libs as a static version (e.g. openssl, readline, ...).


Comment 6 Thomas Kahle (RETIRED) gentoo-dev 2010-12-17 08:27:18 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > I just emailed to gentoo-dev about this, but I think the only option would be
> > to mask the static use-flag, right?
> > 
> I have not quite decided how to proceed. 
> 
> a) There seems to be not so much scenarios where you would need that feature.
> That means mask (or better drop) the flag would be good.
> 
> b) A static linked file daemon may make sense for restoring a backup during
> disaster recovery. So we could restrict USE=static to work only for
> USE=bacula-clientonly. But there may be need for a lot of additional libs as a
> static version (e.g. openssl, readline, ...).

(b) Seems to be not so much of a problem to me.  glibc, readline, openssl, and any other package without a 'static-libs' use flag installs both the .a and the .so.  It should be fine if we make sure to depend on the 'static-libs' use flag for libs that support it (I have not checked if this applies to any of the bacula deps)
Comment 7 Thomas Beierlein gentoo-dev 2010-12-17 08:37:56 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > I just emailed to gentoo-dev about this, but I think the only option would be
> > > to mask the static use-flag, right?
> > > 
> > I have not quite decided how to proceed. 
> > 
> > a) There seems to be not so much scenarios where you would need that feature.
> > That means mask (or better drop) the flag would be good.
> > 
> > b) A static linked file daemon may make sense for restoring a backup during
> > disaster recovery. So we could restrict USE=static to work only for
> > USE=bacula-clientonly. But there may be need for a lot of additional libs as a
> > static version (e.g. openssl, readline, ...).
> 
> (b) Seems to be not so much of a problem to me.  glibc, readline, openssl, and
> any other package without a 'static-libs' use flag installs both the .a and the
> .so.  It should be fine if we make sure to depend on the 'static-libs' use flag
> for libs that support it (I have not checked if this applies to any of the
> bacula deps)
> 

OK, I will look for it next days.
Comment 8 Thomas Beierlein gentoo-dev 2010-12-29 10:31:19 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > I just emailed to gentoo-dev about this, but I think the only option would be
> > > to mask the static use-flag, right?
> > > 
> > I have not quite decided how to proceed. 
> > 
> > a) There seems to be not so much scenarios where you would need that feature.
> > That means mask (or better drop) the flag would be good.
> > 
> > b) A static linked file daemon may make sense for restoring a backup during
> > disaster recovery. So we could restrict USE=static to work only for
> > USE=bacula-clientonly. But there may be need for a lot of additional libs as a
> > static version (e.g. openssl, readline, ...).
> 
> (b) Seems to be not so much of a problem to me.  glibc, readline, openssl, and
> any other package without a 'static-libs' use flag installs both the .a and the
> .so.  It should be fine if we make sure to depend on the 'static-libs' use flag
> for libs that support it (I have not checked if this applies to any of the
> bacula deps)
> 
Fixed in n new revision. USE=static is only supported if USE=bacula-clientonly. 

+*bacula-5.0.3-r2 (29 Dec 2010)
+
+  29 Dec 2010; Thomas Beierlein <tomjbe@gentoo.org> +bacula-5.0.3-r2.ebuild,
+  +files/5.0.3/bacula-5.0.3-fix-static.patch:
+  Fix USE=static - only supported for bacula-clientonly now. bug #341983.
+  Thanks dabbott@gentoo.org for reporting
+