public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Patching of ebuilds
@ 2009-01-29  9:26 Andrew Lowe
  2009-01-29  9:28 ` Justin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrew Lowe @ 2009-01-29  9:26 UTC (permalink / raw
  To: gentoo-user

Hi all,
	I've had a look on the web but can't seem to find any instructions on 
how to do the patching of ebuilds. I have the situation where I've tried 
to install the media centre app MMSV2. I've done the emerge, a lot of 
dependent functionality was compiled and now it's up to compiling the 
actual MMSV2. When compiling, an error happens. I had a look in 
bugs.gentoo.org and there is a bug in there that covers, I think, the 
failure.

	Attached to the bug is a patch that someone has developed. I now want 
to use this patch to patch the ebuild and see if it really does fix the 
problem. My problem is that I don't know the actual steps needed to do 
the patching. I know about the patch utility but I don't know where the 
actual files are, and how I  should do the patching so that Portage does 
not view the patched files as corrupt and therefore won't do the emerge.

	If someone can tell me how, or point me to a webpage that tells me how, 
to do the patching it would be greatly appreciated.

	Regards,
		Andrew



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Patching of ebuilds
  2009-01-29  9:26 [gentoo-user] Patching of ebuilds Andrew Lowe
@ 2009-01-29  9:28 ` Justin
  2009-01-29  9:55   ` Jesús Guerrero
  2009-01-29 16:09 ` [gentoo-user] " James
  2009-01-29 16:30 ` [gentoo-user] " Paul Hartman
  2 siblings, 1 reply; 5+ messages in thread
From: Justin @ 2009-01-29  9:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1187 bytes --]

Andrew Lowe schrieb:
> Hi all,
>     I've had a look on the web but can't seem to find any instructions
> on how to do the patching of ebuilds. I have the situation where I've
> tried to install the media centre app MMSV2. I've done the emerge, a lot
> of dependent functionality was compiled and now it's up to compiling the
> actual MMSV2. When compiling, an error happens. I had a look in
> bugs.gentoo.org and there is a bug in there that covers, I think, the
> failure.
> 
>     Attached to the bug is a patch that someone has developed. I now
> want to use this patch to patch the ebuild and see if it really does fix
> the problem. My problem is that I don't know the actual steps needed to
> do the patching. I know about the patch utility but I don't know where
> the actual files are, and how I  should do the patching so that Portage
> does not view the patched files as corrupt and therefore won't do the
> emerge.
> 
>     If someone can tell me how, or point me to a webpage that tells me
> how, to do the patching it would be greatly appreciated.
> 
>     Regards,
>         Andrew
> 

http://en.gentoo-wiki.com/wiki/Creating_an_Updated_Ebuild


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Patching of ebuilds
  2009-01-29  9:28 ` Justin
@ 2009-01-29  9:55   ` Jesús Guerrero
  0 siblings, 0 replies; 5+ messages in thread
From: Jesús Guerrero @ 2009-01-29  9:55 UTC (permalink / raw
  To: gentoo-user

Also check the page where you found the patch carefully.
Sometimes you can find an updated ebuild that works with
that patch in the same page, so you don't have to patch it
yourself.

You need to examine the patch and clear up whether it's
a patch for the app or for the ebuild itself. If it's
a patch for the ebuild you just need to copy the ebuild
into an overlay and patch it. But if it's a patch for the
app you need to modify the ebuild so it applies the patch
to the app after unpacking it and before compiling.

This is the official documentation about how to correctly
alter the portage tree so you don't mess up anything. Either
way you need to create an overlay. That's for sure.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=5

-- 
Jesús Guerrero



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user]  Re: Patching of ebuilds
  2009-01-29  9:26 [gentoo-user] Patching of ebuilds Andrew Lowe
  2009-01-29  9:28 ` Justin
@ 2009-01-29 16:09 ` James
  2009-01-29 16:30 ` [gentoo-user] " Paul Hartman
  2 siblings, 0 replies; 5+ messages in thread
From: James @ 2009-01-29 16:09 UTC (permalink / raw
  To: gentoo-user

Andrew Lowe <agl <at> wht.com.au> writes:


> 	If someone can tell me how, or point me to a webpage that tells me how, 
> to do the patching it would be greatly appreciated.



Here are a few links for your perusal:

http://devmanual.gentoo.org/
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=0&chap=0


hth,
James




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Patching of ebuilds
  2009-01-29  9:26 [gentoo-user] Patching of ebuilds Andrew Lowe
  2009-01-29  9:28 ` Justin
  2009-01-29 16:09 ` [gentoo-user] " James
@ 2009-01-29 16:30 ` Paul Hartman
  2 siblings, 0 replies; 5+ messages in thread
From: Paul Hartman @ 2009-01-29 16:30 UTC (permalink / raw
  To: gentoo-user

On Thu, Jan 29, 2009 at 3:26 AM, Andrew Lowe <agl@wht.com.au> wrote:
> Hi all,
>        I've had a look on the web but can't seem to find any instructions on
> how to do the patching of ebuilds. I have the situation where I've tried to
> install the media centre app MMSV2. I've done the emerge, a lot of dependent
> functionality was compiled and now it's up to compiling the actual MMSV2.
> When compiling, an error happens. I had a look in bugs.gentoo.org and there
> is a bug in there that covers, I think, the failure.
>
>        Attached to the bug is a patch that someone has developed. I now want
> to use this patch to patch the ebuild and see if it really does fix the
> problem. My problem is that I don't know the actual steps needed to do the
> patching. I know about the patch utility but I don't know where the actual
> files are, and how I  should do the patching so that Portage does not view
> the patched files as corrupt and therefore won't do the emerge.
>
>        If someone can tell me how, or point me to a webpage that tells me
> how, to do the patching it would be greatly appreciated.
>
>        Regards,
>                Andrew

You can usually use the "ebuild" command to do the portage steps
separately, so after unpacking you can change to the portage tmpdir
and apply the patch from bugzilla. Then proceed with the making and
installing steps with "ebuild".



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-29 16:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29  9:26 [gentoo-user] Patching of ebuilds Andrew Lowe
2009-01-29  9:28 ` Justin
2009-01-29  9:55   ` Jesús Guerrero
2009-01-29 16:09 ` [gentoo-user] " James
2009-01-29 16:30 ` [gentoo-user] " Paul Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox