failure of "port selfupdate"
William H. Magill
magill at me.com
Mon Dec 20 10:28:58 PST 2010
On Dec 19, 2010, at 11:42 PM, Ryan Schmidt wrote:
> On Dec 19, 2010, at 20:01, William H. Magill wrote:
>
>> I just decided I should probably check on the status of my macports install and got the following...
>>
>> ==================<cut here>============
>> sudo port selfupdate
>> ---> Updating the ports tree
>> ---> Updating MacPorts base sources using rsync
>> MacPorts base version 1.8.2 installed,
>> MacPorts base version 1.9.2 downloaded.
>> ---> MacPorts base is outdated, installing new version 1.9.2
>> Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl
>>
>> Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 1
>> ==================<cut here>============
>>
>> Something I did, or is something broken?
>
> Unfortunately the output MacPorts printed above has no information about what went wrong.... and I don't know if it writes a logfile anywhere. If we can't resolve it with the steps below, you may have to redo the selfupdate with the debug switch to get more information (i.e. "sudo port -d selfupdate").
>
>
>> Don't see anything obviously wrong.
>> When I check /opt/local from my id (not su), I noticed that "/opt/local/man" is a link which for some reason is giving me a "Permission denied.
>>
>> ls: ./man: Permission denied
>> 4 lrwx------ 1 root admin 9 Feb 12 2010 ./man
>
> That seems to show that ./man is an actual directory, not a symlink as it should be, and that it has permissions 700 instead of 755. Fix the permissions of this directory with:
>
> sudo chmod 755 ./man
>
> If the files and directories inside it also have incorrect permissions, more involved permissions fixing may be necessary.
I've seen this "problem" before, and I've never gotten a satisfactory explanation for it.
/opt/local/man IS a symbolic link, not a directory, yet the link has different permissions than the underlying directory.
(note, no acl involved.)
As root:
sudo ls -alse /opt/local
total 4
0 drwxr-xr-x 13 root admin 442 Feb 12 2010 .
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 ..
0 drwxr-xr-x 27 root admin 918 Feb 12 2010 bin
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 etc
0 drwxr-xr-x 5 root admin 170 Sep 19 2009 include
0 drwxr-xr-x 35 root admin 1190 Feb 12 2010 lib
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 libexec
4 lrwx------ 1 root admin 9 Feb 12 2010 man -> share/man
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 sbin
0 drwxr-xr-x 9 root admin 306 Feb 12 2010 share
0 drwxr-xr-x 2 root admin 68 Feb 12 2010 src
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 var
0 drwxr-xr-x 2 root admin 68 Feb 12 2010 www
sudo ls -als /opt/local/share
total 0
0 drwxr-xr-x 9 root admin 306 Feb 12 2010 .
0 drwxr-xr-x 13 root admin 442 Feb 12 2010 ..
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 info
0 drwxr-xr-x 5 root admin 170 Feb 12 2010 macports
0 drwxr-xr-x 24 root admin 816 Aug 27 2009 man
0 drwxr-xr-x 85 root admin 2890 Aug 27 2009 nls
0 drwxr-xr-x 2 root admin 68 Feb 12 2010 skel
0 drwxr-xr-x 6 root admin 204 Sep 19 2009 tabset
0 drwxr-xr-x 44 root admin 1496 Sep 19 2009 terminfo
as myself:
ls -als /opt/local
total 4
0 drwxr-xr-x 13 root admin 442 Feb 12 2010 .
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 ..
0 drwxr-xr-x 27 root admin 918 Feb 12 2010 bin
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 etc
0 drwxr-xr-x 5 root admin 170 Sep 19 2009 include
0 drwxr-xr-x 35 root admin 1190 Feb 12 2010 lib
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 libexec
ls: /opt/local/man: Permission denied
4 lrwx------ 1 root admin 9 Feb 12 2010 man
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 sbin
0 drwxr-xr-x 9 root admin 306 Feb 12 2010 share
0 drwxr-xr-x 2 root admin 68 Feb 12 2010 src
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 var
0 drwxr-xr-x 2 root admin 68 Feb 12 2010 www
ls -als /opt/local/share
total 0
0 drwxr-xr-x 9 root admin 306 Feb 12 2010 .
0 drwxr-xr-x 13 root admin 442 Feb 12 2010 ..
0 drwxr-xr-x 3 root admin 102 Aug 27 2009 info
0 drwxr-xr-x 5 root admin 170 Feb 12 2010 macports
0 drwxr-xr-x 24 root admin 816 Aug 27 2009 man
0 drwxr-xr-x 85 root admin 2890 Aug 27 2009 nls
0 drwxr-xr-x 2 root admin 68 Feb 12 2010 skel
0 drwxr-xr-x 6 root admin 204 Sep 19 2009 tabset
0 drwxr-xr-x 44 root admin 1496 Sep 19 2009 terminfo
> What's in this directory, and was it provided by a MacPorts port? This should let you find out:
>
> find ./man -type f -print0 | xargs -0 port provides
This command (executed from /opt/local) returns nothing.
I would assume that the link was created by either macports or possibly darwinports, ages ago.
> Ports should install manpages in /opt/local/share/man, not /opt/local/man; if you have any port that has a location in /opt/local/min registered to it, we need to fix that port, so please tell us what port it is.
Man pages are apparently all installed in /opt/local/share/man (or at least that is were the files wind up by virtue of that link.
>> even though /opt/local/share/man is fine... (but man3 is also full of bad links... argh!)
> Oh? I don't think there should be any bad symlinks; can you tell us about them?
There seems to be a mix of them... "most" are fine, but many are of the same nature as the /opt/local/man link.
Again, from my account... just the top of the list.
ls -alse /opt/local/man/man3
total 2784
0 drwxr-xr-x 691 root admin 23494 Sep 19 2009 .
0 drwxr-xr-x 24 root admin 816 Aug 27 2009 ..
0 -rw-r--r-- 1 root admin 0 Aug 27 2009 .turd_MacPorts
ls: /opt/local/man/man3/COLOR_PAIR.3x.gz: Permission denied
4 lrwx------ 1 root admin 16 Sep 19 2009 COLOR_PAIR.3x.gz
ls: /opt/local/man/man3/PAIR_NUMBER.3x.gz: Permission denied
4 lrwx------ 1 root admin 15 Sep 19 2009 PAIR_NUMBER.3x.gz
ls: /opt/local/man/man3/_nc_free_and_exit.3x.gz: Permission denied
4 lrwx------ 1 root admin 19 Sep 19 2009 _nc_free_and_exit.3x.gz
...
just picking the first two...
4 -rw-r--r-- 1 root admin 3810 Sep 19 2009 curs_attr.3x.gz
4 -rw-r--r-- 1 root admin 1478 Sep 19 2009 curs_beep.3x.gz
4 -rw-r--r-- 1 root admin 1852 Sep 19 2009 curs_bkgd.3x.gz
4 -rw-r--r-- 1 root admin 1838 Sep 19 2009 curs_bkgrnd.3x.gz
4 -rw-r--r-- 1 root admin 2088 Sep 19 2009 curs_border.3x.gz
4 -rw-r--r-- 1 root admin 1980 Sep 19 2009 curs_border_set.3x.gz
4 -rw-r--r-- 1 root admin 2114 Sep 19 2009 curs_clear.3x.gz
4 -rw-r--r-- 1 root admin 4033 Sep 19 2009 curs_color.3x.gz
but from root
sudo ls -alse /opt/local/man/man3
total 2784
0 drwxr-xr-x 691 root admin 23494 Sep 19 2009 .
0 drwxr-xr-x 24 root admin 816 Aug 27 2009 ..
0 -rw-r--r-- 1 root admin 0 Aug 27 2009 .turd_MacPorts
4 lrwx------ 1 root admin 16 Sep 19 2009 COLOR_PAIR.3x.gz -> curs_color.3x.gz
4 lrwx------ 1 root admin 15 Sep 19 2009 PAIR_NUMBER.3x.gz -> curs_attr.3x.gz
4 lrwx------ 1 root admin 19 Sep 19 2009 _nc_free_and_exit.3x.gz -> curs_memleaks.3x.gz
4 lrwx------ 1 root admin 19 Sep 19 2009 _nc_freeall.3x.gz -> curs_memleaks.3x.gz
....
4 -rw-r--r-- 1 root admin 3810 Sep 19 2009 curs_attr.3x.gz
4 -rw-r--r-- 1 root admin 1478 Sep 19 2009 curs_beep.3x.gz
4 -rw-r--r-- 1 root admin 1852 Sep 19 2009 curs_bkgd.3x.gz
4 -rw-r--r-- 1 root admin 1838 Sep 19 2009 curs_bkgrnd.3x.gz
4 -rw-r--r-- 1 root admin 2088 Sep 19 2009 curs_border.3x.gz
4 -rw-r--r-- 1 root admin 1980 Sep 19 2009 curs_border_set.3x.gz
4 -rw-r--r-- 1 root admin 2114 Sep 19 2009 curs_clear.3x.gz
4 -rw-r--r-- 1 root admin 4033 Sep 19 2009 curs_color.3x.gz
> The only "odd" thing which I did notice is:
>>
>> ls -als /library/Tcl
>> total 0
>> 0 drwxr-xr-x 4 root admin 136 Nov 13 15:15 .
>> 0 drwxrwxr-t+ 62 root admin 2108 Nov 13 15:15 ..
>> 0 drwxrwxr-x 9 root admin 306 Mar 23 2007 darwinports1.0
>> 0 drwxr-xr-x 10 root admin 340 Feb 12 2010 macports1.0
>>
>>
>> .... Thought I had purged all the darwin ports stuff ages ago... :)
>
> You should be safely able to delete the darwinports1.0 directory.
all gone.
===========================<cut here>===========================
sudo port -d selfupdate
---> Updating the ports tree
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports
receiving file list ... done
PortIndex
PortIndex.quick
PortIndex_darwin_10_i386/
PortIndex_darwin_10_i386/PortIndex
PortIndex_darwin_10_i386/PortIndex.quick
PortIndex_darwin_8_i386/
PortIndex_darwin_8_i386/PortIndex
PortIndex_darwin_8_i386/PortIndex.quick
PortIndex_darwin_8_powerpc/
PortIndex_darwin_8_powerpc/PortIndex
PortIndex_darwin_8_powerpc/PortIndex.quick
PortIndex_darwin_9_i386/
PortIndex_darwin_9_i386/PortIndex
PortIndex_darwin_9_i386/PortIndex.quick
PortIndex_darwin_9_powerpc/
PortIndex_darwin_9_powerpc/PortIndex
PortIndex_darwin_9_powerpc/PortIndex.quick
audio/faac/
audio/faac/Portfile
audio/flac/
audio/flac/Portfile
audio/soundtouch/
audio/soundtouch/Portfile
benchmarks/iozone/
benchmarks/iozone/Portfile
devel/
devel/buildbot-slave/
devel/buildbot-slave/Portfile
devel/buildbot/
devel/buildbot/Portfile
devel/dbus-python24/
devel/dbus-python24/Portfile
devel/dbus-python25/
devel/dbus-python25/Portfile
devel/dbus-python26/
devel/dbus-python26/Portfile
devel/dbus-python27/
devel/dbus-python27/Portfile
devel/grantlee/
devel/grantlee/Portfile
devel/hs-HTTP/Portfile
devel/xulrunner/
devel/xulrunner/Portfile
graphics/exiv2/
graphics/exiv2/Portfile
multimedia/gtkpod/
multimedia/gtkpod/Portfile
multimedia/libogg/
multimedia/libogg/Portfile
multimedia/vcdimager/
multimedia/vcdimager/Portfile
net/pidgin-encryption/
net/pidgin-encryption/Portfile
perl/p5-tk/
perl/p5-tk/Portfile
python/py25-tables/
python/py25-tables/Portfile
python/py26-tables/
python/py26-tables/Portfile
python/py27-virtualenv/
python/py27-virtualenv/Portfile
www/firefox-x11/
www/firefox-x11/Portfile
deleting multimedia/libogg/files/patch-include-ogg-os_types.h.diff
deleting multimedia/libogg/files/
sent 83510 bytes received 899931 bytes 151298.62 bytes/sec
total size is 54222301 speedup is 55.14
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/base
---> Updating MacPorts base sources using rsync
receiving file list ... done
./
tests/test/checksums-1/
deleting config.log
sent 48 bytes received 6870 bytes 2767.20 bytes/sec
total size is 2889184 speedup is 417.63
MacPorts base version 1.8.2 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 1.9.2 downloaded.
---> MacPorts base is outdated, installing new version 1.9.2
DEBUG: Permissions OK
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl
checking build system type... i386-apple-darwin10.5.0
checking host system type... i386-apple-darwin10.5.0
checking target system type... i386-apple-darwin10.5.0
checking MacPorts version... 1.9.2
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... no
checking Mac OS X version... 10.6.5
checking Xcode version... 3.2.5
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
DEBUG: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 1
while executing
"macports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 1
======================<cut here>===========
T.T.F.N.
William H. Magill
# Flat-panel iMac (2.1) [800MHz - Super Drive - 768 Meg] OS X 10.4.11
# iMac6,1 Core 2 Duo [2.16GHz - 3 GB 667] OS X 10.6.5
# MacBook Pro4.1 Core 2 Duo [2.5GHz - 4GB 667] OS X 10.6.5
# Mac mini Core Duo [1.66 Ghz - 2 GB 667]OS X 10.6.5
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg] Tru64 5.1a
# XP1000 [Alpha 21264-3 (EV6) - 256 meg] FreeBSD 5.3
# XP1000 [Alpha 21264-A (EV6-7) - 256 meg] FreeBSD 5.3
magill at mcgillsociety.org
magill at mac.com
whmagill at gmail.com
More information about the macports-users
mailing list