Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 218577

Summary: have rsync use utimes() as a fallback
Product: Gentoo Linux Reporter: Stefan Trenker <strenker>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement CC: devnull, G.Jaekel
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://thread.gmane.org/gmane.network.rsync.general/17948
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Trenker 2008-04-20 13:33:41 UTC
I am running a Xen server with 2.6.21-xen-dom0 kernel on an amd64 based dual core system.

loisl ~ # uname -a
Linux loisl 2.6.21-xen-dom0 #1 SMP Sat Feb 23 15:08:29 CET 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux

Before a while the update to linux-headers-2.6.23-r3 took place, but I did not update glibc.

Yesterday I switched to Gentoo profile 2008.0 and the update afterwards forced to re-emerge gcc and glibc.

Now I have a serious issue with rsync; It complains for an unsupported function call. I had this before and could solve it with a glibc compiled against linux-headers of the same kernel version. But these days there are no 2.6.21 linux-headers available in portage.

The rsync error still happens even after a re-emerge of rsync. It is really annoying, since I use dirvish as backup tool which is a suite of perl scripts which relay on rsync as the backup tool.

loisl ~ # rsync -vrlptzW --safe-links --force --stats rsync://gucky/gentoo-packages-x86_32 /var/data/packages-x86_32
Hai bei Stefan's x86_32 Rsync Mirror auf Gucky

receiving file list ... done
rsync: failed to set times on "/var/data/packages-x86_32/app-accessibility/festival-1.96_beta.tbz2": Function not implemented (38)
rsync: failed to set times on "/var/data/packages-x86_32/app-accessibility/speech-tools-1.2.96_beta.tbz2": Function not implemented (38)
rsync: failed to set times on "/var/data/packages-x86_32/app-admin/apache-tools-2.2.8.tbz2": Function not implemented (38) 



Reproducible: Always

Steps to Reproduce:




loisl ~ # equery list|grep -e linux-headers -e gcc -e glibc -e rsync
net-misc/rsync-2.6.9-r6
sys-devel/gcc-4.1.2
sys-kernel/linux-headers-2.6.23-r3
sys-libs/glibc-2.6.1 


loisl ~ # emerge -pv linux-headers glibc gcc rsync

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-kernel/linux-headers-2.6.23-r3  0 kB
[ebuild   R   ] net-misc/rsync-2.6.9-r6  USE="acl ipv6 -static -xinetd" 0 kB
[ebuild   R   ] sys-devel/gcc-4.1.2  USE="fortran gtk mudflap (multilib) nls (-altivec) -bootstrap -build -d -doc -gcj (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
[ebuild   R   ] sys-libs/glibc-2.6.1  USE="gd (multilib) nls -debug -glibc-omitfp (-hardened) -profile (-selinux) -vanilla" 0 kB

Total: 4 packages (4 reinstalls), Size of downloads: 0 kB


loisl ~ # emerge --info
Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.21-xen-dom0 x86_64)
=================================================================
System uname: 2.6.21-xen-dom0 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Sat, 12 Apr 2008 10:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=k8 -O2 -pipe"
DISTDIR="/var/data/distfiles"
FEATURES="buildpkg ccache cvs distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirror.switch.ch/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="C"
LINGUAS="de us"
MAKEOPTS="-j3"
PKGDIR="/var/data/packages-amd64"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi aiglx alsa amd64 apache2 arts asf audiofile automount bash-completion berkdb bidi bluetooth bzip2 cairo cddb cdio cdr cgi cli cracklib crypt ctype cups dbus dri dv dvb dvd dvdr dvdread emerald encode esd fame fbcondecor ffmpeg firefox flac foomatic foomaticdb fortran gd gdbm gif gimp gimpprint glitz gnome gnutls gphoto2 gpm gstreamer gtk hal httpd iconv id3tag idn imagemagick imap imlib ipod ipv6 isdnlog java jpeg kde ldap libgcrypt live logrotate lzo mad matroska midi mjpeg mmap mmx mng modplug mozilla mp3 mp4 mpeg mplayer mplayer-bin mudflap multilib mysql ncurses network nls nptl nptlonly nsplugin oav ogg opengl openmp oss pam pcap pcre pda pdf perl php png ppds pppd python qt4 quicktime rar rdesktop readline reflection rtsp ruby samba sasl scanner sdl session shout slp sndfile snmp sockets spell spl sse sse2 ssl stream subtitles svg syslog tcltk tcpd tetex theora threads tiff tk truetype unicode usb utempter v4l v4l2 vcd vcdx vlm vorbis webdav wifi wma wxwindows x264 xine xinerama xml xorg xscreensaver xv xvid xvmc zeroconf zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de us" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2008-04-21 00:45:19 UTC
so run:
ac_cv_func_utimes=no emerge rsync
Comment 2 Stefan Trenker 2008-04-21 04:10:57 UTC
(In reply to comment #1)
> so run:
> ac_cv_func_utimes=no emerge rsync
> 

I have just tested it; it works.

Thanks.

But what is the root cause for the trouble? 
- Xen?
- Linux headers?
- Missing check in rsync's configure?

Was I on the right track with linux headers? 
Comment 3 SpanKY gentoo-dev 2008-04-21 05:10:06 UTC
it's a combo of things, but really rsync should just be smarter
Comment 4 Stefan Trenker 2008-04-21 06:03:27 UTC
(In reply to comment #3)

Many thanks for Your efforts.

I can live with the "workaround" until the rsync people follow Your suggestions.

/Stefan
Comment 5 Guido Jäkel 2008-05-28 10:55:14 UTC
(In reply to comment #1)
> so run:
> ac_cv_func_utimes=no emerge rsync
> 

Dear SpanKY,
Thank you a lot!

That solves the same issue after upgrading my "vanilla" server, too. From that, it's not related to something like Xen.
Comment 6 SpanKY gentoo-dev 2008-05-31 17:06:51 UTC
upstream has posted this patch:
https://bugzilla.samba.org/attachment.cgi?id=3324

can someone test this please
Comment 7 Stefan Trenker 2008-06-01 17:09:14 UTC
(In reply to comment #6)
> upstream has posted this patch:
> https://bugzilla.samba.org/attachment.cgi?id=3324
> 
> can someone test this please
> 

I have tested the patch with my portage overlay for unstable net-misc/rsync-3.0.2 and it worked for me.

For stable net-misc/rsync-2.6.9-r6 the patch did not work (second file util.c is missing).
Comment 8 SpanKY gentoo-dev 2009-01-08 05:59:39 UTC
this is in latest version now