Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 663336

Summary: games-util/umodpack Updated ebuild with "can't use a hash as a reference" errors fixed
Product: Gentoo Linux Reporter: James Jones <gentoo>
Component: Current packagesAssignee: Gentoo Games <games>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo, jstein
Priority: Normal Keywords: EBUILD, PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 663632    
Bug Blocks:    
Attachments: Updated ebuild
The patch
Manifest file for my local repository
Manifest file for my local repository
Manifest file for my local repository
Updated ebuild v2
Manifest file for my local repository
Updated ebuild v3
Updated ebuild v4
Manifest file for my local repository

Description James Jones 2018-08-10 22:56:42 UTC
Created attachment 542984 [details]
Updated ebuild

Had to install unreal-tournament-bonuspacks today, and the umodpack extraction step failed because umodpack was using perl hashes as references.  I put together a patch and updated the build while I was at it.
Comment 1 James Jones 2018-08-10 22:57:36 UTC
Created attachment 542986 [details, diff]
The patch

The patch to fix the hash-as-a-reference lines
Comment 2 James Jones 2018-08-10 22:58:26 UTC
Created attachment 542988 [details]
Manifest file for my local repository

My local manifest, in case it helps.
Comment 3 Jonas Stein gentoo-dev 2018-08-11 11:19:47 UTC
Thank you for your contribution. I had a short look on the ebuild. 
Here a few ideas:

* Please test the ebuild with repoman full -x https://wiki.gentoo.org/wiki/Repoman
* We always try to use the latest EAPI, please bump to EAPI=7
* Please remove obsolete lines
* please fix the header. (see /usr/portage/skel.ebuild and https://devmanual.gentoo.org/ebuild-writing/eapi/)
* SRC_URI="mirror://gentoo/${MY_P}-allinone.tar.gz" 
  The Gentoo Mirror is no valid Source URI
Comment 4 James Jones 2018-08-14 20:34:13 UTC
Created attachment 543464 [details]
Manifest file for my local repository
Comment 5 James Jones 2018-08-14 20:43:12 UTC
Created attachment 543466 [details]
Manifest file for my local repository
Comment 6 James Jones 2018-08-14 20:44:40 UTC
Created attachment 543468 [details]
Updated ebuild v2

Thanks for taking a look.  I've attempted to address your feedback, but ran into some issues:

* EAPI 7 isn't supported by some dependencies, namely perl-module.eclass and its dependency perl-functions.eclass.  I created bug https://bugs.gentoo.org/663632 to track that, and attached some updated files there that were good enough to get this package working with EAPI=7.

* I wasn't clear which lines were obsolete, nor what was wrong with the header.  I compared the file to the skeleton ebuild, but the only difference I could discern was an outdated copyright.  I adjusted it to 2018.
Comment 7 James Jones 2018-08-14 20:56:36 UTC
Created attachment 543470 [details]
Manifest file for my local repository
Comment 8 James Jones 2018-08-14 20:57:32 UTC
Created attachment 543472 [details]
Updated ebuild v3

Fix cut/paste error in SRC_URI that dropped use of MY_P var
Comment 9 James Jones 2018-08-28 17:04:07 UTC
Could someone recommend how to proceed here?  I don't want to let this to stagnate forever.  Should I push on the perl eclass updates in bug 663632, or drop the EAPI back down to 6 until the perl eclass is updated to EAPI 7 by someone more knowledgable?  Anything else as far as cleanups needed for the small ebuild update in this bug?
Comment 10 James Le Cuirot gentoo-dev 2018-08-29 20:59:50 UTC
6 is fine in the meantime. Thanks for your work on this.
Comment 11 James Jones 2018-08-29 21:31:42 UTC
Created attachment 545486 [details]
Updated ebuild v4

OK, thanks for the feedback.  Attaching the ebuild with EAPI dropped down to 6.  Re-tested installing it, and then installing unreal-tournament-goty and unreal-tournament-bonuspacks.  Everything looks good.
Comment 12 James Jones 2018-08-29 21:32:17 UTC
Created attachment 545488 [details]
Manifest file for my local repository

Attaching updated Manifest