<?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>168039</bug_id>
          
          <creation_ts>2007-02-22 21:34 0000</creation_ts>
          <short_desc>net-* ebuilds abusing ROOT</short_desc>
          <delta_ts>2009-02-08 12:09:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</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>
          
          <blocked>258096</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>ciaran.mccreesh@googlemail.com</reporter>
          <assigned_to>qa@gentoo.org</assigned_to>
          <cc>comm-fax@gentoo.org</cc>
    
    <cc>eradicator@gentoo.org</cc>
    
    <cc>hanno@gentoo.org</cc>
    
    <cc>humpback@gentoo.org</cc>
    
    <cc>net-mail@gentoo.org</cc>
    
    <cc>robbat2@gentoo.org</cc>
    
    <cc>roy@marples.name</cc>
    
    <cc>sgtphou@fire-eyes.org</cc>
    
    <cc>tove@gentoo.org</cc>
    
    <cc>uberlord@gentoo.org</cc>
    
    <cc>voip@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2007-02-22 21:34:42 0000</bug_when>
            <thetext>Some notes on ROOT:

* The idea behind ROOT is that one can build a system with ROOT=/somewhere and then chroot into it or tar up /somewhere as a system image. It is not designed to allow the user to run /somewhere/usr/bin/foo.

* ROOT can&apos;t be used correctly in src_*, since ROOT might be different when merging a binary package. For example, a binary package might be built with ROOT=/ and then installed onto a system using ROOT=/somewhere.

* ROOT isn&apos;t used for library dependencies. When building, libraries, headers etc. on / have to be used. Cross-compiling etc is done by configuring the toolchain correctly, not by hacking ebuilds in a way that breaks binary packages.

Summary of all mentioned herds:
  apache comm-fax mobile net-dialup net-irc net-mail net-p2p
  net-proxy netmon no-herd perl qmail voip

Summary of all mentioned maintainers:
  &lt;apache-bugs@gentoo.org&gt;
  &lt;hanno@gentoo.org&gt;
  &lt;humpback@gentoo.org&gt;
  &lt;maintainer-needed@gentoo.org&gt;
  &lt;perl@gentoo.org&gt;
  &lt;robbat2@gentoo.org&gt;
  &lt;strerror@gentoo.org&gt;
  Alin Năstac &lt;mrness@gentoo.org&gt;
  Jeremy Huddleston &lt;eradicator@gentoo.org&gt;
  Jon Hood &lt;squinky86@gentoo.org&gt;
  Matthew Smith &lt;matthewsmith@iinet.net.au&gt;
  Rajiv Aaron Manglani &lt;rajiv@gentoo.org&gt;
  Roy Marples &lt;uberlord@gentoo.org&gt;
  Saleem Abdulrasool &lt;compnerd@gentoo.org&gt;
  Stefan Knoblich &lt;stkn@gentoo.org&gt;
  Stefan Schweizer &lt;genstef@gentoo.org&gt;
  Sven Wegenery &lt;swegener@gentoo.org&gt;
  Thilo Bangert &lt;bangert@gentoo.org&gt;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2007-02-22 21:35:01 0000</bug_when>
            <thetext>QA checks for package directory /net-analyzer/net-snmp:
/net-analyzer/net-snmp/net-snmp-5.2.1.2-r1.ebuild
  93: --with-logfile=&quot;${ROOT}/var/log/net-snmpd.log&quot; \
  94: --with-persistent-directory=&quot;${ROOT}/var/lib/net-snmp&quot; \
/net-analyzer/net-snmp/net-snmp-5.2.2-r3.ebuild
  91: --with-logfile=&quot;${ROOT}/var/log/net-snmpd.log&quot; \
  92: --with-persistent-directory=&quot;${ROOT}/var/lib/net-snmp&quot; \
/net-analyzer/net-snmp/net-snmp-5.3.0.1.ebuild
  92: --with-logfile=&quot;${ROOT}/var/log/net-snmpd.log&quot; \
  93: --with-persistent-directory=&quot;${ROOT}/var/lib/net-snmp&quot; \
