You are not logged in.

#1 2009-04-14 02:58:44

banbh
Member
Registered: 2009-04-14
Posts: 8

Patching an AUR package [SOLVED]

I'm trying to install omake http://aur.archlinux.org/packages.php?ID=16093 from AUR.  To get this to work I need to patch the code as described above.  However being a newbie I'm having trouble.

Here is what I've done.  Using yaourt I tried installing omake.  It failed, as expected, so I want to patch the code as descibed above.  How do I do this?

Thanks,

Luis

Last edited by banbh (2009-04-16 01:57:49)

Offline

#2 2009-04-14 03:39:11

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Patching an AUR package [SOLVED]

I've never patched a pkgbuild but this doc should give you some ideas and it has links to other stuff later: http://wiki.archlinux.org/index.php/Arc … _Arch64.3F

Offline

#3 2009-04-14 03:53:43

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Patching an AUR package [SOLVED]

banbh wrote:

I'm trying to install omake http://aur.archlinux.org/packages.php?ID=16093 from AUR.  To get this to work I need to patch the code as described above.  However being a newbie I'm having trouble.

Here is what I've done.  Using yaourt I tried installing omake.  It failed, as expected, so I want to patch the code as descibed above.  How do I do this?

Thanks,

Luis

Welcome to the forums.

My advice? Don't use yaourt. Download the tarball from the AUR page and modify the PKGBUILD accordingly.

Offline

#4 2009-04-15 20:32:49

drag0nl0rd
Package Maintainer (PM)
From: Czech Republic
Registered: 2007-10-24
Posts: 127
Website

Re: Patching an AUR package [SOLVED]

PKGBUILD updated, not using it though. In case of any issues, let me know.

Offline

#5 2009-04-16 01:46:24

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: Patching an AUR package [SOLVED]

Yaourt gives you (in fact, strongly recommends the use of) the option of editing pkgbuilds before using them.  You just need to add a line using patch before ./configure.

Offline

#6 2009-04-16 01:56:53

banbh
Member
Registered: 2009-04-14
Posts: 8

Re: Patching an AUR package [SOLVED]

I did as previous posters suggested.  I downloaded the PKGBUILD, ran makepkg, got an error (as expected).  Then I patched the source, following the directions at http://wiki.archlinux.org/index.php/Patching_in_ABS.  I altered the PKGBUILD to point to the patchfile, ran makepkg, followed by pacman -U <name of newly created package file>.  It looks like everything worked.  Thanks!

Offline

#7 2009-04-16 02:03:07

banbh
Member
Registered: 2009-04-14
Posts: 8

Re: Patching an AUR package [SOLVED]

drag0nl0rd wrote:

PKGBUILD updated, not using it though. In case of any issues, let me know.

Thanks.  I don't see the patchfile, though.

Offline

Board footer

Powered by FluxBB