If the -j option is added to MAKEOPTS without an argument, the build of tcp-wrappers will fail with the error "No rule to make target cflags, needed by `tcpd.o`." This will probably effect most versions of tcp-wrappers but this is being reported for 7.6-r4. I also noticed the following error during the unpack phase: "/usr/sbin/ebuild.sh: line 32: Makefile: Permission denied" Reproducible: Always Steps to Reproduce: 1. Add '-j' to MAKEOPTS without an argument. 2. emerge tcp-wrappers Actual Results: setup unpack >>> Unpacking source... >>> Unpacking tcp_wrappers_7.6.tar.gz to /var/tmp/portage/tcp-wrappers-7.6-r4/work >>> Unpacking tcp-wrappers-7.6-r4-gentoo.tar.bz2 to /var/tmp/portage/tcp-wrappers-7.6-r4/work * Applying tcp_wrappers_7.6-ipv6-1.6.diff... [ ok ] * Applying tcp_wrappers_7.6-stdc.diff... [ ok ] * Applying tcp_wrappers_7.6.diff... [ ok ] /usr/sbin/ebuild.sh: line 32: Makefile: Permission denied >>> Source unpacked. compile make[1]: Entering directory `/var/tmp/portage/tcp-wrappers-7.6-r4/work/tcp_wrappers_7.6' make[1]: *** No rule to make target `cflags', needed by `tcpd.o'. Stop. make[1]: *** Waiting for unfinished jobs.... make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/tcp-wrappers-7.6-r4/work/tcp_wrappers_7.6' make: *** [linux] Error 2 !!! ERROR: sys-apps/tcp-wrappers-7.6-r4 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! (no error message) Expected Results: The ebuild should be able to modify the Makefile and build / install tcp-wrappers without errors. I've made changes to the ebuild to correct the "Makefile: Permission denied" error and to allow the ebuild to work with the '-j' option in MAKEOPTS. I have created a patch againts 'tcp-wrappers-7.6-r4.ebuild'.
Created attachment 15260 [details, diff] Patch for tcp-wrappers-7.6-r4.ebuild
(1) disable usersandbox/userpriv and try again (2) post `emerge info`
(1) disable usersandbox/userpriv and try again Disabling usersandbox/userpriv for one package is not acceptable to me and not needed in this case. There is an easy fix as indicated in my patch (chmod ug+w Makefile). IMHO, all packages should build no matter what FEATURES are enabled. (2) post `emerge info` Irrelivant except for usersandbox/userpriv but here you go anyway: Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Mobile Pentium II GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/local/share/data/pub/linux/gentoo/distfiles" PKGDIR="/usr/local/share/data/pub/linux/gentoo/packages/pentium2" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/share/data/pub/linux/gentoo/portage" USE="x86 oss apm avi crypt foomaticdb gif jpeg libg++ libwww mad mmx mpeg ncurses pdflib png spell truetype xml2 xv zlib gdbm berkdb slang readline arts tcltk java X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis qt kde motif opengl -3dnow cups dvd -encode fbcon -gnome gphoto2 gtk -mikmod -nls -quicktime svga threads -xmms pcmcia samba" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -mmmx -O2 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium2 -mmmx -O2 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j" AUTOCLEAN="yes" SYNC="rsync://my.network.server.hidden.name/gentoo-portage" FEATURES="ccache distcc userpriv sandbox"
This should be fixed in tcp-wrappers-7.6-r6. If not, please reopen this bug.