You are not logged in.

#1 2010-07-30 16:40:40

jalu
Member
Registered: 2009-04-05
Posts: 140

[SOLVED] Applying patches: rsync transliterate

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

#2 2010-07-30 16:43:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Applying patches: rsync transliterate

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

#3 2010-07-30 16:56:44

jalu
Member
Registered: 2009-04-05
Posts: 140

Re: [SOLVED] Applying patches: rsync transliterate

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

#4 2010-07-30 17:06:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Applying patches: rsync transliterate

jalu wrote:

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

#5 2010-07-30 17:15:59

jalu
Member
Registered: 2009-04-05
Posts: 140

Re: [SOLVED] Applying patches: rsync transliterate

Where would I be able to find that PKGBUILD?

Offline

#6 2010-07-30 17:18:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Applying patches: rsync transliterate

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

#7 2010-07-30 17:22:32

jalu
Member
Registered: 2009-04-05
Posts: 140

Re: [SOLVED] Applying patches: rsync transliterate

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

#8 2010-07-30 17:26:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Applying patches: rsync transliterate

jalu wrote:

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

#9 2010-07-30 23:59:48

jalu
Member
Registered: 2009-04-05
Posts: 140

Re: [SOLVED] Applying patches: rsync transliterate

karol wrote:

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

#10 2010-08-28 17:16:33

jalu
Member
Registered: 2009-04-05
Posts: 140

Re: [SOLVED] Applying patches: rsync transliterate

Hey karol,

I managed to get a package up. All of the information you provided was very, very helpful. Thanks again.

Offline

Board footer

Powered by FluxBB