Opened 17 years ago

Closed 17 years ago

#12125 closed defect (invalid)

BUG: MacPorts 1.4.0 installs invalid ports.conf::rsync_dir value.

Reported by: brendanjerwin@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.4.40
Keywords: Cc:
Port:

Description

The .pkg available here:

http://trac.macosforge.org/projects/macports/browser/downloads/MacPorts-1.4.0/MacPorts-1.4.0-10.4.dmg

installs a ports.conf with a rsync_dir value of:

dpupdate1/base/

which causes an error:

Miracle-Max:~ berwin$ sudo port -d selfupdate
DEBUG: Rebuilding the MacPorts base system if needed.
Synchronizing from rsync://rsync.darwinports.org/dpupdate/dports
rsync: failed to connect to rsync.darwinports.org: Operation timed out (60)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-24.1/rsync/clientserver.c(94)
DEBUG: Couldn't sync dports tree: sync failed doing rsync
    while executing
"darwinports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: selfupdate failed: Couldn't sync dports tree: sync failed doing rsync

This seems to fix it:

curious_jp: I changed the rsync_dir in the config file
curious_jp: to point to dpupdate/base instead of dupupdate1/base
curious_jp: in /opt/local/etc/[ports or macports]/ports.conf
wich: any idea what the difference would be?
curious_jp: well, there doesn't seem to be a dpupdate1 directory on the rsync server
curious_jp: however I manually tested rsyncing against dpupdate/base and it exists
...
curious_jp: I would presume it's a typo
wich: I'm not sure, might be a different version
curious_jp: well, the directory isn't there on the rsync server, so if it did exist, I guess it got deleted
berwin_: probably needed to test something on a devs box and got committed on accident...
curious_jp: and other people's config files were already updated by selfupdate
curious_jp: so they never hit the problem

Change History (4)

comment:1 Changed 17 years ago by brendanjerwin@…

oops, wrong error text. Someone who can, please update the ticket for me:

Please replace the error text above with this:

 sudo port -d selfupdate
DEBUG: Rebuilding the MacPorts base system if needed.
DEBUG: Synchronizing dports tree(s)
Synchronizing from rsync://rsync.darwinports.org/dpupdate/dports
receiving file list ... done
databases/mysql/
sysutils/DarwinPortsStartup/

sent 77 bytes  received 242812 bytes  97155.60 bytes/sec
total size is 14733356  speedup is 60.66
DEBUG: MacPorts base dir: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1/base
DEBUG: Setting user: root
DarwinPorts base version 1.442 installed
DEBUG: Updating using rsync
receiving file list ... rsync: link_stat "base/." (in dpupdate1) failed: No such file or directory (2)
done
client: nothing to do: perhaps you need to specify some filenames or the --recursive option?
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-24.1/rsync/main.c(738)
DEBUG: Error: rsync failed in selfupdate
    while executing
"darwinports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: selfupdate failed: Error: rsync failed in selfupdate


comment:2 Changed 17 years ago by brendanjerwin@…

A better solution:

sfiera
:
If all you want is updated ports, you can `port sync` instead of selfupdating, and that should still work
[
2:22pm
]
sfiera
:
Though if you've just installed from the dmg, you'll need some way to selfupdate because not all ports still work with version 1.4 and need 1.442
[
2:23pm
]
mgr_
:
I did install from the dmg...
[
2:23pm
]
sfiera
:
Hrm
[
2:24pm
]
mgr_
:
aha!
[
2:24pm
]
mgr_
:
After doing a sync, the selfupdate was successful
[
2:24pm
]
mgr_
:
it updated to 1.442
[
2:24pm
]
sfiera
:
Oh, well, I wasn't expecting that 
[
2:24pm
]
sfiera
:
But good to know it works
[
2:25pm
]
mgr_
:
fenestro: try a port sync before your port selfupdate

comment:3 Changed 17 years ago by nox@…

Milestone: MacPorts base bugs
Priority: ExpectedNormal
Summary: MacPorts 1.4.0 installs invalid ports.conf::rsync_dir value.BUG: MacPorts 1.4.0 installs invalid ports.conf::rsync_dir value.

comment:4 Changed 17 years ago by jmpp@…

Component: portsbase
Milestone: MacPorts base bugs
Resolution: invalid
Status: newclosed

dpupdte1 is not a typo and it does exist in the rsync server:

$[juan @macbookpro: base](781/20,1) -> rsync rsync.darwinports.org::
release         MacPorts rsync release repository, providing the current MacPorts "released" sources and the ports tree.
trunk           MacPorts rsync "trunk" repository, providing experimental MacPorts sources in svn's trunk/base.
dpupdate        Legacy MacPorts rsync repository for backwards compatibility with 1.4.x releases, providing svn's trunk/base and the ports tree.
dpupdate1       Legacy MacPorts rsync repository for backwards compatibility with 1.4.x releases, providing the current MacPorts "released" sources.

-jmpp

Note: See TracTickets for help on using tickets.