Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#14687 closed defect (worksforme)

BUG: destroot and (build && destroot) yield different results

Reported by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.6.0
Keywords: Cc: sanchom (Sancho McCann)
Port:

Description

As has been discussed #13948, mzscheme

  • Fails with "port destroot mzscheme"
  • Succeeds with "port build mzscheme && port destroot mzscheme"

The error is:

find-executable-path: expected argument of type <path or string (sans nul)>; given ""

Similarly, when the boost port contains

build.env       BZIP2_INCLUDE=${prefix}/include BZIP2_LIBPATH=${prefix}/lib \
                ZLIB_INCLUDE=${prefix}/include ZLIB_LIBPATH=${prefix}/lib

then boost

  • Fails with "port destroot boost"
  • Succeeds with "port build boost && port destroot boost"

The error is:

/opt/local/var/macports/build/_Users_macports_MacPorts_mports_devel_boost/work/boost_1_34_1/tools/build/v2/util/path.jam:465: in make-UNIX from module path
error: Empty path passed to 'make-UNIX'

Strangely enough, a fix (for boost but not for mzscheme) is to simply add

destroot.env           ${build.env}

I assume this was the reason for the boost rollback r34913.

Since both errors involve empty paths, and each has at lest one common workaround,
I thought they might be symptom of a common bug.
I am using MP 1.600 on Leopard.

Change History (7)

comment:1 Changed 17 years ago by sanchom (Sancho McCann)

Could I be cc'd on this ticket?

comment:2 Changed 17 years ago by wsiegrist@…

Cc: sanchom@… added

comment:3 Changed 16 years ago by tobypeterson

Component: portsbase

comment:4 Changed 16 years ago by blb@…

Smells like the Tcl env bug: 10.5, empty env vars at various times, manually selecting stages makes it work...

comment:5 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

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

Resolution: worksforme
Status: newclosed

Assuming this was the Tcl env bug unless evidence to the contrary surfaces.

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

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