/net-analyzer/net-snmp/net-snmp-5.3.1-r1.ebuild
  97: --with-logfile=&quot;${ROOT}/var/log/net-snmpd.log&quot; \
  98: --with-persistent-directory=&quot;${ROOT}/var/lib/net-snmp&quot; \
/net-analyzer/net-snmp/net-snmp-5.3.1.ebuild
  92: --with-logfile=&quot;${ROOT}/var/log/net-snmpd.log&quot; \
  93: --with-persistent-directory=&quot;${ROOT}/var/lib/net-snmp&quot; \
/net-analyzer/net-snmp/net-snmp-5.4.ebuild
  89: --with-logfile=&quot;${ROOT}/var/log/net-snmpd.log&quot; \
  90: --with-persistent-directory=&quot;${ROOT}/var/lib/net-snmp&quot; \
herds: netmon

QA checks for package directory /net-analyzer/sguil-server:
/net-analyzer/sguil-server/sguil-server-0.5.3.ebuild
  68: if ! [ -f ${ROOT}/etc/sguil/sguild.key ]; then
/net-analyzer/sguil-server/sguil-server-0.6.0_p1.ebuild
  71: if ! [ -f ${ROOT}/etc/sguil/sguild.key ]; then
/net-analyzer/sguil-server/sguil-server-0.6.1.ebuild
  71: if ! [ -f ${ROOT}/etc/sguil/sguild.key ]; then
herds: netmon
maintainer: &lt;strerror@gentoo.org&gt;

QA checks for package directory /net-dialup/ltmodem:
/net-dialup/ltmodem/ltmodem-8.31_alpha10-r3.ebuild
  85: if [ -e &quot;${ROOT}/dev/.devfsd&quot; ] ; then
  87: elif [ -e &quot;${ROOT}/dev/.udev&quot; ] ; then
herds: net-dialup

QA checks for package directory /net-dialup/rp-pppoe:
/net-dialup/rp-pppoe/rp-pppoe-3.8.ebuild
  64: if [ -n &quot;${PPPD_VER}&quot; ] &amp;&amp; [ -f &quot;${ROOT}/usr/lib/pppd/${PPPD_VER}/rp-pppoe.so&quot; ] ; then
herds: net-dialup

QA checks for package directory /net-dialup/slmodem:
/net-dialup/slmodem/slmodem-2.9.11_pre20051101-r3.ebuild
  100: if [ -e &quot;${ROOT}/dev/.devfsd&quot; ] ; then
  102: elif [ -e &quot;${ROOT}/dev/.udev&quot; ] ; then
/net-dialup/slmodem/slmodem-2.9.11_pre20061021-r1.ebuild
  102: if [ -e &quot;${ROOT}/dev/.devfsd&quot; ] ; then
  104: elif [ -e &quot;${ROOT}/dev/.udev&quot; ] ; then
herds: net-dialup

QA checks for package directory /net-dns/ddclient:
/net-dns/ddclient/ddclient-3.7.0.ebuild
  48: [[ -e &quot;${ROOT}/etc/${PN}/${sample}&quot; ]] &amp;&amp; sample=&quot;${sample}.sample&quot;
herds: no-herd
maintainer: Matthew Smith &lt;matthewsmith@iinet.net.au&gt;

QA checks for package directory /net-dns/pdnsd:
/net-dns/pdnsd/pdnsd-1.2.4-r1.ebuild
  60: IPS=$(grep ^nameserver &quot;${ROOT}/etc/resolv.conf&quot; | sed -e &apos;s/nameserver \(.*\)/\tip=\1;/g&apos; | xargs)
  82: [ -f &quot;${ROOT}/var/lib/pdnsd/pdnsd.cache&quot; ] &amp;&amp; \
  83: cp &quot;${ROOT}/var/lib/pdnsd/pdnsd.cache&quot; &quot;${D}/var/cache/pdnsd/pdnsd.cache&quot;
  87: [ -f &quot;${ROOT}/var/cache/pdnsd/pdnsd.cache&quot; ] &amp;&amp; \
