First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 170170
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Nikolay Shley <nikolay.shley@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 170170 depends on: Show dependency tree
Bug 170170 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   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

------- Comment #1 From Nikolay Shley 2007-03-11 05:28:06 0000 -------
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 From Mr. Bones. 2007-03-11 05:53:02 0000 -------
in portage.  thanks for the bug report and patch.

------- Comment #3 From Nikolay Shley 2007-03-12 10:29:42 0000 -------
Bug still present in games-server/pvpgn/pvpgn-1.6.6.ebuild file, but solved in
pvpgn-1.8.0.ebuild. :)

------- Comment #4 From Mr. Bones. 2007-03-12 16:24:23 0000 -------
not any more.

First Last Prev Next    No search results available      Search page      Enter new bug