On Dec 11, 2003, at 8:57 AM, Claus Atzenbeck wrote:
On Thu, 11 Dec 2003, Martin Costabel wrote:
Fink::Selfupdate.pm that chowns the downloaded trees after rsync, but it doesn't seem to do the right thing here. It sets the owner of everything below /sw/fink/10.3 to the owner of /sw/fink/10.3, which looks like the right thing to do, but if I read the code correctly, it
Not only /sw/fink/10.3, but also /sw/fink and TIMESTAMP and VERSION in /sw/fink.
will switch everything to 1045 the second time you rsync from the croatian mirror *if* before the first time the owner of /sw/fink/10.3 was root. Very subtle logic, maybe I am wrong.
I was using "rjk.hr.eu.finkmirrors.net". Is this the Croatian mirror?
You can try to chown the /sw/fink/10.3 directory not to root, but to yourself. Then selfupdate-rsync again. If my theory is correct, you should not have these problems again.
Well, I have changed /sw/fink/10.3 to my user (claus). After the first fink selfupdate (using rsync), a slightly changed result came out:
[cumulus:/sw/fink] claus$ ll | grep 1045 drwxr-xr-x 17 1045 1045 578 Dec 11 14:36 ./ drwxr-xr-x 6 claus 1045 204 Dec 11 14:00 10.3/ -rw-r--r-- 1 1045 1045 11 Dec 11 14:00 TIMESTAMP -rw-r--r-- 1 1045 1045 11 Nov 12 20:45 VERSION
BTW, this problem came when I changed MirrorContinent from nam to eur and MirrorCountry from nam-us to eur-dk. I just changed it back to US and this problem is solved. However, I would like to avoid long distances...
Greetings, Claus
I just had exactly the same problem, and for me MirrorContinent=nam and MirrorCountry=nam-us. First time today I ran selfupdate I got:
rsync -az -v rsync://master.us.finkmirrors.net/finkinfo//TIMESTAMP /sw/fink/TIMESTAMP.tmp
receiving file list ... done
/sw/fink/TIMESTAMP.tmp
wrote 101 bytes read 136 bytes 94.80 bytes/sec
total size is 11 speedup is 0.05
Use of uninitialized value in concatenation (.) or string at /sw/lib/perl5/Fink/SelfUpdate.pm line 622.
Use of uninitialized value in concatenation (.) or string at /sw/lib/perl5/Fink/SelfUpdate.pm line 623.
usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhv] [-R [-H | -L | -P]] :group file ...
I will now run the rsync command to retrieve the latest package descriptions.
/usr/bin/su -c "rsync -az --delete-after --delete -v --include='10.3/' --include='10.3/unstable/' --include='10.3/unstable/main/' --include='10.3/unstable/main/finkinfo/' --include='10.3/unstable/main/finkinfo/*/' --include='10.3/unstable/main/finkinfo/*' --include='10.3/unstable/main/finkinfo/**/*' --include='10.3/' --include='10.3/unstable/' --include='10.3/unstable/crypto/' --include='10.3/unstable/crypto/finkinfo/' --include='10.3/unstable/crypto/finkinfo/*/' --include='10.3/unstable/crypto/finkinfo/*' --include='10.3/unstable/crypto/finkinfo/**/*' --include='10.3/' --include='10.3/stable/' --include='10.3/stable/main/' --include='10.3/stable/main/finkinfo/' --include='10.3/stable/main/finkinfo/*/' --include='10.3/stable/main/finkinfo/*' --include='10.3/stable/main/finkinfo/**/*' --include='10.3/' --include='10.3/stable/' --include='10.3/stable/crypto/' --include='10.3/stable/crypto/finkinfo/' --include='10.3/stable/crypto/finkinfo/*/' --include='10.3/stable/crypto/finkinfo/*' --include='10.3/stable/crypto/finkinfo/**/*' --include='VERSION' --exclude='**' 'rsync://master.us.finkmirrors.net/finkinfo' '/sw/fink/'"
mentalis:/sw/fink root#
Sure enough, /sw/fink was messed up:
mentalis:~ daniel$ ls -al /sw/fink total 40 drwxr-xr-x 12 1045 1045 408 11 Dec 18:11 . drwxr-xr-x 11 root admin 374 30 Nov 22:43 .. drwxr-xr-x 4 root admin 136 30 Nov 22:43 10.2-gcc3.3 drwxr-xr-x 5 1045 1045 170 6 Dec 17:01 10.3 -rw-r--r-- 1 root admin 1607 30 Nov 22:43 README -rw-r--r-- 1 root unknown 11 11 Dec 17:46 TIMESTAMP -rw-r--r-- 1 1045 1045 11 12 Nov 14:45 VERSION drwxr-xr-x 85 root admin 2890 9 Dec 20:24 debs lrwxr-xr-x 1 root admin 4 30 Nov 23:01 dists -> 10.3 -rw-r--r-- 1 root admin 1098 30 Nov 22:45 override -rw-r--r-- 1 root admin 0 30 Nov 22:43 stamp-rel-0.6.2 -rw-r--r-- 1 root admin 0 11 Dec 18:11 stamp-rsync-live
Doing sudo chown -R root:admin /sw/fink got selfupdate working again and it's continued to work, but /sw/fink changed again:
mentalis:/sw/fink daniel$ ls -al total 40 drwxr-xr-x 12 root unknown 408 11 Dec 18:23 . drwxr-xr-x 11 root admin 374 30 Nov 22:43 .. drwxr-xr-x 4 root admin 136 30 Nov 22:43 10.2-gcc3.3 drwxr-xr-x 5 root unknown 170 11 Dec 17:46 10.3 -rw-r--r-- 1 root admin 1607 30 Nov 22:43 README -rw-r--r-- 1 root unknown 11 11 Dec 17:46 TIMESTAMP -rw-r--r-- 1 root unknown 11 12 Nov 14:45 VERSION drwxr-xr-x 86 root admin 2924 11 Dec 18:15 debs lrwxr-xr-x 1 root admin 4 30 Nov 23:01 dists -> 10.3 -rw-r--r-- 1 root admin 1098 30 Nov 22:45 override -rw-r--r-- 1 root admin 0 30 Nov 22:43 stamp-rel-0.6.2 -rw-r--r-- 1 root admin 0 11 Dec 18:23 stamp-rsync-live
notice the "unknown" groups. After several selfupdates, the "1045"s haven't reappeared.
In any case, this isn't a non-US only problem.
-- Daniel Johnson [EMAIL PROTECTED] PGP public key: http://homepage.mac.com/danielj7/publickey.txt
smime.p7s
Description: S/MIME cryptographic signature
PGP.sig
Description: This is a digitally signed message part