Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I add a local ebuild?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
koopdi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2011
Posts: 100

PostPosted: Sun Apr 24, 2011 7:48 pm    Post subject: How do I add a local ebuild? Reply with quote

I'm having trouble adding a local ebuild.
My goal is to install urbanterror, using the ebuild found here on bugzilla.

Quote:
Pablo 2011-03-10 05:13:34 UTC

I can confirm that this ebuild
(
https://bugs.gentoo.org/attachment.cgi?id=226931) plus its portability patch
(https://bugs.gentoo.org/attachment.cgi?id=226933) compiles without errors in my
PhenomII x2 x86_64 2.6.36-gentoo-r5.

The only thing I had to take care is to enable joystick flag in on libsdl;
otherwise it won't compile.


I have created a directory /usr/local/portage/games-fps/urbanterror/
to that directory, I added urbanterror.ebuild and copied in the contents of https://bugs.gentoo.org/attachment.cgi?id=226931 .

I edited /etc/make.conf and defined PORTDIR_OVERLAY="/usr/local/portage" .

Here's the output of emerge -s urbanterror:
Code:
Searching...   |
Invalid ebuild name: /usr/local/portage/games-fps/urbanterror/urbanterror.ebuild
 
[ Results for search key : urbanterror ]
[ Applications found : 1 ]


hmm, it finds it but doesn't like it, what should I do?
thanks-
Back to top
View user's profile Send private message
jbouzan
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2007
Posts: 138

PostPosted: Sun Apr 24, 2011 7:55 pm    Post subject: Reply with quote

Do you use layman? What you've shown would interfere with it. I have the line
Code:
$ ack -i over /etc/make.conf
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/local"

Also in the "local" folder I have a folder "profiles" containing a file "repo_name" with the word "local" in it. It used to be that not having that file showed a warning on every emerge, perhaps now it is required for an overlay to work?
Also I believe you'll have to go to the directory with the ebuild and use
Code:
ebuild *.ebuild digest
for portage to emerge it.

Edit: urbanterror.ebuild? With no version number? I don't think portage allows that. It definitely won't install if you do get the overlay working, because the version number is used in the ebuild. See the references to $PV in the SRC_URI of the ebuild.
Back to top
View user's profile Send private message
koopdi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2011
Posts: 100

PostPosted: Sun Apr 24, 2011 11:06 pm    Post subject: Reply with quote

In the spirit of keeping things simple, I have not installed layman. If it would make the process easier, I will install it.

I have changed the name to urbanterror-4.1.1, as 4.1.1 is the latest version. Does this reflect the proper naming convention? The naming error has gone way.

Tried to create the digest but got an error:
# ebuild urbanterror-4.1.1.ebuild digest
Code:
Appending /usr/local/portage/local to PORTDIR_OVERLAY...
Error(s) in metadata for 'games-fps/urbanterror-4.1.1':
  RDEPEND: USE flag 'curl' referenced in conditional 'curl?' is not in IUSE


That seemed straightforward so I added curl to the IUSE variable.
IUSE="dedicated openal vorbis" --> IUSE="dedicated openal vorbis curl"

Now the output from -
# ebuild urbanterror-4.1.1.ebuild digest:
(on pastebin)

I don't know what it's supposed to look like but the script does not complain -- so looks good to me.

Now to try and emerge it again -
# emerge -av urbanterror:
Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "urbanterror".

emerge: searching for similar names...
emerge: Maybe you meant any of these: www-apps/curator, dev-python/weberror, dev-perl/Error?


Well that's no good.
Aha! -- It's in /usr/local/portage/local/games-fps/urbanterror...I moved it to /usr/local/portage/games-fps/urbanterror

# emerge -av urbanterror
Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "urbanterror" have been masked.
!!! One of the following masked packages is required to complete your request:
- games-fps/urbanterror-4.1.1 (masked by: ~amd64 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


I added games-fps/urbanterror to /etc/portage/package.keywords
now -
# emerge -av urbanterror:
Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] games-fps/urbanterror-4.1.1  USE="vorbis -curl -dedicated -openal" 0 kB [1]

Total: 1 package (1 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage

Would you like to merge these packages? [Yes/No]
 


'y' is selected in order to merge the package:
Code:
Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) games-fps/urbanterror-4.1.1 from local
 * ioq3-1779-urt-git-170310.tar.7z RMD160 SHA1 SHA256 size ;-) ...      [ ok ]
 * UrbanTerror_41.1_FULL.zip RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
 * Urbanterror.svg RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
 * Package:    games-fps/urbanterror-4.1.1
 * Repository: local
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU vorbis
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking ioq3-1779-urt-git-170310.tar.7z to /var/tmp/portage/games-fps/urbanterror-4.1.1/work
/usr/lib64/portage/bin/ebuild.sh: line 401: 7z: command not found

 * ERROR: games-fps/urbanterror-4.1.1 failed (unpack phase):
 *   failure unpacking ioq3-1779-urt-git-170310.tar.7z
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_unpack
 *   environment, line 2499:  Called base_src_unpack
 *   environment, line  328:  Called unpack 'ioq3-1779-urt-git-170310.tar.7z' 'UrbanTerror_41.1_FULL.zip' 'Urbanterror.svg'
 *     ebuild.sh, line  404:  Called die
 * The specific snippet of code:
 *                  die "$myfail"
 *
 * If you need support, post the output of 'emerge --info =games-fps/urbanterror-4.1.1',
 * the complete build log and the output of 'emerge -pqv =games-fps/urbanterror-4.1.1'.
 * This ebuild is from an overlay named 'local': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/environment'.
 * S: '/var/tmp/portage/games-fps/urbanterror-4.1.1/work'

>>> Failed to emerge games-fps/urbanterror-4.1.1, Log file:

>>>  '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/build.log'

 * Messages for package games-fps/urbanterror-4.1.1:

 * ERROR: games-fps/urbanterror-4.1.1 failed (unpack phase):
 *   failure unpacking ioq3-1779-urt-git-170310.tar.7z
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_unpack
 *   environment, line 2499:  Called base_src_unpack
 *   environment, line  328:  Called unpack 'ioq3-1779-urt-git-170310.tar.7z' 'UrbanTerror_41.1_FULL.zip' 'Urbanterror.svg'
 *     ebuild.sh, line  404:  Called die
 * The specific snippet of code:
 *                  die "$myfail"
 *
 * If you need support, post the output of 'emerge --info =games-fps/urbanterror-4.1.1',
 * the complete build log and the output of 'emerge -pqv =games-fps/urbanterror-4.1.1'.
 * This ebuild is from an overlay named 'local': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/environment'.
 * S: '/var/tmp/portage/games-fps/urbanterror-4.1.1/work'


I installed p7zip and tried again:
Code:
>>> Verifying ebuild manifests

>>> Emerging (1 of 1) games-fps/urbanterror-4.1.1 from local
 * ioq3-1779-urt-git-170310.tar.7z RMD160 SHA1 SHA256 size ;-) ...      [ ok ]
 * UrbanTerror_41.1_FULL.zip RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
 * Urbanterror.svg RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
 * Package:    games-fps/urbanterror-4.1.1
 * Repository: local
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU vorbis
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking ioq3-1779-urt-git-170310.tar.7z to /var/tmp/portage/games-fps/urbanterror-4.1.1/work
>>> Unpacking UrbanTerror_41.1_FULL.zip to /var/tmp/portage/games-fps/urbanterror-4.1.1/work
[/var/tmp/portage/games-fps/urbanterror-4.1.1/distdir/UrbanTerror_41.1_FULL.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /var/tmp/portage/games-fps/urbanterror-4.1.1/distdir/UrbanTerror_41.1_FULL.zip or
        /var/tmp/portage/games-fps/urbanterror-4.1.1/distdir/UrbanTerror_41.1_FULL.zip.zip, and cannot find /var/tmp/portage/games-fps/urbanterror-4.1.1/distdir/UrbanTerror_41.1_FULL.zip.ZIP, period.
 * ERROR: games-fps/urbanterror-4.1.1 failed (unpack phase):
 *   failure unpacking UrbanTerror_41.1_FULL.zip
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_unpack
 *   environment, line 2499:  Called base_src_unpack
 *   environment, line  328:  Called unpack 'ioq3-1779-urt-git-170310.tar.7z' 'UrbanTerror_41.1_FULL.zip' 'Urbanterror.svg'
 *     ebuild.sh, line  391:  Called die
 * The specific snippet of code:
 *               ( while true ; do echo n || break ; done ) | \
 *               unzip -qo "${srcdir}${x}" || die "$myfail"
 *
 * If you need support, post the output of 'emerge --info =games-fps/urbanterror-4.1.1',
 * the complete build log and the output of 'emerge -pqv =games-fps/urbanterror-4.1.1'.
 * This ebuild is from an overlay named 'local': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/environment'.
 * S: '/var/tmp/portage/games-fps/urbanterror-4.1.1/work'

>>> Failed to emerge games-fps/urbanterror-4.1.1, Log file:

>>>  '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/build.log'

 * Messages for package games-fps/urbanterror-4.1.1:

 * ERROR: games-fps/urbanterror-4.1.1 failed (unpack phase):
 *   failure unpacking UrbanTerror_41.1_FULL.zip
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_unpack
 *   environment, line 2499:  Called base_src_unpack
 *   environment, line  328:  Called unpack 'ioq3-1779-urt-git-170310.tar.7z' 'UrbanTerror_41.1_FULL.zip' 'Urbanterror.svg'
 *     ebuild.sh, line  391:  Called die
 * The specific snippet of code:
 *               ( while true ; do echo n || break ; done ) | \
 *               unzip -qo "${srcdir}${x}" || die "$myfail"
 *
 * If you need support, post the output of 'emerge --info =games-fps/urbanterror-4.1.1',
 * the complete build log and the output of 'emerge -pqv =games-fps/urbanterror-4.1.1'.
 * This ebuild is from an overlay named 'local': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-fps/urbanterror-4.1.1/temp/environment'.
 * S: '/var/tmp/portage/games-fps/urbanterror-4.1.1/work'


That's progress but still not there.
I think UrbanTerror_41.1_FULL.zip is the wrong filename, the actual name should be UrbanTerror_411_FULL.zip.
I'm not sure how to change that though.

Any feedback so far?
Back to top
View user's profile Send private message
koopdi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2011
Posts: 100

PostPosted: Sun Apr 24, 2011 11:53 pm    Post subject: Reply with quote

looks like the file name should be this:
UrbanTerror411.zip, from:
ftp://ftp.snt.utwente.nl/pub/games/urbanterror/full_install/linux_or_mac/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum