Modifying Ebuilds... a question [Solved]

Anything that pertains to Portage

Moderator: Moderators

Modifying Ebuilds... a question [Solved]

Postby Sisko43 » Mon Sep 20, 2010 11:18

Sometimes I need to modify an ebuild. An example:
Two weeks ago I compiled the 2.6.33.7-rt29-kernel. General problem is, the official nvidia-drivers won't install and needs to be patched. I do this by adding the relevant patch to the nvidia.ebuild in my local overlay followed by:

Code: Select all
ebuild xyz.ebuild digest


This works always well, but only when I follow the strict Gentoo-structure, meaning:

x11-drivers/nvidia-drivers/nvidia-xyz.ebuild. The first two categorys are ok and I understand that, but why can't I choose the ebuild-name for myself.

When I rename it to:

- nvidia-drivers-256.53-r99.ebuild

digest works

everything else fails

- mynewsuperpatchednvidiadriver.ebuild

or even:

-nvidia-drivers-256.53-rt.ebuild

Why is that so and is there a way to choose a name freely...
Last edited by Sisko43 on Mon Sep 20, 2010 15:56, edited 1 time in total.
Sisko43
Growing Hen
 
Posts: 195
Joined: Sun Mar 29, 2009 12:59

Re: Modifying Ebuilds... a question

Postby Fitzcarraldo » Mon Sep 20, 2010 12:28

The ebuild file name has to adhere to a defined syntax. See the Gentoo Developer Handbook - Ebuild HOWTO for the syntax. The Gentoo Wiki article Writing Ebuilds is also a useful reference.

I'm going to move this thread to the Portage|Emerge Package Managers shed (forum), as that is the more appropriate place for it.


EDIT: BTW, the use of "digest" in the ebuild command is deprecated. The correct syntax now is:

Code: Select all
# ebuild foo-1.2.3.ebuild manifest
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Modifying Ebuilds... a question

Postby Thev00d00 » Mon Sep 20, 2010 13:56

Here is another link for you reading.

http://devmanual.gentoo.org/ebuild-writ ... ming-rules
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: Modifying Ebuilds... a question

Postby Sisko43 » Mon Sep 20, 2010 15:56

Big thanks to both of you. Very helpful as always.

@Fitzcarraldo
Still a great film by the way. I had the honor to visit a special screening in 1999 followed by a two hour questioning with Werner Herzog. After that night I decided to study something film related at the University.

@Thev00d00

Great new Sabayon-Artwork as always.
Sisko43
Growing Hen
 
Posts: 195
Joined: Sun Mar 29, 2009 12:59

Re: Modifying Ebuilds... a question [Solved]

Postby Fitzcarraldo » Mon Sep 20, 2010 16:30

Yup. I happened to watch it and Les Banks' documentary again a few days ago, after many years. Still found it a fascinating, unique film and an amazing project (even if some of the acting is OTT).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest

cron