Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170170 - games-server/pvpgn fails to install with sed bug
Summary: games-server/pvpgn fails to install with sed bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-09 20:14 UTC by Nikolay Shley
Modified: 2007-03-12 16:24 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Shley 2007-03-09 20:14:29 UTC
There is a bug in pvpgn-*.ebuild files.
Original:
for f in bnetd d2cs d2dbs ; do
        newinitd "${FILESDIR}/${PN}.rc" ${f}
        sed -i \
               -e "s:NAME:${f}:g" \
               -e "s:GAMES_BINDIR:${GAMES_BINDIR}:g" \
               -e "s:GAMES_USER:${GAMES_USER_DED}:g" \
               -e "s:GAMES_GROUP:${GAMES_GROUP}:g" \
               "${D}/etc/${PN}/${f}" \
               || die "sed failed"
done
${PN} in this ebuild is "pvpgn" and ${f} is "bnetd", but there is no file or directory /etc/pvpgn/bnetd and emerge fails. 
---
Solved:
for f in bnetd d2cs d2dbs ; do
        newinitd "${FILESDIR}/${PN}.rc" ${f}
        sed -i \
                -e "s:NAME:${f}:g" \
                -e "s:GAMES_BINDIR:${GAMES_BINDIR}:g" \
                -e "s:GAMES_USER:${GAMES_USER_DED}:g" \
                -e "s:GAMES_GROUP:${GAMES_GROUP}:g" \
                 "${D}/etc/games/${PN}/${f}.conf" \
                 "${D}/etc/init.d/bnetd" \
                 || die "sed failed"
done
Comment 1 Nikolay Shley 2007-03-11 05:28:06 UTC
Sorry for stupid typo. 
Right solution:
for f in bnetd d2cs d2dbs ; do
        newinitd "${FILESDIR}/${PN}.rc" ${f}
        sed -i \
                -e "s:NAME:${f}:g" \
                -e "s:GAMES_BINDIR:${GAMES_BINDIR}:g" \
                -e "s:GAMES_USER:${GAMES_USER_DED}:g" \
                -e "s:GAMES_GROUP:${GAMES_GROUP}:g" \
                 "${D}/etc/games/${PN}/${f}.conf" \
                 "${D}/etc/init.d/${f}" \
                 || die "sed failed"
done

With this correction emerge pvpgn works fine. 
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2007-03-11 05:53:02 UTC
in portage.  thanks for the bug report and patch.
Comment 3 Nikolay Shley 2007-03-12 10:29:42 UTC
Bug still present in games-server/pvpgn/pvpgn-1.6.6.ebuild file, but solved in pvpgn-1.8.0.ebuild. :)
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2007-03-12 16:24:23 UTC
not any more.