Bug 170170 - games-server/pvpgn fails to install with sed bug
|
Bug#:
170170
|
Product: Gentoo Linux
|
Version: 2006.1
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: games@gentoo.org
|
Reported By: nikolay.shley@gmail.com
|
|
Component: Games
|
|
|
URL:
|
|
Summary: games-server/pvpgn fails to install with sed bug
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2007-03-09 20:14 0000
|
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
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.
in portage. thanks for the bug report and patch.
Bug still present in games-server/pvpgn/pvpgn-1.6.6.ebuild file, but solved in
pvpgn-1.8.0.ebuild. :)