/net-dns/pdnsd/pdnsd-1.2.4-r3.ebuild
  60: IPS=$(grep ^nameserver &quot;${ROOT}/etc/resolv.conf&quot; | sed -e &apos;s/nameserver \(.*\)/\tip=\1;/g&apos; | xargs)
  82: [ -f &quot;${ROOT}/var/lib/pdnsd/pdnsd.cache&quot; ] &amp;&amp; \
  83: cp &quot;${ROOT}/var/lib/pdnsd/pdnsd.cache&quot; &quot;${D}/var/cache/pdnsd/pdnsd.cache&quot;
  87: [ -f &quot;${ROOT}/var/cache/pdnsd/pdnsd.cache&quot; ] &amp;&amp; \
/net-dns/pdnsd/pdnsd-1.2.5.ebuild
  53: IPS=$(grep ^nameserver &quot;${ROOT}/etc/resolv.conf&quot; | sed -e &apos;s/nameserver \(.*\)/\tip=\1;/g&apos; | xargs)
  75: [ -f &quot;${ROOT}/var/lib/pdnsd/pdnsd.cache&quot; ] &amp;&amp; \
  76: cp &quot;${ROOT}/var/lib/pdnsd/pdnsd.cache&quot; &quot;${D}/var/cache/pdnsd/pdnsd.cache&quot;
  80: [ -f &quot;${ROOT}/var/cache/pdnsd/pdnsd.cache&quot; ] &amp;&amp; \
herds: net-dialup

QA checks for package directory /net-firewall/ipp2p:
/net-firewall/ipp2p/ipp2p-0.8.2-r2.ebuild
  44: local IPTABLES_VERSION=&quot;$(&quot;${ROOT}&quot;/sbin/iptables --version | cut -f2 -dv)&quot;
  46: IPTABLES_SRC=&quot;${ROOT}/usr&quot; IPTABLES_VERSION=&quot;${IPTABLES_VERSION}&quot; libipt_ipp2p.so \
  52: IPTABLES_SRC=&quot;${ROOT}/usr&quot; IPTABLES_VERSION=&quot;${IPTABLES_VERSION}&quot; \
herds: no-herd
maintainer: &lt;eradicator@gentoo.org&gt;
maintainer: Alin Năstac &lt;mrness@gentoo.org&gt;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2007-02-22 21:35:19 0000</bug_when>
            <thetext>QA checks for package directory /net-firewall/ipset:
/net-firewall/ipset/ipset-2.1.0.20050119.ebuild
  48: if [ -L ${ROOT}/usr/src/linux -o -d ${ROOT}/usr/src/linux ]; then
herds: no-herd
maintainer: &lt;robbat2@gentoo.org&gt;

QA checks for package directory /net-firewall/kmyfirewall:
/net-firewall/kmyfirewall/kmyfirewall-1.0.1.ebuild
  24: echo -e &quot;[PATHS]\nDistribution=gentoo\nIPTPath=${ROOT}sbin/iptables\nModprobePath=${ROOT}sbin/modprobe\nrcDefaultPath=${ROOT}etc/runlevels/default/&quot; &gt;&gt; ${S}/kmyfirewall/kmyfirewallrc}
herds: netmon

QA checks for package directory /net-ftp/glftpd:
/net-ftp/glftpd/glftpd-2.00.ebuild
  48: export MAKETLS=$(yesno [[ ! -e ${ROOT}/etc/glftpd-dsa.pem ]])
  59: if [[ -e ${ROOT}/etc/glftpd-dsa.pem ]] ; then
  60: cp &quot;${ROOT}&quot;/etc/glftpd-dsa.pem &quot;${D}&quot;/etc/
/net-ftp/glftpd/glftpd-2.01.ebuild
  46: export MAKETLS=$(yesno [[ ! -e ${ROOT}/etc/glftpd-dsa.pem ]])
  57: if [[ -e ${ROOT}/etc/glftpd-dsa.pem ]] ; then
  58: cp &quot;${ROOT}&quot;/etc/glftpd-dsa.pem &quot;${D}&quot;/etc/
maintainer: &lt;maintainer-needed@gentoo.org&gt;

QA checks for package directory /net-ftp/tnftp:
/net-ftp/tnftp/tnftp-20050625-r1.ebuild
  31: if [ ! -e &quot;${ROOT}&quot;/usr/bin/${x} ]
herds: no-herd
maintainer: Sven Wegenery &lt;swegener@gentoo.org&gt;

