New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14687 (closed defect: worksforme)

Opened 4 years ago

Last modified 2 years ago

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

Reported by: marcuscalhounlopez@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.6.0
Keywords: Cc: sanchom@…
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

Changed 4 years ago by sanchom@…

Could I be cc'd on this ticket?

Changed 4 years ago by wsiegrist@…

  • cc sanchom@… added

Changed 3 years ago by toby@…

  • component changed from ports to base

Changed 3 years ago by blb@…

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

Changed 3 years ago by toby@…

  • milestone changed from MacPorts base bugs to MacPorts Future

Milestone MacPorts base bugs deleted

Changed 3 years ago by jmr@…

  • status changed from new to closed
  • resolution set to worksforme

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

Changed 2 years ago by jmr@…

  • milestone MacPorts Future deleted
Note: See TracTickets for help on using tickets.