Opened 14 years ago

Closed 13 years ago

#27799 closed defect (fixed)

upgrade_sources_conf_default.tcl failed during selfupdate due to svn warnings

Reported by: vinc17@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.0.0
Component: base Version: 1.9.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description

I got the following error in the upgrade from 1.9.1 to 1.9.2:

[...]
===> making install in src/port
cat ../../doc/prefix.mtree | /usr/sbin/mtree -U -d -e -p /opt/local > /dev/null
/usr/bin/install -c -d -o root -g admin -m 755 /opt/local/bin
/usr/bin/install -c -d -o root -g admin -m 755 /opt/local/var/macports
/usr/bin/install -c -o root -g admin -m 555 port portindex portmirror /opt/local/bin/
/usr/bin/install -c -o root -g admin -m 444 port-help.tcl  /opt/local/var/macports/
cd /opt/local/bin && ln -s -f port portf
===> making install in src/programs
===> making install in src/programs/daemondo
mkdir -p build
/usr/bin/install -c -o root -g admin -m 555 build/daemondo /opt/local/bin
[ ! -f /opt/local/etc/macports/mp_version ] || rm -vf /opt/local/etc/macports/mp_version
/usr/bin/install -c -o root -g admin -m 444 setupenv.bash  /opt/local/share/macports/
/usr/bin/tclsh src/upgrade_sources_conf_default.tcl /opt/local
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is not set
svn: warning: please check that your locale name is correct
    while executing
"while {[gets $sourcesConfChannel line] >= 0} {
   set addDefault false
   if {!$defaultSeen && ![regexp {^\s*#|^$} $line]} {
      if {[regexp {^([\w-..."
    (file "src/upgrade_sources_conf_default.tcl" line 34)
make: *** [install] Error 1
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 2
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed
zsh: exit 1     sudo port -v selfupdate

I wonder what the cause is. Version 1.9.2 got installed anyway, but perhaps the installation is incomplete.

Note also the svn warnings. When I run svn manually, I get no such warnings. So the problem seems to come from locale settings from MacPorts.

Change History (5)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Summary: selfupdate failed, but new version got installed anywayupgrade_sources_conf_default.tcl failed during selfupdate due to svn warnings

Running the two scripts is the last thing that happens during make install, so if your sources.conf has a default tag everything should be fine.

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

What version of Mac OS X are you running?

I assume you have a location defined in sources.conf that uses a Subversion working copy?

What version of Subversion is installed?

Do you have the LANG environment variable set? The error message says you don't, so setting it to the correct value for your system might help.

comment:3 in reply to:  2 Changed 14 years ago by vinc17@…

Replying to ryandesign@…:

What version of Mac OS X are you running?

10.4.11

I assume you have a location defined in sources.conf that uses a Subversion working copy?

Yes, several ones, but one of them is tagged as default.

What version of Subversion is installed?

subversion @1.6.15_0+tools (active)

Do you have the LANG environment variable set? The error message says you don't, so setting it to the correct value for your system might help.

It is set to "POSIX". This is the standard value, thus should work everywhere. Anyway I recall that when I run svn manually, I do not get any warning.

comment:4 Changed 14 years ago by vinc17@…

It seems that something run by port unset both LANG and LC_CTYPE. That would give the warnings I obtained.

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.0.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.