You are not logged in.

#1 2009-12-24 15:36:15

leetstalker
Member
Registered: 2009-12-23
Posts: 15

[solved]Using patches while compiling

Trying to install snack

http://aur.archlinux.org/packages.php?ID=6927

There are 2 patches and im not sure how to use them. All info i read was related to using patches by editing the PKGBUILD file. But this is a from source compilation. I checked the configure file and didnt see any entries for it. Could someone give me an explanation?

Last edited by leetstalker (2009-12-24 15:51:29)

Offline

#2 2009-12-24 15:41:58

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved]Using patches while compiling

Your explanation is confusing. If you pull all the stuff from the AUR, then why would you install from source?

What you pull from the AUR is a blueprint for the package. You build it, you install it. If you install from source, you might as well skip the AUR part.

If you are building the package, then you shouldn't worry about the patches. If you look at the PKGBUILD you'll see they're applied in the process.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-12-24 15:43:23

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [solved]Using patches while compiling

Well, just download the source tar.gz and those two patches and the PKGBUILD in the same directory and run:

makepkg -s PKGBUILD

Last edited by sHyLoCk (2009-12-24 15:44:03)


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#4 2009-12-24 15:44:00

leetstalker
Member
Registered: 2009-12-23
Posts: 15

Re: [solved]Using patches while compiling

While researching the compile error i came to the AUR page and assumed the patches applied to the same process. I will try the AUR method. Thank You.

Offline

#5 2009-12-24 15:45:17

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [solved]Using patches while compiling

The patches are implemented within the PKGBUILD you don't need to do anything else manually:

 patch < ../../configure.patch || return 1
  patch < ../../alsa.patch || return 1

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#6 2009-12-24 15:51:10

leetstalker
Member
Registered: 2009-12-23
Posts: 15

Re: [solved]Using patches while compiling

The AUR comes with the patches and installed nicely except for makepkg -s wasnt sudoing. I just created the dirs it needed with read/write perms and it installed fine. makepkg -s has worked up until this point so not sure why it didint this time. Thanx guys.

Offline

#7 2009-12-24 15:53:01

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [solved]Using patches while compiling

I don't remember the exact makepkg command, I'm not on Arch right now, man makepkg for understanding which switch to use, I think -p is used to build the packages and -s is used to download necesary depepndencies and then build the package.

Regards


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

Board footer

Powered by FluxBB