Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#16877 closed defect (fixed)

variables in _libtest procedure are not properly imported in the local scope.

Reported by: face@… Owned by: nox@…
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc: jmroot (Joshua Root)
Port:

Description

running from trunk - updated this morning.

In the past (last week or 2) the fetch would fail, all done.

Today the fetch fails and I get *lots* more output...

mac 11 # sudo port upgrade outdated
--->  Fetching ffmpeg
Error: Target org.macports.fetch returned: shell command "svn co -r14381 --ignore-externals svn://svn.mplayerhq.hu/ffmpeg/trunk /opt/local/var/macports/distfiles/ffmpeg/14381/trunk" returned error 1
Command output: svn: Can't connect to host 'svn.mplayerhq.hu': Operation timed out

Error: Unable to upgrade port: 1
can't read "frameworks_dir": no such variable
    while executing
"lappend search_path ${frameworks_dir} /Library/Frameworks /Network/Library/Frameworks /System/Library/Frameworks"
    (procedure "_libtest" line 9)
    invoked from within
"_libtest $mport $depspec"
    ("lib" arm line 1)
    invoked from within
"switch $type {
            lib { return [_libtest $mport $depspec] }
            bin { return [_bintest $mport $depspec] }
            path { return [..."
    (procedure "_mportispresent" line 15)
    invoked from within
"_mportispresent $workername $dspec "
    (procedure "upgrade" line 60)
    invoked from within
"upgrade $d $i $variationslist [array get options] depscache"
    (procedure "macports::upgrade" line 185)
    invoked from within
"macports::upgrade $portname "port:$portname" [array get variations] [array get options]"
    ("uplevel" body line 9)
    invoked from within
"uplevel 1 $block"
    (procedure "foreachport" line 16)
    invoked from within
"foreachport $portlist {
        # Merge global variations into the variations specified for this port
        foreach { variation value } [array get g..."
    (procedure "action_upgrade" line 6)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 86)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command

    # Exit immediately, by default, unless..."
    (file "/opt/local/bin/port" line 3229)
mac 12 # 

Change History (12)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to acho@…
Port: ffmpeg added

Weird, I see something similarly strange. I wonder if this is a MacPorts base issue?

$ sudo port clean --all ffmpeg
--->  Cleaning ffmpeg
couldn't change working directory to "/opt/local/var/macports/distfiles/ffmpeg/14381/trunk": no such file or directory
    while executing
"cd $savedir"
    (procedure "foreachport" line 17)
    invoked from within
"foreachport $portlist {
        set target $action

        # If we have a url, use that, since it's most specific
        # otherwise try to map the ..."
    (procedure "action_target" line 7)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 86)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command

    # Exit immediately, by default, unless..."
    (file "/opt/local/bin/port" line 3207)

comment:2 Changed 16 years ago by nox@…

Component: portsbase
Milestone: Port BugsMacPorts base bugs
Port: ffmpeg removed
Resolution: fixed
Status: newclosed
Version: 1.6.01.7.0

comment:3 Changed 16 years ago by nox@…

Summary: ffmpeg fails to build - can't fetchvariables in _libtest procedure are not properly imported in the local scope.

comment:4 Changed 16 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: closedreopened

After updating trunk to r40824 and reinstalling problems persist. While executing command 'sudo port -d upgrade gimp':

DEBUG: Found port in file:///opt/macports/trunk/dports//x11/XFree86
DEBUG: XFree86 is *not* installed by MacPorts
DEBUG: Changing to port directory: /opt/macports/trunk/dports/x11/XFree86
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: 'universal_variant no' specified, so not adding the default universal variant
DEBUG: Requested variant powerpc is not provided by port XFree86.
DEBUG: Executing variant darwin provides darwin
DEBUG: Executing variant macosx provides macosx
DEBUG: Searching for dependency: XFree86
DEBUG: Didn't find receipt, going to depspec regex for: XFree86
can't read "frameworks_dir": no such variable
    while executing
"lappend search_path ${frameworks_dir} /Library/Frameworks /Network/Library/Frameworks /System/Library/Frameworks"
    (procedure "_libtest" line 9)
    invoked from within
"_libtest $mport $depspec"
    ("lib" arm line 1)
    invoked from within
"switch $type {
            lib { return [_libtest $mport $depspec] }
            bin { return [_bintest $mport $depspec] }
            path { return [..."
    (procedure "_mportispresent" line 15)
    invoked from within
"_mportispresent $workername $dspec "
    (procedure "upgrade" line 60)
    invoked from within
"upgrade $d $i $variationslist [array get options] depscache"
    (procedure "upgrade" line 185)
    invoked from within
"upgrade $d $i $variationslist [array get options] depscache"
    (procedure "upgrade" line 185)
    invoked from within
"upgrade $d $i $variationslist [array get options] depscache"
    (procedure "upgrade" line 185)
    invoked from within
"upgrade $d $i $variationslist [array get options] depscache"
    (procedure "upgrade" line 185)
    invoked from within
"upgrade $d $i $variationslist [array get options] depscache"
    (procedure "upgrade" line 185)
    invoked from within
"upgrade $d $i $variationslist [array get options] depscache"
    (procedure "upgrade" line 185)
    invoked from within
"upgrade $d $i $variationslist [array get options] depscache"
    (procedure "macports::upgrade" line 185)
    invoked from within
"macports::upgrade $portname "port:$portname" [array get variations] [array get options]"
    ("uplevel" body line 9)
    invoked from within
"uplevel 1 $block"
    (procedure "foreachport" line 16)
    invoked from within
"foreachport $portlist {
        # Merge global variations into the variations specified for this port
        foreach { variation value } [array get g..."
    (procedure "action_upgrade" line 6)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 86)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command

    # Exit immediately, by default, unless..."
    (file "/opt/local/bin/port" line 3229)

comment:5 Changed 16 years ago by dbevans (David B. Evans)

Owner: changed from acho@… to nox@…
Status: reopenednew

comment:6 Changed 16 years ago by nox@…

Are you sure you have reinstalled base? I can't reproduce the bug anymore here.

comment:7 Changed 16 years ago by dbevans (David B. Evans)

OK, did the following:

cd /opt/macports/trunk
rm -rf base
svn update
make
sudo make install

svn says I am at r40825. Then

sudo port -d upgrade gimp

gives exactly the same error as I reported above when trying to resolve dependency on XFree86.

What am I doing wrong?

comment:8 Changed 16 years ago by nox@…

Absolutely nothing, you did the exact same thing as me and it worked here, must be my fix at fault. Is there any base/ guru listening there?

comment:9 Changed 16 years ago by dbevans (David B. Evans)

One more data point. To be complete, I reverted base to r40802 and the problem went away.

comment:10 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Resolution: fixed
Status: newclosed

Sorry, my bad. Fixed in r40834.

comment:11 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:12 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.7.0
Note: See TracTickets for help on using tickets.