installing nethack-qt

Anything that pertains to Portage

Moderator: Moderators

installing nethack-qt

Postby weirdtalk » Mon Apr 05, 2010 23:29

So I'm new to sabayon (and gentoo based linux). So far I REALLY like it, much better than kubuntu. Anyway, I'm have some trouble installing nethack-qt. The package is masked because of possible local privilege escalation, but my system is single user so I unmasked the package. I got it installed fine, but it only has tty and X11 support, not qt. I noticed that there is a patch file @ http://packages.gentoo.org/package/games-roguelike/nethack but when I add it to /usr/portage/games-roguelike/nethack/nethack-3.4.3-r1.ebuild I get this error message:
Code: Select all
#emerge nethack

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies \ * Digest verification failed:
 * /usr/portage/games-roguelike/nethack/nethack-3.4.3-r1.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 4630
 * Expected: 4590
... done!


So I can't edit the ebuild directly. I had read somewhere that it is possible to copy the ebuild into a local overlay, but I haven't done anything like that, and I couldn't find a guide that explained it. Can someone point me in the right direction?

-Many thanks!
weirdtalk
Baby Hen
 
Posts: 19
Joined: Mon Apr 05, 2010 23:19

Re: installing nethack-qt

Postby joost » Tue Apr 06, 2010 7:49

If you make changes to an ebuild you need to rewrite the manifest.
Consult the Gentoo documentation.

ebuild /path/to/my/package.ebuild manifest

I hope you ARE aware that Entropy (equo command) is the binary packagemanager and you do not want to mix that up too much with Portage (emerge command).
User avatar
joost
Sagely Hen
 
Posts: 2313
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: installing nethack-qt

Postby weirdtalk » Tue Apr 06, 2010 17:57

joost wrote:I hope you ARE aware that Entropy (equo command) is the binary packagemanager and you do not want to mix that up too much with Portage (emerge command).


