<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>25604</bug_id>
          
          <creation_ts>2003-07-30 20:16 0000</creation_ts>
          <short_desc>tcp-wrappers 7.6-r4 fails to build when using -j without an argument in MAKEOPTS</short_desc>
          <delta_ts>2003-12-27 00:12:45 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Portage Development</product>
          <component>Unclassified (old)</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ellingsw+20942@gmail.com</reporter>
          <assigned_to>aliz@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ellingsw+20942@gmail.com</who>
            <bug_when>2003-07-30 20:16:45 0000</bug_when>
            <thetext>If the -j option is added to MAKEOPTS without an argument, the build of tcp-wrappers 
will fail with the error &quot;No rule to make target cflags, needed by `tcpd.o`.&quot;  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: 
&quot;/usr/sbin/ebuild.sh: line 32: Makefile: Permission denied&quot; 

Reproducible: Always
Steps to Reproduce:
1. Add &apos;-j&apos; to MAKEOPTS without an argument. 
2. emerge tcp-wrappers 
Actual Results:  
setup 
unpack 
&gt;&gt;&gt; Unpacking source... 
&gt;&gt;&gt; Unpacking tcp_wrappers_7.6.tar.gz to /var/tmp/portage/tcp-wrappers-7.6-r4/work 
&gt;&gt;&gt; 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 
&gt;&gt;&gt; Source unpacked. 
compile 
make[1]: Entering directory 
`/var/tmp/portage/tcp-wrappers-7.6-r4/work/tcp_wrappers_7.6&apos; 
make[1]: *** No rule to make target `cflags&apos;, needed by `tcpd.o&apos;.  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&apos; 
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&apos;ve made changes to the ebuild to correct the &quot;Makefile: Permission denied&quot; error and to 
allow the ebuild to work with the &apos;-j&apos; option in MAKEOPTS.  I have created a patch againts 
&apos;tcp-wrappers-7.6-r4.ebuild&apos;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ellingsw+20942@gmail.com</who>
            <bug_when>2003-07-30 20:18:17 0000</bug_when>
            <thetext>Created an attachment (id=15260)
Patch for tcp-wrappers-7.6-r4.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-07-30 20:29:24 0000</bug_when>
            <thetext>(1) disable usersandbox/userpriv and try again 
(2) post `emerge info` </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ellingsw+20942@gmail.com</who>
            <bug_when>2003-07-30 21:02:06 0000</bug_when>
            <thetext>(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=&quot;http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot; 
CONFIG_PROTECT=&quot;/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&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot; 
PORTDIR=&quot;/usr/portage&quot; 
DISTDIR=&quot;/usr/local/share/data/pub/linux/gentoo/distfiles&quot; 
PKGDIR=&quot;/usr/local/share/data/pub/linux/gentoo/packages/pentium2&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR_OVERLAY=&quot;/usr/local/share/data/pub/linux/gentoo/portage&quot; 
USE=&quot;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&quot; 
COMPILER=&quot;gcc3&quot; 
CHOST=&quot;i686-pc-linux-gnu&quot; 
CFLAGS=&quot;-march=pentium2 -mmmx -O2 -pipe -fomit-frame-pointer&quot; 
CXXFLAGS=&quot;-march=pentium2 -mmmx -O2 -pipe -fomit-frame-pointer&quot; 
ACCEPT_KEYWORDS=&quot;x86&quot; 
MAKEOPTS=&quot;-j&quot; 
AUTOCLEAN=&quot;yes&quot; 
SYNC=&quot;rsync://my.network.server.hidden.name/gentoo-portage&quot; 
FEATURES=&quot;ccache distcc userpriv sandbox&quot; </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aliz@gentoo.org</who>
            <bug_when>2003-08-04 17:11:01 0000</bug_when>
            <thetext>This should be fixed in tcp-wrappers-7.6-r6. If not, please reopen this bug.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>15260</attachid>
            <date>2003-07-30 20:18 0000</date>
            <desc>Patch for tcp-wrappers-7.6-r4.ebuild</desc>
            <filename>tcp-wrappers-7.6-r4.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHRjcC13cmFwcGVycy03LjYtcjQuZWJ1aWxkLm9yaWcJMjAwMy0wNy0zMCAxNzo1MzoxMi4w
MDAwMDAwMDAgLTA1MDAKKysrIHRjcC13cmFwcGVycy03LjYtcjQuZWJ1aWxkCTIwMDMtMDctMzAg
MjE6MzM6MDIuMDAwMDAwMDAwIC0wNTAwCkBAIC0yNywxNiArMjcsMjYgQEAKIAllcGF0Y2ggJHtQ
QVRDSERJUn0vJHtNWV9QfS1pcHY2LTEuNi5kaWZmCiAJZXBhdGNoICR7UEFUQ0hESVJ9LyR7TVlf
UH0tc3RkYy5kaWZmCiAJZXBhdGNoICR7UEFUQ0hESVJ9LyR7TVlfUH0uZGlmZgotCQorCisJIyBU
aGUgc291cmNlIGlzIHVucGFja2VkIHdpdGggYWxsIGZpbGVzIHBlcm1pc3Npb25zIHNldCB0bwor
CSMgMDQ0NC4gVGhpcyBwcmV2ZW50cyB0aGUgTWFrZWZpbGUgZnJvbSBiZWluZyB3cml0dGVuIHRv
LgorCWNobW9kIHVnK3cgTWFrZWZpbGUKIAljcCBNYWtlZmlsZSBNYWtlZmlsZS5vcmlnCiAJc2Vk
IC1lICJzOi1PMjoke0NGTEFHU30gLWZQSUM6IiBcCiAJCS1lICJzOkFVWF9PQko9Lio6QVVYX09C
Sj0gXFxcOiIgT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