Created attachment 395000 [details] build.log Hi guys, I needed nagios on a box without web service installed, so tried it with USE="-web". Portage fails in src_install cause it tries to install css files on a place that was never created(there is a sed oneliner which disables this in Makefile, but it is incomplete and has to be improved to handle the css files too, afterwards). ((~amd64-pure)) Tethys image # emerge --info Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.8.4, glibc-2.20-r1, 3.18.2-gentoo_Tethys_10Jan15 x86_64) ================================================================= System uname: Linux-3.18.2-gentoo_Tethys_10Jan15-x86_64-AMD_FX-tm-8150_Eight-Core_Processor-with-gentoo-2.2 KiB Mem: 32840224 total, 7174136 free KiB Swap: 67043324 total, 67043324 free Timestamp of tree: Tue, 27 Jan 2015 12:15:01 +0000 sh bash 4.3_p33 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p33 dev-lang/perl: 5.20.1-r4 dev-lang/python: 2.7.9-r1, 3.3.5-r1, 3.4.2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.6 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4, 1.15 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.4 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.4 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 3.18 (virtual/os-headers) sys-libs/glibc: 2.20-r1 Repositories: gentoo guile ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -Og -pipe -g -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -Og -pipe -g -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=1" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/" LANG="C" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/guile" SYNC="rsync://rsync.gr.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" APACHE2_MODULES="*" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" 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 ublox ubx" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ((~amd64-pure)) Tethys image # emerge -pv nagios-core These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-analyzer/nagios-core-3.5.1 USE="-apache2 -debug -lighttpd -perl -vim-syntax -web" 0 KiB Total: 1 package (1 new), Size of downloads: 0 KiB ((~amd64-pure)) Tethys image #
Created attachment 395004 [details, diff] proposed fix I will apply this right away cause it hits stable and is simple, unless I've screwed the logic somehow. I'm not sure what happens when someone has apache2 or lighttpd enabled but web use flag disabled.
--- ./ChangeLog +++ ./ChangeLog @@ -2 +2 @@ -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 @@ -4,0 +5,5 @@ + 27 Jan 2015; Panagiotis Christopoulos <pchrist@gentoo.org> + nagios-core-3.5.1.ebuild: + Better USE=-web handling for 3.5.1, fixes bug #537974, btw the whole -web + thing needs improvement + I'll close the bug in some hours.