I try to stick to equo as much as possible. Unfortunately (unless I'm mistaken) it doesn't have nethack so I wanted to use emerge instead of compiling the source by hand.

So now it tries to build it but the patch fails
Code: Select all
>>> Emerging (1 of 1) games-roguelike/nethack-3.4.3-r1
 * nethack-343-src.tgz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                       [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                       [ ok ]
 * CPV:  games-roguelike/nethack-3.4.3-r1
 * REPO: gentoo
 * USE:  X elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking nethack-343-src.tgz to /var/tmp/portage/games-roguelike/nethack-3.4.3-r1/work
>>> Source unpacked in /var/tmp/portage/games-roguelike/nethack-3.4.3-r1/work
>>> Preparing source in /var/tmp/portage/games-roguelike/nethack-3.4.3-r1/work/nethack-3.4.3 ...
Copying Makefiles.
 * Applying 3.4.3-gentoo-paths.patch ...                                                                                                                                                                                                      [ ok ]
 * Applying 3.4.3-default-options.patch ...                                                                                                                                                                                                   [ ok ]
 * Applying 3.4.3-bison.patch ...                                                                                                                                                                                                             [ ok ]
 * Applying 3.4.3-macos.patch ...                                                                                                                                                                                                             [ ok ]
 * Applying nethack-3.4.3-gibc210.patch ...                                                                                                                                                                                                   [ ok ]
 * Applying nethack-3.4.3-recover.patch ...                                                                                                                                                                                                   [ ok ]
 * Applying 3.4.3-QT-support.patch ...

 * Failed Patch: 3.4.3-QT-support.patch !
 *  ( /usr/portage/games-roguelike/nethack/files/3.4.3-QT-support.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/games-roguelike/nethack-3.4.3-r1/temp/3.4.3-QT-support.patch.out

 * ERROR: games-roguelike/nethack-3.4.3-r1 failed:
 *   Failed Patch: 3.4.3-QT-support.patch!
 *
 * Call stack:
 *     ebuild.sh, line   48:  Called src_prepare
 *   environment, line 2974:  Called epatch '/usr/portage/games-roguelike/nethack/files/3.4.3-gentoo-paths.patch' '/usr/portage/games-roguelike/nethack/files/3.4.3-default-options.patch' '/usr/portage/games-roguelike/nethack/files/3.4.3-bison.patch' '/usr/portage/games-roguelike/nethack/files/3.4.3-macos.patch' '/usr/portage/games-roguelike/nethack/files/nethack-3.4.3-gibc210.patch' '/usr/portage/games-roguelike/nethack/files/nethack-3.4.3-recover.patch' '/usr/portage/games-roguelike/nethack/files/3.4.3-QT-support.patch'
 *   environment, line 1290:  Called epatch '/usr/portage/games-roguelike/nethack/files/3.4.3-QT-support.patch'
 *   environment, line 1426:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of 'emerge --info =games-roguelike/nethack-3.4.3-r1',
 * the complete build log and the output of 'emerge -pqv =games-roguelike/nethack-3.4.3-r1'.
 * The complete build log is located at '/var/lib/entropy/logs/games-roguelike:nethack-3.4.3-r1:20100406-164819.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-roguelike/nethack-3.4.3-r1/temp/environment'.
 * S: '/var/tmp/portage/games-roguelike/nethack-3.4.3-r1/work/nethack-3.4.3'

>>> Failed to emerge games-roguelike/nethack-3.4.3-r1, Log file:

>>>  '/var/lib/entropy/logs/games-roguelike:nethack-3.4.3-r1:20100406-164819.log'


and here is the log
Code: Select all
* CPV:  games-roguelike/nethack-3.4.3-r1
 * REPO: gentoo
 * USE:  X elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking nethack-343-src.tgz to /var/tmp/portage/games-roguelike/nethack-3.4.3-r1/work
>>> Source unpacked in /var/tmp/portage/games-roguelike/nethack-3.4.3-r1/work
>>> Preparing source in /var/tmp/portage/games-roguelike/nethack-3.4.3-r1/work/nethack-3.4.3 ...
Copying Makefiles.
 * Applying 3.4.3-gentoo-paths.patch ...                                                                                                                                                                                                      [ ok ]
 * Applying 3.4.3-default-options.patch ...                                                                                                                                                                                                   [ ok ]
 * Applying 3.4.3-bison.patch ...                                                                                                                                                                                                             [ ok ]
 * Applying 3.4.3-macos.patch ...                                                                                                                                                                                                             [ ok ]
 * Applying nethack-3.4.3-gibc210.patch ...                                                                                                                                                                                                   [ ok ]
 * Applying nethack-3.4.3-recover.patch ...                                                                                                                                                                                                   [ ok ]
 * Applying 3.4.3-QT-support.patch ...

 * Failed Patch: 3.4.3-QT-support.patch !
 *  ( /usr/portage/games-roguelike/nethack/files/3.4.3-QT-support.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/games-roguelike/nethack-3.4.3-r1/temp/3.4.3-QT-support.patch.out

 * ERROR: games-roguelike/nethack-3.4.3-r1 failed:
 *   Failed Patch: 3.4.3-QT-support.patch!
 *
 * Call stack:
 *     ebuild.sh, line   48:  Called src_prepare
 *   environment, line 2974:  Called epatch '/usr/portage/games-roguelike/nethack/files/3.4.3-gentoo-paths.patch' '/usr/portage/games-roguelike/nethack/files/3.4.3-default-options.patch' '/usr/portage/games-roguelike/nethack/files/3.4.3-bison.patch' '/usr/portage/games-roguelike/nethack/files/3.4.3-macos.patch' '/usr/portage/games-roguelike/nethack/files/nethack-3.4.3-gibc210.patch' '/usr/portage/games-roguelike/nethack/files/nethack-3.4.3-recover.patch' '/usr/portage/games-roguelike/nethack/files/3.4.3-QT-support.patch'
 *   environment, line 1290:  Called epatch '/usr/portage/games-roguelike/nethack/files/3.4.3-QT-support.patch'
 *   environment, line 1426:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of 'emerge --info =games-roguelike/nethack-3.4.3-r1',
 * the complete build log and the output of 'emerge -pqv =games-roguelike/nethack-3.4.3-r1'.
 * The complete build log is located at '/var/lib/entropy/logs/games-roguelike:nethack-3.4.3-r1:20100406-164819.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-roguelike/nethack-3.4.3-r1/temp/environment'.
 * S: '/var/tmp/portage/games-roguelike/nethack-3.4.3-r1/work/nethack-3.4.3'


So I'm at a loss as to where to go from here. I could just compile it manually but I would prefer to use emerge in the hope of getting more familiar with the system. What do you recommend?
weirdtalk
Baby Hen
 
Posts: 19
Joined: Mon Apr 05, 2010 23:19

Re: installing nethack-qt

Postby wolfden » Wed Apr 14, 2010 3:00

I think it is odd that you had a digest failure right off the bat.

Have you

emerge --sync && layman -S lately?
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: installing nethack-qt

Postby weirdtalk » Mon Apr 19, 2010 23:56

Sync'ed and moved the ebuild into a local overlay but got the same error. I noticed that the patch I'm trying to apply was removed because of bug 301735 http://bugs.gentoo.org/show_bug.cgi?id=301735 . Is this because the patch wasn't working or just to get rid of qt3 dependences? How would I go about making a new patch if the old one is broke?

Not terrible important, but I'm trying to get smarter in Linux.
weirdtalk
Baby Hen
 
Posts: 19
Joined: Mon Apr 05, 2010 23:19

Re: installing nethack-qt

Postby donnie » Wed Apr 21, 2010 16:13

Try better ADOM, it worked :)

omg what i am talking about......
donnie
 


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 0 guests