On Sun, Jul 27, 2003 at 11:04:27PM +0200, Florian Huber wrote: > Hello Niklas, > > On Sun, 27 Jul 2003 23:29:51 +0300 > Niklas Koponen <[EMAIL PROTECTED]> wrote: > > ... > > I was thinking that first I copy the media-gfx/sane-backends > > directory to /usr/local/portage. > > > > Then I copy sane-backends-1.0.11.ebuild to > > sane-backends-1.0.11-r1.ebuild. > > > > Then I add the patching to src_unpack. > > > > Then I add PORTDIR_OVERLAY="/usr/local/portage" > > > > But what then? > > You'd better create an sane-backends-1.0.11.ebuild in > /usr/local/portage/media-gfx/sane-backends/, rather that -r1. If there > will later be an official -r1 ebuild, it would be overwritten by your > own ebuild. > > Then simply `emerge sane-backends` or `emerge /path/to/your.ebuild`. > > > > > Am I going to a totally wrong direction? > > You could either write you own ebuild or apply the patch manually. I > suggested adding a MY_PATCHES environment var in gentoo-dev ML, but > they did not like it. Matt "frogger" Rickard answered this: > > [quote] > This is possible using the ebuild command explicitely. 'ebuild > ebuildname.ebuild unpack', apply the patches you want (to > /var/tmp/portage/ebuildname), then ebuild compile, install, and > qmerge. > > Not completely automated, but how often does one need to add > additional patches to packages? I've found this method to work quite > well for me. > [/quote] >
I preferred making the ebuild into a local portage tree. When I copied the media-gfx/sane-backends to my local tree I was in such a hurry that I left the media-gfx directory out so that the local hierarchy was /usr/local/portage/sane-backends. This gave quite bizarre error messages and I was confused over if my local portage tree was in use at all. When I noticed this and fixed it everything went fine with 'emerge sane-backends'. Thank you for the reply. > HTH > Florian Huber > > -- > [EMAIL PROTECTED] mailing list > -- Niklas Koponen | Hietapellontie 3 B 7 | [EMAIL PROTECTED] +358 40 757 1459 | 02400 KIRKKONUMMI | http://www.iki.fi/niklas.koponen -- [EMAIL PROTECTED] mailing list
