Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25604 - tcp-wrappers 7.6-r4 fails to build when using -j without an argument in MAKEOPTS
Summary: tcp-wrappers 7.6-r4 fails to build when using -j without an argument in MAKEOPTS
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-30 20:16 UTC by Steven Elling
Modified: 2011-10-30 22:17 UTC (History)
0 users

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


Attachments
Patch for tcp-wrappers-7.6-r4.ebuild (tcp-wrappers-7.6-r4.ebuild.patch,945 bytes, patch)
2003-07-30 20:18 UTC, Steven Elling
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Elling 2003-07-30 20:16:45 UTC
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'.
Comment 1 Steven Elling 2003-07-30 20:18:17 UTC
Created attachment 15260 [details, diff]
Patch for tcp-wrappers-7.6-r4.ebuild
Comment 2 SpanKY gentoo-dev 2003-07-30 20:29:24 UTC
(1) disable usersandbox/userpriv and try again 
(2) post `emerge info` 
Comment 3 Steven Elling 2003-07-30 21:02:06 UTC
(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" 
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2003-08-04 17:11:01 UTC
This should be fixed in tcp-wrappers-7.6-r6. If not, please reopen this bug.