QA checks for package directory /net-ftp/twoftpd:
/net-ftp/twoftpd/twoftpd-1.21.ebuild
  26: echo &quot;$(tc-getCC) ${CFLAGS} -I${ROOT}/usr/include/bglibs&quot; &gt; conf-cc
  27: echo &quot;$(tc-getCC) -s -L${ROOT}/usr/lib/bglibs&quot; &gt; conf-ld
herds: no-herd
maintainer: Thilo Bangert &lt;bangert@gentoo.org&gt;

QA checks for package directory /net-irc/xchatosd:
/net-irc/xchatosd/xchatosd-5.19.ebuild
  25: cp -f &quot;${ROOT}&quot;/usr/include/xchat/xchat-plugin.h &quot;${S}&quot;/xchat-plugin.h
herds: net-irc

QA checks for package directory /net-libs/libssh:
/net-libs/libssh/libssh-0.1.ebuild
  21: [ ! -e &quot;${ROOT}/usr/bin/ssh&quot; ] &amp;&amp; dosym ${PN}-ssh /usr/bin/ssh
  22: [ ! -e &quot;${ROOT}/usr/bin/sftp&quot; ] &amp;&amp; dosym ${PN}-ssh /usr/bin/sftp
herds: netmon

QA checks for package directory /net-mail/dovecot:
/net-mail/dovecot/dovecot-1.0_rc22.ebuild
  123: if ! [[ -e &quot;${ROOT}&quot;/etc/ssl/dovecot/server.pem &amp;&amp; \
  124: -e &quot;${ROOT}&quot;/etc/ssl/dovecot/server.key ]]; then
  126: insinto &quot;${ROOT}&quot;/etc/ssl/dovecot
/net-mail/dovecot/dovecot-1.0_rc23.ebuild
  123: if ! [[ -e &quot;${ROOT}&quot;/etc/ssl/dovecot/server.pem &amp;&amp; \
  124: -e &quot;${ROOT}&quot;/etc/ssl/dovecot/server.key ]]; then
  126: insinto &quot;${ROOT}&quot;/etc/ssl/dovecot
herds: net-mail
maintainer: Roy Marples &lt;uberlord@gentoo.org&gt;

QA checks for package directory /net-mail/mailman:
/net-mail/mailman/mailman-2.1.9.ebuild
  98: for i in ${ROOT}/var/mailman ${ROOT}/home/mailman \
  99: ${ROOT}/usr/local/mailman ${INSTALLDIR}
/net-mail/mailman/mailman-2.1.9_rc1.ebuild
  99: for i in ${ROOT}/var/mailman ${ROOT}/home/mailman \
  100: ${ROOT}/usr/local/mailman ${INSTALLDIR}
herds: net-mail
maintainer: &lt;hanno@gentoo.org&gt;

QA checks for package directory /net-mail/qmail-autoresponder:
/net-mail/qmail-autoresponder/qmail-autoresponder-0.96.1-r1.ebuild
  38: echo &quot;${ROOT}/usr/include/bglibs&quot; &gt; conf-bgincs
  39: echo &quot;${ROOT}/usr/lib/bglibs&quot; &gt; conf-bglibs
/net-mail/qmail-autoresponder/qmail-autoresponder-0.96.2.ebuild
  27: echo &quot;${ROOT}/usr/include/bglibs&quot; &gt; conf-bgincs
  28: echo &quot;${ROOT}/usr/lib/bglibs&quot; &gt; conf-bglibs
herds: qmail
maintainer: Thilo Bangert &lt;bangert@gentoo.org&gt;

QA checks for package directory /net-mail/qmail-qfilter:
/net-mail/qmail-qfilter/qmail-qfilter-2.1.ebuild
  28: echo &quot;${ROOT}/usr/include/bglibs&quot; &gt; conf-bgincs
  29: echo &quot;${ROOT}/usr/lib/bglibs&quot; &gt; conf-bglibs
herds: qmail
maintainer: Thilo Bangert &lt;bangert@gentoo.org&gt;

QA checks for package directory /net-misc/asterisk:
/net-misc/asterisk/asterisk-1.2.13-r1.ebuild
  327: elog &quot;into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them&quot;
  329: elog &quot;Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf&quot;
