When emerging apcupsd-3.10.16-r2, it doesn't build e.g. its cgi scripts. The ebuild uses a variable $myconf where the configure options are concatenated when checking the use flags. But the last line clears the $myconf, leaving only the options of a USE="-usb" in. Reproducible: Always Steps to Reproduce: 1. USE="gd" emerge =apcupsd-3.10.16-r2 # USE="gd" enables the CGI part 2. This should build apcupsd with the CGI programs in /var/www/apcupsd 3. ls -l /var/www/apcupsd Actual Results: The CGI part is not built because the ./configure is not called with --enable-cgi. Expected Results: The CGI scripts should have been built and installed /var/www/apcupsd. Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-eden2 i686) ================================================================= System uname: 2.6.9-eden2 i686 VIA Nehemiah Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -mcpu=i686 -Os -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -mcpu=i686 -Os -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg candy ccache digest distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="acpi acpi4linux apache2 bash-completion berkdb bitmap-fonts cle266 crypt cyrus dvd ethereal fbcon fortran freetype gd gtk2 hardenedphp idea imap jpeg libg++ libwww maildir md5sum mmx mpi ncurses nls pam perl png python readline samba sasl slang sse ssl tiff truetype usb x86 xml xml2 zlib"
Created attachment 45409 [details, diff] Patch to the ebuild to handle all possible use flags. This patch changes the ebuild so that it actually concatenates all the ./configure flags in $myconf without subsequent use flags overwriting already existing ones.
I checked in -r3 with your patch. Thanks for your help and thanks for reminding me in person ;)