<?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>170170</bug_id>
          
          <creation_ts>2007-03-09 20:14 0000</creation_ts>
          <short_desc>games-server/pvpgn fails to install with sed bug</short_desc>
          <delta_ts>2007-03-12 16:24:23 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>Games</component>
          <version>2006.1</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>nikolay.shley@gmail.com</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>nikolay.shley@gmail.com</who>
            <bug_when>2007-03-09 20:14:29 0000</bug_when>
            <thetext>There is a bug in pvpgn-*.ebuild files.
Original:
for f in bnetd d2cs d2dbs ; do
        newinitd &quot;${FILESDIR}/${PN}.rc&quot; ${f}
        sed -i \
               -e &quot;s:NAME:${f}:g&quot; \
               -e &quot;s:GAMES_BINDIR:${GAMES_BINDIR}:g&quot; \
               -e &quot;s:GAMES_USER:${GAMES_USER_DED}:g&quot; \
               -e &quot;s:GAMES_GROUP:${GAMES_GROUP}:g&quot; \
               &quot;${D}/etc/${PN}/${f}&quot; \
               || die &quot;sed failed&quot;
done
${PN} in this ebuild is &quot;pvpgn&quot; and ${f} is &quot;bnetd&quot;, but there is no file or directory /etc/pvpgn/bnetd and emerge fails. 
---
Solved:
for f in bnetd d2cs d2dbs ; do
        newinitd &quot;${FILESDIR}/${PN}.rc&quot; ${f}
        sed -i \
                -e &quot;s:NAME:${f}:g&quot; \
                -e &quot;s:GAMES_BINDIR:${GAMES_BINDIR}:g&quot; \
                -e &quot;s:GAMES_USER:${GAMES_USER_DED}:g&quot; \
                -e &quot;s:GAMES_GROUP:${GAMES_GROUP}:g&quot; \
                 &quot;${D}/etc/games/${PN}/${f}.conf&quot; \
                 &quot;${D}/etc/init.d/bnetd&quot; \
                 || die &quot;sed failed&quot;
done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nikolay.shley@gmail.com</who>
            <bug_when>2007-03-11 05:28:06 0000</bug_when>
            <thetext>Sorry for stupid typo. 
Right solution:
for f in bnetd d2cs d2dbs ; do
        newinitd &quot;${FILESDIR}/${PN}.rc&quot; ${f}
        sed -i \
                -e &quot;s:NAME:${f}:g&quot; \
                -e &quot;s:GAMES_BINDIR:${GAMES_BINDIR}:g&quot; \
                -e &quot;s:GAMES_USER:${GAMES_USER_DED}:g&quot; \
                -e &quot;s:GAMES_GROUP:${GAMES_GROUP}:g&quot; \
                 &quot;${D}/etc/games/${PN}/${f}.conf&quot; \
                 &quot;${D}/etc/init.d/${f}&quot; \
                 || die &quot;sed failed&quot;
done

With this correction emerge pvpgn works fine. 
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2007-03-11 05:53:02 0000</bug_when>
            <thetext>in portage.  thanks for the bug report and patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nikolay.shley@gmail.com</who>
            <bug_when>2007-03-12 10:29:42 0000</bug_when>
            <thetext>Bug still present in games-server/pvpgn/pvpgn-1.6.6.ebuild file, but solved in pvpgn-1.8.0.ebuild. :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2007-03-12 16:24:23 0000</bug_when>
            <thetext>not any more.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>