/net-misc/asterisk/asterisk-1.2.13.ebuild
  323: elog &quot;into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them&quot;
  325: elog &quot;Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf&quot;
/net-misc/asterisk/asterisk-1.2.14.ebuild
  312: elog &quot;into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them&quot;
  314: elog &quot;Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf&quot;
herds: voip
maintainer: Rajiv Aaron Manglani &lt;rajiv@gentoo.org&gt;
maintainer: Stefan Knoblich &lt;stkn@gentoo.org&gt;

QA checks for package directory /net-misc/ebayagent:
/net-misc/ebayagent/ebayagent-0.9.11-r2.ebuild
  30: sed -i -e &quot;s|X_eBayAgentLocation\ \=&gt;\ \&quot;\&quot;,|X_eBayAgentLocation\ \=&gt;\ \&quot;${ROOT}\/usr\/bin\/eBayAgent\&quot;,|&quot;	${S}/XeBayAgent.pl
herds: perl
maintainer: &lt;perl@gentoo.org&gt;

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2007-02-22 21:35:31 0000</bug_when>
            <thetext>QA checks for package directory /net-misc/gfax:
/net-misc/gfax/gfax-0.7.4_pre20051223.ebuild
  42: addwrite &quot;${ROOT}/root/.gconf&quot; &quot;${ROOT}/root/.gconfd&quot;
herds: comm-fax
maintainer: Stefan Schweizer &lt;genstef@gentoo.org&gt;

QA checks for package directory /net-misc/ossh:
/net-misc/ossh/ossh-1.5.12.ebuild
  31: append-flags -I${ROOT}/usr/include/openssl
maintainer: &lt;maintainer-needed@gentoo.org&gt;

QA checks for package directory /net-misc/ssh:
/net-misc/ssh/ssh-3.2.9.1-r1.ebuild
  45: # TODO: fix this crap which messes with $ROOT
  46: if [ -e ${ROOT}/etc/ssh2/hostkey ] ; then
  49: doins ${ROOT}/etc/ssh2/hostkey{,.pub}
herds: no-herd
maintainer: &lt;humpback@gentoo.org&gt;

QA checks for package directory /net-nds/ypserv:
/net-nds/ypserv/ypserv-2.18.ebuild
  45: if [ -f ${ROOT}/var/yp/Makefile ]; then
  47: cp ${ROOT}/var/yp/Makefile ${D}/var/yp/Makefile
/net-nds/ypserv/ypserv-2.19.ebuild
  45: if [ -f ${ROOT}/var/yp/Makefile ]; then
  47: cp ${ROOT}/var/yp/Makefile ${D}/var/yp/Makefile
herds: no-herd
maintainer: Jeremy Huddleston &lt;eradicator@gentoo.org&gt;

QA checks for package directory /net-p2p/bittornado:
/net-p2p/bittornado/bittornado-0.3.15.ebuild
  44: cp -pPR ${ROOT}/etc/mailcap ${D}/etc/
/net-p2p/bittornado/bittornado-0.3.18.ebuild
  44: cp -pPR ${ROOT}/etc/mailcap ${D}/etc/
herds: net-p2p

QA checks for package directory /net-p2p/transmission:
/net-p2p/transmission/transmission-0.6.1-r1.ebuild
  44: make PREFIX=&quot;${D}${ROOT}usr&quot; LOCALEDIR=&quot;\$(PREFIX)/share/locale&quot; install \
herds: net-p2p
maintainer: Saleem Abdulrasool &lt;compnerd@gentoo.org&gt;
maintainer: Jon Hood &lt;squinky86@gentoo.org&gt;

QA checks for package directory /net-proxy/wwwoffle:
/net-proxy/wwwoffle/wwwoffle-2.9-r1.ebuild
  47: if [ -f &quot;${ROOT}/etc/wwwoffle.conf&quot; ] ;	then
  49: cp &quot;${ROOT}/etc/wwwoffle.conf&quot; conf/wwwoffle.conf
  75: #if [ -f &quot;${ROOT}/etc/wwwoffle.conf&quot; ]; then
