You are not logged in.

#1 2007-10-03 05:53:42

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Rsync problem

Hi all,
I have a problem with the new version of rsync (2.6.9-3):
now with my backup script I obtain this error:

rsync: failed to set times on "<some link>": Function not implemented (38)

repeated some times.
I found this bug report: https://bugzilla.samba.org/show_bug.cgi?id=4977
The kernel installed on my machine (it's a server) is 2.6.19-ARCH, so I think the problem is related
with lutimes support that is present only in kernel >=2.622
It's not a big problem because I can recompile rsync package with my kernel version.
With the previous version (2.6.9-1) the script works correctly

Offline

#2 2007-10-07 05:56:35

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: Rsync problem

It seems that the problem persists even after I recompiled the package against my kernel version (2.6.19).
I also disabled the lutimes support but without success.
Someone have the same problem?

Last edited by luca (2007-10-07 05:58:36)

Offline

#3 2007-11-21 19:28:53

SystemParadox
Member
From: Tavistock (Devon) and Bristol
Registered: 2006-06-09
Posts: 35
Website

Re: Rsync problem

Yes same problem. Somewhat irritating. I don't have time to change my servers kernel at the moment and I can't change my laptops kernel because I need realtime.

Even changing config.h doesn't make it go away. WHY NOT?!

Apparently rsync 3 has fixed this. Why isn't rsync 3 in the repo?

Offline

#4 2007-11-21 19:37:59

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Rsync problem

SystemParadox wrote:

Why isn't rsync 3 in the repo?

Maybe because it is still a beta version?
From the rsync website: "Rsync 3.0.0pre5 available for release testing"

You know..it wouldn't take much work for you to modify the pkgbuild, and rebuild it yourself...if you want to use a beta version.
I certainly wouldn't want the Arch repository version of rsync to be a beta release. I consider it a pretty damn important package.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2007-11-21 19:47:10

SystemParadox
Member
From: Tavistock (Devon) and Bristol
Registered: 2006-06-09
Posts: 35
Website

Re: Rsync problem

AHA! Problem solved. I think you probably did that same thing I did. Changing "#define HAVE_LUTIMES 1" to #define HAVE_LUTIMES 0" doesn't work. You have to change it to "#undef HAVE_LUTIMES".

I prefer to have a patch to do it so that I can still use makepkg. Put the following in a file called rsync-config.h-lutimes.patch in the same dir as the PKGBUILD:
--- config.h.old
+++ config.h
@@ -192 +192 @@
-#define HAVE_LUTIMES 1
+#undef HAVE_LUTIMES

And then add the following line to the pkgbuild between ./configure and make:
patch < ../../rsync-config.h-lutimes.patch

A bit annoying still, but at least there is a fix.

You could probably use sed instead, but I have no idea how to do that so I'll stay away.

Last edited by SystemParadox (2007-11-21 19:48:31)

Offline

#6 2007-11-21 20:38:35

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Rsync problem

SystemParadox wrote:

You could probably use sed instead, but I have no idea how to do that so I'll stay away.

sed -i 's/#define HAVE_LUTIMES 1/#undef HAVE_LUTIMES/g' config.h

Putting that in the same place that you put the 'patch < ....' line should do the same thing, but without needing the patch file.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB