Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Old 10-06-2003, 06:21 AM   #1
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
New fink command: 'fink selfupdate-rsync'

The Fink developers are adding a new command to fink:

"fink selfupdate-rsync"

which will provide a rsync option for users and will become the recommended update method for 'all users', very shortly.

All those users (like myself) that experienced problems over the past few months with CVS at sourceforge, will surely welcome and understand this change.

According to David R. Morrison, the new fink command will be in an "unstable" release of the 'fink package manager' within the next day or two.
sao is offline   Reply With Quote
Old 10-07-2003, 03:30 PM   #2
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
The newest fink package manager v0.14.0 with the 'new update method using rsync' is now in unstable:

David R. Morrison wrote at the fink-users list:
Quote:
"The newest fink package manager release, version 0.14.0 now in the unstable
tree, offers a new update method for fink users using rsync rather than cvs.
The rsync server is being hosted at opendarwin.org, and we hope that the
performance of this update method will be substantially better than the
old method.

For those using the unstable tree, you'll have to somehow run "fink
selfupdate-cvs" one last time to get fink-0.14.0-1, but after it is
installed, running "fink selfupdate-rsync" will change you to the new
setup. Once you've made the change, you can simply invoke "fink selfupdate"
to do further updates.

It is not advised to switch frequently between update methods; you should
pick one method and stick to it. Eventually, we will have some alternative
backup servers for the rsync updates in addition to the server at
opendarwin.org.

If you are using the stable tree only, and don't wish to wait for this
update, you can run "fink selfupdate-cvs" and then copy the file
fink-0.14.0-1.info from /sw/fink/dists/unstable/main/finkinfo/base to
/sw/fink/dists/local/main/finkinfo and run "fink update fink".

Also, anyone who updates to this new version of fink can safely install
the recent updates to the Developer Tools. Fink will ask you to run
"sudo gcc_select 3" when it is necessary to switch back to gcc 3".

So if you are running unstable, first run once more:

'fink selfupdate-cvs'

to get:
Code:
[pm @ Sao: ~] % fink -V
Package manager version: 0.14.0
Distribution version: 0.5.3.cvs
Then, if you want to switch to update with rsync, run:
Code:
[pm @ Sao: ~] % fink selfupdate-rsync
sudo /sw/bin/fink  selfupdate-rsync
Password:

 Please note: the command 'fink selfupdate' should be used for routine
updating; you only need to use 'fink selfupdate-cvs' or 'fink
selfupdate-rsync' if you are changing your update method. 

fink is setting your default update method to rsync 
I will now run the rsync command to retrieve the latest package descriptions.

Updating unstable/main 
su pm -c 'rsync -az --delete-after -v rsync://fink.opendarwin.org/finkinfo//10.2/unstable/main/finkinfo 
10.2/unstable/main/'
receiving file list ... done
finkinfo/
finkinfo/base/
finkinfo/database/
............
etc etc etc etc
...........
total size is 11  speedup is 0.70
touch stamp-rsync-live && rm -f stamp-cvs-live
Reading package info...
Updating package index... done.
Information about 2990 packages read in 17 seconds.

No packages to install.

The core packages have been updated. You should now update the other packages
using commands like 'fink update-all'.

[pm @ Sao: ~] %
Next time I will update, I only need to use the command:

'fink selfupdate'
sao is offline   Reply With Quote
Old 10-07-2003, 03:42 PM   #3
Craig R. Arko
Site Admin
 
Join Date: Dec 2001
Location: Minneapolis, MN
Posts: 3,988
Thumbs up

Using this right now; and it's working fine.

Edit - it looks like FinkCommander will need a minor rev. to fully comprehend this.
Craig R. Arko is offline   Reply With Quote
Old 10-07-2003, 03:47 PM   #4
Craig R. Arko
Site Admin
 
Join Date: Dec 2001
Location: Minneapolis, MN
Posts: 3,988
I'm going to 'sticky' this thread for a few days or so.
Craig R. Arko is offline   Reply With Quote
Old 10-07-2003, 04:00 PM   #5
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Quote:
Craig wrote:
it looks like FinkCommander will need a minor rev. to fully comprehend this.

Yes, you are right. The Fink developers already contacted the FinkCommander team to see if they could implement a new command to handle this change and release a new FinkCommander version. It will probably be done very soon.
sao is offline   Reply With Quote
Old 10-07-2003, 04:20 PM   #6
Craig R. Arko
Site Admin
 
Join Date: Dec 2001
Location: Minneapolis, MN
Posts: 3,988
Sao: I have the source for fink 0.14.0 on one machine; is there a way to use this to update another (from 0.13.8) without going through the troublesome cvs route?

Edit - after installing the fink cvs package to override the borked Apple 10.2.8 version, I was able to selfupdate the other machine OK.
Craig R. Arko is offline   Reply With Quote
Old 10-08-2003, 12:20 AM   #7
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Quote:
Craig wrote:
I have the source for fink 0.14.0 on one machine; is there a way to use this to update another (from 0.13.8) without going through the troublesome cvs route?

Yes, you can either copy the .info, .patch, and source files over from one machine to the other, and put them in the appropriate places (your local tree for the .info and .patch files, and /sw/src for the source file); or you can copy the .deb file over and install it with

sudo dpkg –install <filename>

e.g.

“sudo dpkg –install ~/fink-0.14.0-1.deb”

if you put the .deb file in your home directory.

Quote:
Craig wrote:
Edit: after installing the fink cvs package to override the borked Apple 10.2.8 version, I was able to selfupdate the other machine OK.

Great...! the fink 'cvs' package worked better for me too, there must be a problem with the 'cvs' supplied by Apple. Anyhow, you can use the info I wrote above another time.
sao is offline   Reply With Quote
Old 10-08-2003, 12:30 AM   #8
gedalin
Prospect
 
Join Date: Jan 2002
Posts: 36
I installed fink 0.14.0. Fink selfupdate-cvs works as usual but for rsync I get

[space:~] gedalin% fink selfupdate-rsync
sudo /sw/bin/fink selfupdate-rsync
Password:

Please note: the command 'fink selfupdate' should be used for routine
updating; you only need to use 'fink selfupdate-cvs' or 'fink
selfupdate-rsync' if you are changing your update method.

I will now run the rsync command to retrieve the latest package descriptions.

Updating stable/main
su gedalin -c 'rsync -az --delete-after -v rsync://fink.opendarwin.org/finkinfo//10.2/stable/main/finkinfo 10.2/stable/main/'
rsync: failed to connect to fink.opendarwin.org: Connection refused
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-8/rsync/clientserver.c(85)
### execution of su failed, exit code 10
Failed: Updating stable/main using rsync failed. Check the error messages above.

What's wrong ?
Michael
gedalin is offline   Reply With Quote
Old 10-08-2003, 01:17 AM   #9
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
gedalin,

Please, the result from:

fink -V

Which procedure you followed to upgrade to Fink 0.14.0 or did you have unstable enabled before the upgrade?
sao is offline   Reply With Quote
Old 10-08-2003, 01:27 AM   #10
gedalin
Prospect
 
Join Date: Jan 2002
Posts: 36
[space:~] gedalin% fink -V
Package manager version: 0.14.0
Distribution version: 0.5.3.cvs

Copyright (c) 2001 Christoph Pfisterer
Copyright (c) 2001-2003 The Fink Package Manager Team
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

I enabled "unstable" in Fink Commander before installing new fink. It is enabled in fink.conf.
gedalin is offline   Reply With Quote
Old 10-08-2003, 01:56 AM   #11
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
gedalin,

If before you were using only stable, you should have followed the indications above:

Quote:
"If you are using the stable tree only, and don't wish to wait for this update, you can run "fink selfupdate-cvs"
and then copy the file fink-0.14.0-1.info from /sw/fink/dists/unstable/main/finkinfo/base to /sw/fink/dists/local/main/finkinfo and run "fink update fink"

.

It seems the command in your case, even you enabled unstable, starts with "Updating stable/main".

You could run 'fink index' and then try the new command again.
sao is offline   Reply With Quote
Old 10-08-2003, 02:20 AM   #12
gedalin
Prospect
 
Join Date: Jan 2002
Posts: 36
Sao, the instructions say that I should do that if I AM using stable only, but I DID enable unstable. Anyway, the instructions failed:

[space:/sw/etc] gedalin% fink update fink
sudo /sw/bin/fink update fink
Reading package info...
Can't locate auto/Storable/autosplit.ix in @INC (@INC contains: /sw/lib/perl5 /System/Library/Perl/darwin-thread-multi /System/Library/Perl /Library/Perl/darwin-thread-multi /Library/Perl /Network/Library/Perl/darwin-thread-multi /Network/Library/Perl .) at /System/Library/Perl/AutoLoader.pm line 158.
at /System/Library/Perl/darwin-thread-multi/Storable.pm line 21
Information about 2989 packages read in 23 seconds.

No packages to install.

[space:/sw/etc] gedalin% fink selfupdate-rsync
sudo /sw/bin/fink selfupdate-rsync

Please note: the command 'fink selfupdate' should be used for routine
updating; you only need to use 'fink selfupdate-cvs' or 'fink
selfupdate-rsync' if you are changing your update method.

I will now run the rsync command to retrieve the latest package descriptions.

Updating stable/main
su gedalin -c 'rsync -az --delete-after -v rsync://fink.opendarwin.org/finkinfo//10.2/stable/main/finkinfo 10.2/stable/main/'
rsync: failed to connect to fink.opendarwin.org: Connection refused
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-8/rsync/clientserver.c(85)
### execution of su failed, exit code 10
Failed: Updating stable/main using rsync failed. Check the error messages above.

Isn't the order of checking the same as the order in fink.conf ? I have stable/main before unstable/main. In any case, it seems to me that I have no access to
rsync://fink.opendarwin.org. I am behind a corporate firewall and in the past I had to ask our sysadmin to open a port to be able to use cvs. Is it possible that rsync requires opening additional port ?
Anyway, thanks for the help.
gedalin is offline   Reply With Quote
Old 10-08-2003, 03:04 AM   #13
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
gedalin,

I suggest you post your problem at the fink-users list together with your system info and let us know what they say.
sao is offline   Reply With Quote
Old 10-13-2003, 02:20 AM   #14
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Several problems with the rsync update method were fixed in the new fink release 0.14.2
sao is offline   Reply With Quote
Old 10-13-2003, 10:04 AM   #15
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Code:
[pm @ Sao: ~] % man fink.conf 
...........
...........
SelfUpdateMethod: point, rsync or cvs
           fink(8) can use some different methods to update the package info
           files.  rsync is the recommended setting, it uses rsync(1) to down-
           load only modified files in the trees that you have enabled. Note
           that if you have changed or added to files in the stable or unsta-
           ble trees, using rsync will delete them. Make a backup first.  cvs
           will download using anonymous or :ext: cvs(1) access from the fink
           repository. This has the disadvantage that cvs can not switch mir-
           rors, if the server is unavailable you will not be able to update.
           point will download only the latest released version of the pack-
           ages. It is not recommended as your packages may be quite out of
           date.
...........
...........
sao is offline   Reply With Quote
Old 10-23-2003, 11:26 PM   #16
bluehz
MVP
 
Join Date: Jan 2002
Posts: 1,562
I am not having any luck with this either:

Followed direction at fink;

Installed to August 2003 Developer Update
Installed fink-0.15-beta (downloaded, untarred, ./inject)

then ran fink selfupdate-rsync

and it just sits there...

Made sure the proper port (873) was open. tried several more times. Still no luck. Although after ctrl-c it a couple of times, it started updating something. compiled for about an hour or so and then it was done. Tried rsync again.. still no luck.

fink -V
Package manager version: 0.15.1
Distribution version: 0.5.3.cvs

why does it still say "cvs"

---

EDIT

After reading this thread - I am now running selfupdate-cvs and something is happening. But this does not solve the rsync problem...

Last edited by bluehz; 10-23-2003 at 11:29 PM.
bluehz is offline   Reply With Quote
Old 10-24-2003, 12:54 AM   #17
gedalin
Prospect
 
Join Date: Jan 2002
Posts: 36
Sao, I promised to report on my further success/failure with fink selfupdate-rsync. After my sysadmin opened port 873 everything works ok.
Regards.
gedalin is offline   Reply With Quote
Old 10-25-2003, 08:15 AM   #18
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
"Failed: Problem resolving dependencies. Check for circular dependencies." [sigh]
yellow is offline   Reply With Quote
Old 10-25-2003, 09:39 AM   #19
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
yellow,

Please, more of the routine info:

were you running 'update-all' when you got that message?

fink -V
sw_vers
gcc --version
sao is offline   Reply With Quote
Old 10-25-2003, 09:45 AM   #20
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
I was toward the end of the 'fink selfupdate-rsync', but I believe that yes it was trying to do an update all.

yellow% fink -V
Package manager version: 0.16.0
Distribution version: 0.6.0.cvs

yellow% sw_vers
ProductName: Mac OS X
ProductVersion: 10.3
BuildVersion: 7B85

yellow% gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)

I was trying to update fink according to your The State of Fink post. I didn't get too far. I couldn't find anything thing resembling this in the fink forums/faqs/docs.

Did I screw up the installation of 0.15.1 beta?

Last edited by yellow; 10-25-2003 at 10:11 AM.
yellow is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:14 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.