public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] how to apply a patch to ebuild?
@ 2006-03-22 11:56 Allan Spagnol Comar
  2006-03-22 12:19 ` Neil Bothwick
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Allan Spagnol Comar @ 2006-03-22 11:56 UTC (permalink / raw
  To: gentoo-user

Hi I was reading the bug report 114915 at gentoo bugzilla and it
mentions a patch to ebuid, I had downloaded the patch but I don't have
any clue about how can I apply it to current ebuid.

I had searched gentoo wiki and found nothing. Does some gentle soul
can help me with this stupid question ?

thanks, Allan
--
An application asked:
"Requeires Windows 9x, NT4 or better",
so I´ve installed Linux

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] how to apply a patch to ebuild?
  2006-03-22 11:56 [gentoo-user] how to apply a patch to ebuild? Allan Spagnol Comar
@ 2006-03-22 12:19 ` Neil Bothwick
  2006-03-22 12:30 ` Iain Buchanan
  2006-03-22 12:39 ` Alexander Kirillov
  2 siblings, 0 replies; 5+ messages in thread
From: Neil Bothwick @ 2006-03-22 12:19 UTC (permalink / raw
  To: gentoo-user

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

On Wed, 22 Mar 2006 08:56:17 -0300, Allan Spagnol Comar wrote:

> Hi I was reading the bug report 114915 at gentoo bugzilla and it
> mentions a patch to ebuid, I had downloaded the patch but I don't have
> any clue about how can I apply it to current ebuid.

As root:
cd /usr/portage/x11-libs/gtkDPS
patch -p0 </where/you/saved/gtkDPS-0.3.4.ebuild.patch

man patch for more details.


-- 
Neil Bothwick

I don't know if I can assimilate one more Borg Tagline!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

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

* Re: [gentoo-user] how to apply a patch to ebuild?
  2006-03-22 11:56 [gentoo-user] how to apply a patch to ebuild? Allan Spagnol Comar
  2006-03-22 12:19 ` Neil Bothwick
@ 2006-03-22 12:30 ` Iain Buchanan
  2006-03-22 12:39 ` Alexander Kirillov
  2 siblings, 0 replies; 5+ messages in thread
From: Iain Buchanan @ 2006-03-22 12:30 UTC (permalink / raw
  To: gentoo-user

On Wed, 2006-03-22 at 08:56 -0300, Allan Spagnol Comar wrote:
> Hi I was reading the bug report 114915 at gentoo bugzilla and it
> mentions a patch to ebuid, I had downloaded the patch but I don't have
> any clue about how can I apply it to current ebuid.

well, how confident are you at having a go?  Search the wiki for
"portage overlay".  Essentially it involves making a directory
(like /usr/local/portage) and putting modified ebuilds in there.

You only have to copy as much or as little of /usr/portage as you like,
that may only be 2 or 3 files.

The patching itself is done with the `patch` command line tool.  man
patch will give you more help there.  Usually its `patch -px <patchfile`

The reason for adding it to the overlay (your other option is patching
straight to /usr/portage) is because /usr/portage will be overwritten by
the next emerge --sync.

Hope this gives you a head start, post back if you need more info.

-- 
Iain Buchanan <iain at pcorp dot com dot au>

Genius is one percent inspiration and ninety-nine percent perspiration.
		-- Thomas Alva Edison

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] how to apply a patch to ebuild?
  2006-03-22 11:56 [gentoo-user] how to apply a patch to ebuild? Allan Spagnol Comar
  2006-03-22 12:19 ` Neil Bothwick
  2006-03-22 12:30 ` Iain Buchanan
@ 2006-03-22 12:39 ` Alexander Kirillov
  2006-03-22 19:40   ` Allan Spagnol Comar
  2 siblings, 1 reply; 5+ messages in thread
From: Alexander Kirillov @ 2006-03-22 12:39 UTC (permalink / raw
  To: gentoo-user

> Hi I was reading the bug report 114915 at gentoo bugzilla and it
> mentions a patch to ebuid, I had downloaded the patch but I don't have
> any clue about how can I apply it to current ebuid.

There may be a patched version already in portage, still masked.
If there isn't you may consider creating a new ebuild under 
PORTDIR_OVERLAY using the old one as a template.

HTH

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] how to apply a patch to ebuild?
  2006-03-22 12:39 ` Alexander Kirillov
@ 2006-03-22 19:40   ` Allan Spagnol Comar
  0 siblings, 0 replies; 5+ messages in thread
From: Allan Spagnol Comar @ 2006-03-22 19:40 UTC (permalink / raw
  To: gentoo-user

thank you all

On 3/22/06, Alexander Kirillov <nevis2us@infoline.su> wrote:
> > Hi I was reading the bug report 114915 at gentoo bugzilla and it
> > mentions a patch to ebuid, I had downloaded the patch but I don't have
> > any clue about how can I apply it to current ebuid.
>
> There may be a patched version already in portage, still masked.
> If there isn't you may consider creating a new ebuild under
> PORTDIR_OVERLAY using the old one as a template.
>
> HTH
>
> --
> gentoo-user@gentoo.org mailing list
>
>


--
An application asked:
"Requeires Windows 9x, NT4 or better",
so I´ve installed Linux

-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2006-03-22 19:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-22 11:56 [gentoo-user] how to apply a patch to ebuild? Allan Spagnol Comar
2006-03-22 12:19 ` Neil Bothwick
2006-03-22 12:30 ` Iain Buchanan
2006-03-22 12:39 ` Alexander Kirillov
2006-03-22 19:40   ` Allan Spagnol Comar

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