/net-proxy/wwwoffle/wwwoffle-2.9a.ebuild
  45: if [ -f &quot;${ROOT}/etc/wwwoffle.conf&quot; ] ;	then
  47: cp &quot;${ROOT}/etc/wwwoffle.conf&quot; conf/wwwoffle.conf
  73: #if [ -f &quot;${ROOT}/etc/wwwoffle.conf&quot; ]; then
herds: net-proxy
maintainer: Alin Nastac &lt;mrness@gentoo.org&gt;

QA checks for package directory /net-wireless/hostapd:
/net-wireless/hostapd/hostapd-0.4.8.ebuild
  62: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; ${CONFIG}
/net-wireless/hostapd/hostapd-0.4.9.ebuild
  62: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; ${CONFIG}
/net-wireless/hostapd/hostapd-0.5.2.ebuild
  66: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; ${CONFIG}
/net-wireless/hostapd/hostapd-0.5.3.ebuild
  70: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; ${CONFIG}
/net-wireless/hostapd/hostapd-0.5.4.ebuild
  67: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; ${CONFIG}
/net-wireless/hostapd/hostapd-0.5.7.ebuild
  66: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; ${CONFIG}
herds: mobile

QA checks for package directory /net-wireless/wpa_supplicant:
/net-wireless/wpa_supplicant/wpa_supplicant-0.4.9.ebuild
  102: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; ${CONFIG}
/net-wireless/wpa_supplicant/wpa_supplicant-0.5.4.ebuild
  105: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; &quot;${CONFIG}&quot;
/net-wireless/wpa_supplicant/wpa_supplicant-0.5.5.ebuild
  124: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; .config
/net-wireless/wpa_supplicant/wpa_supplicant-0.5.6.ebuild
  120: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; .config
/net-wireless/wpa_supplicant/wpa_supplicant-0.5.7.ebuild
  121: echo &quot;CFLAGS += -I${ROOT}/usr/include/madwifi&quot; &gt;&gt; .config
herds: mobile
maintainer: Roy Marples &lt;uberlord@gentoo.org&gt;

QA checks for package directory /net-www/mod_watch:
/net-www/mod_watch/mod_watch-3.18-r2.ebuild
  38: keepdir &quot;${ROOT}&quot;/var/lib/${PN}
/net-www/mod_watch/mod_watch-4.03-r2.ebuild
  43: keepdir &quot;${ROOT}&quot;/var/lib/${PN}
herds: apache
maintainer: &lt;apache-bugs@gentoo.org&gt;

(that&apos;s them all)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-02-23 07:55:12 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; * ROOT can&apos;t be used correctly in src_*, since ROOT might be different when
&gt; merging a binary package. For example, a binary package might be built with
&gt; ROOT=/ and then installed onto a system using ROOT=/somewhere.

Is it OK to create a variable in pkg_setup that references ROOT for file existance so that src_install can use it to install a file or not? Otherwise how should this be handled?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spb@gentoo.org</who>
            <bug_when>2007-02-23 08:21:14 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Is it OK to create a variable in pkg_setup that references ROOT for file
&gt; existance so that src_install can use it to install a file or not? Otherwise
&gt; how should this be handled?

Install the file. If, based on the contents of $ROOT, you decide that you don&apos;t want to merge it, remove it in pkg_preinst.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-02-23 08:58:05 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; Is it OK to create a variable in pkg_setup that references ROOT for file
&gt; &gt; existance so that src_install can use it to install a file or not? Otherwise
&gt; &gt; how should this be handled?
&gt; 
&gt; Install the file. If, based on the contents of $ROOT, you decide that you don&apos;t
&gt; want to merge it, remove it in pkg_preinst.
&gt; 

How about a solution where it doesn&apos;t have to waste half an hour on slow machines making a file that it doesn&apos;t need once installed?

SSL certs shouldn&apos;t be in a bin pkg anyway, but due to the nature of the eclass it needs to be created in src_install - unless I&apos;m missing something.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spb@gentoo.org</who>
            <bug_when>2007-02-23 09:11:55 0000</bug_when>
            <thetext>If you have a solution that won&apos;t create incomplete binary packages when / on the build host happens to have the file in question then I&apos;ll be interested to know.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-02-23 09:21:50 0000</bug_when>
            <thetext>ssl certs don&apos;t belong in binary packages - they are specific to the machine it&apos;s generated on. But due to the nature of the ssl-cert eclass it has to be used in src_*.

