You are not logged in.

#1 2010-05-28 06:27:44

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

[SOLVED] How to install AUR packages with patchname.patch

Hi all,

I'm trying to install lottanzb from the AUR and there's are a dependency called par2cmdline 0.4-13 that has a lot of nameofpatch.patch that are included in the AUR par2cmdline 0.4-13 package page that just open up to a url that shows code.

I created patch files from the code displayed in the url with a text editor and added them to the extracted LOTTANZB folder in my build directory but when I go to build the package with PKGBUILD it runs through a check sum while building and the checks don't match.

I'm obviously doing something fundamentally wrong here. Can someone direct me?

Thanks,

Last edited by bennylb0 (2010-05-28 13:30:16)

Offline

#2 2010-05-28 07:28:53

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: [SOLVED] How to install AUR packages with patchname.patch

Those patches are for par2cmdline, they don't belong into the lottanzb folder. The links on the package page of par2cmdline are there just for quick viewing. Patches are always included in the source tarballs. Download the par2cmdline "Tarball" link from its AUR page, extract, and makepkg there.

Sounds like you need to read up on AUR smile

Offline

#3 2010-05-28 12:21:30

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

Re: [SOLVED] How to install AUR packages with patchname.patch

Hi, thanks for reply.

Sorry, my mistake.

I did place patch files inside the par2cmdline-0.4 folder. The only reason I created the .patch files and placed them inside par2cmdline-0.4 folder was because the PKGBUILD as well as the other 5 .patch files didn't exist inside the extracted build folder. They only place I could find them was in AUR par2cmdline-0.4 displayed as a url.

When I copied and created the PKGBUILD as it did not exist inside the extracted folder par2cmdline-0.4 folder I received the following error:- 

Error autoconf.patch was not found in the build directory and is not a url. That along with 4 others do not exist in the build directory.

You can see this bellow:- smile

[ben@ben par2cmdline-0.4]$ makepkg
==> Making package: par2cmdline 0.4-13 i686 (Fri May 28 22:08:21 EST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading par2cmdline-0.4.tar.gz...
--2010-05-28 22:08:23--  http://downloads.sourceforge.net/source … 0.4.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/projec … 0.4.tar.gz [following]
--2010-05-28 22:08:23--  http://downloads.sourceforge.net/projec … 0.4.tar.gz
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://transact.dl.sourceforge.net/proj … 0.4.tar.gz [following]
--2010-05-28 22:08:24--  http://transact.dl.sourceforge.net/proj … 0.4.tar.gz
Resolving transact.dl.sourceforge.net... 202.55.147.10
Connecting to transact.dl.sourceforge.net|202.55.147.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 239312 (234K) [application/x-gzip]
Saving to: "par2cmdline-0.4.tar.gz.part"

100%[===================================================>] 239,312      179K/s   in 1.3s   

2010-05-28 22:08:26 (179 KB/s) - "par2cmdline-0.4.tar.gz.part" saved [239312/239312]

==> ERROR: par2cmdline-0.4-autoconf.patch was not found in the build directory and is not a URL.

Offline

#4 2010-05-28 12:39:42

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] How to install AUR packages with patchname.patch

Not sure what you are doing wrong there. All patches are in the tarball, just extract it and run makepkg.

Offline

#5 2010-05-28 13:22:42

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

Re: [SOLVED] How to install AUR packages with patchname.patch

I am stumped. Bellow is the contents of the folder after I have just extracted it. I can't see the PKGBUILD file or the patches.

Am I missing something?

[ben@ben par2cmdline-0.4]$ ls
aclocal.m4             galois.h                    par2fileformat.cpp
AUTHORS                INSTALL                     par2fileformat.h
ChangeLog              install-sh                  par2repairer.cpp
commandline.cpp        letype.h                    par2repairer.h
commandline.h          mainpacket.cpp              par2repairersourcefile.cpp
config.guess           mainpacket.h                par2repairersourcefile.h
config.h.in            Makefile.am                 PORTING
config.sub             Makefile.in                 posttest
configure              md5.cpp                     pretest
configure.ac           md5.h                       README
COPYING                missing                     recoverypacket.cpp
crc.cpp                mkinstalldirs               recoverypacket.h
crc.h                  NEWS                        reedsolomon.cpp
creatorpacket.cpp      par1fileformat.cpp          reedsolomon.h
creatorpacket.h        par1fileformat.h            ROADMAP
criticalpacket.cpp     par1repairer.cpp            stamp-h.in
criticalpacket.h       par1repairer.h              test1
datablock.cpp          par1repairersourcefile.cpp  test2
datablock.h            par1repairersourcefile.h    test3
depcomp                par2cmdline.cpp             test4
descriptionpacket.cpp  par2cmdline.h               test5
descriptionpacket.h    par2cmdline.sln             test6
diskfile.cpp           par2cmdline.vcproj          testdata.tar.gz
diskfile.h             par2creator.cpp             verificationhashtable.cpp
filechecksummer.cpp    par2creator.h               verificationhashtable.h
filechecksummer.h      par2creatorsourcefile.cpp   verificationpacket.cpp
galois.cpp             par2creatorsourcefile.h     verificationpacket.h

Offline

#6 2010-05-28 13:29:53

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

Re: [SOLVED] How to install AUR packages with patchname.patch

Sorry just worked it out. I've been downloading the generic source par2cmdline-0.4.tar.gz version rather AUR tarball (par2cmdline.tar.gz). The difference being the 0.4. wink

Thanks,

Offline

#7 2010-05-28 14:22:10

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] How to install AUR packages with patchname.patch

As already advised - read about the AUR. The information is all there in the wiki - use it.

Offline

Board footer

Powered by FluxBB