You are not logged in.
Hello all,
What is the best way to apply a source code patch to a piece of software? Does pacman provide a tool for doing this, should I create my own package, or is there something else I should do?
I'm interested in using the rsync "transliterate" patch, as I use rsync to transfer music from my hard drive (ext4) to Rockbox (FAT32).
Thanks in advance.
Last edited by jalu (2010-08-28 17:16:52)
Offline
From that link:
10 To use this patch, run these commands for a successful build:
11
12 patch -p1 <patches/transliterate.diff
13 ./configure (optional if already run)
14 make
Now you need to add those command to the PKGBUILD and you're done.
http://wiki.archlinux.org/index.php/PKGBUILD
Here's an example of what it should look like:
http://aur.archlinux.org/packages/rxvt- … s/PKGBUILD
Last edited by karol (2010-07-30 16:46:16)
Offline
Interesting. Do I need to create my own PKGBUILD or can I edit the PKGBUILD for the default rsync package somehow?
Thanks for the help.
Offline
Interesting. Do I need to create my own PKGBUILD or can I edit the PKGBUILD for the default rsync package somehow?
Thanks for the help.
If you only add that patch it would be easier to start w/ the current PKGBUILD and modify it.
Offline
Where would I be able to find that PKGBUILD?
Offline
You find the package you want, click on the name
http://www.archlinux.org/packages/?sort … =&limit=50
Let's assume you want the 32-bit one
http://www.archlinux.org/packages/extra/i686/rsync/
Now click on the 'SVN Entries (trunk)' link in the top right corner and you go http://repos.archlinux.org/wsvn/packages/rsync/trunk/
Edit: I'm not sure if the patch will work, as it is against an older version of rsync, but you can try it out.
Last edited by karol (2010-07-30 17:21:04)
Offline
Oh wow, very very cool. I had no idea this existed (let alone had a very nice, browseable web interface). I am surprised Arch is using SVN though... :-)
Thanks a ton for all the help, karol. If I get a package together I'll try to post a link to it in this thread for anyone who comes across this post.
Thanks again.
Offline
Oh wow, very very cool. I had no idea this existed (let alone had a very nice, browseable web interface). I am surprised Arch is using SVN though... :-)
Not a word, understood? ;-)
Just don't be surprised if it doesn't work, as it was made to work against an older version.
Edit: I've found newer version of this patch http://gitweb.samba.org/?p=rsync-patche … c41d0eb4f3
Last edited by karol (2010-07-30 17:30:38)
Offline
Just don't be surprised if it doesn't work, as it was made to work against an older version.
Edit: I've found newer version of this patch http://gitweb.samba.org/?p=rsync-patche … c41d0eb4f3
Very cool. I knew I would have to find the most up to date version of the patch, but thanks for doing the work for me. :-)
I will proceed with a healthy skepticism regardless, though. I've never written a package before. Wish me luck!
Offline
Hey karol,
I managed to get a package up. All of the information you provided was very, very helpful. Thanks again.
Offline