Until that is resolved dovecot and probably all server related packages that use this eclass will continue to violate this QA report.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spb@gentoo.org</who>
            <bug_when>2007-02-23 09:40:13 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; ssl certs don&apos;t belong in binary packages - they are specific to the machine
&gt; it&apos;s generated on. But due to the nature of the ssl-cert eclass it has to be
&gt; used in src_*.

In which case that code is still broken, in the case when / on the build machine does not have the file and the ssl certs end up in the package.

&gt; Until that is resolved dovecot and probably all server related packages that
&gt; use this eclass will continue to violate this QA report.

So we need to fix the eclass. Thanks for pointing this out.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-02-23 11:10:37 0000</bug_when>
            <thetext>net-irc is done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-02-23 12:25:37 0000</bug_when>
            <thetext>wpa_supplicant fixed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mcummings@gentoo.org</who>
            <bug_when>2007-02-23 14:29:38 0000</bug_when>
            <thetext>perl can neither confirm nor deny if these are our natural ROOTs.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2007-02-23 14:38:13 0000</bug_when>
            <thetext>gfax fixed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2007-02-23 19:00:23 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; How about a solution where it doesn&apos;t have to waste half an hour on slow
&gt; machines making a file that it doesn&apos;t need once installed?
&gt; 
&gt; SSL certs shouldn&apos;t be in a bin pkg anyway, but due to the nature of the eclass
&gt; it needs to be created in src_install - unless I&apos;m missing something.

You&apos;ll need to modify the eclass to let you create it in pkg_preinst.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bangert@gentoo.org</who>
            <bug_when>2007-02-23 19:29:21 0000</bug_when>
            <thetext>net-ftp/twoftpd
net-mail/qmail-autoresponder
net-mail/qmail-qfilter
fixed!
thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-02-24 11:42:14 0000</bug_when>
            <thetext>I did net-p2p/*, removing herd and affected maintainers.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2007-02-26 02:55:09 0000</bug_when>
            <thetext>no asterisk-1.0.x ebuilds have issues. voip: check the 1.2.x ebuilds.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-03-10 13:37:34 0000</bug_when>
            <thetext>net-firewall/ipp2p and net-proxy/wwwoffle have been fixed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-03-10 14:32:14 0000</bug_when>
            <thetext>following net-dialup packages have been fixed:
  net-dns/pdnsd
  net-dialup/ltmodem
  net-dialup/rp-pppoe
  net-dialup/slmodem</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-03-11 00:52:03 0000</bug_when>
            <thetext>Fixed net-wireless/hostapd for the mobile herd. That leaves wpa_supplicant but that is Uberlord&apos;s package.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-03-11 00:54:37 0000</bug_when>
            <thetext>(In reply to comment #20)
&gt; Fixed net-wireless/hostapd for the mobile herd. That leaves wpa_supplicant but
&gt; that is Uberlord&apos;s package.

Read comment #11 - it&apos;s already fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-03-11 17:46:40 0000</bug_when>
            <thetext>(In reply to comment #21)
&gt; (In reply to comment #20)
&gt; &gt; Fixed net-wireless/hostapd for the mobile herd. That leaves wpa_supplicant but
&gt; &gt; that is Uberlord&apos;s package.
&gt; 
&gt; Read comment #11 - it&apos;s already fixed.
&gt; 

Sorry about that. Removing mobile.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jokey@gentoo.org</who>
            <bug_when>2007-03-27 20:24:54 0000</bug_when>
            <thetext>Fixed netmon stuff</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2007-04-11 14:34:33 0000</bug_when>
            <thetext>net-www/mod_watch fixed.
Best regards, CHTEKK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swegener@gentoo.org</who>
            <bug_when>2007-04-16 22:37:29 0000</bug_when>
            <thetext>fixed net-ftp/tnftp</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bangert@gentoo.org</who>
            <bug_when>2009-02-08 11:58:54 0000</bug_when>
            <thetext>all fixed, except ddclient, glftpd, libssh, ossh and ypserv, for which i&apos;ll open individual reports.
thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>