[90985] trunk/dports/science

Joshua Root jmr at macports.org
Wed Mar 21 07:29:10 PDT 2012


On 2012-3-22 01:11 , Leo Singer wrote:
> Attached is a revised Portfile.  I am having trouble with get_canonical_archflags.  After adding to build.post_args-append:
> 
>                     CC="${configure.cc} [get_canonical_archflags cc]" \
>                     CL="${configure.cc} [get_canonical_archflags ld]" \
>                     CXX="${configure.cxx} [get_canonical_archflags cxx]" \
>                     CXXL="${configure.cxx} [get_canonical_archflags ld]"
> 
> I get the following error message:
> 
> :info:build shell command "/usr/bin/make HEALPIX_TARGET=osx BINDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/bin LIBDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/lib INCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/include EXTERNAL_CFITSIO=yes CFITSIO_INCDIR=/opt/local/include CFITSIO_LIBDIR=/opt/local/lib CFITSIO_EXT_LIB=/opt/local/lib/libcfitsio.a CFITSIO_EXT_INC=/opt/local/include CC=\"/usr/bin/llvm-gcc-4.2 {-arch x86_64"} CL=\"/usr/bin/llvm-gcc-4.2 {-arch x86_64"} CXX=\"/usr/bin/llvm-g++-4.2 {-arch x86_64"} CXXL=\"/usr/bin/llvm-g++-4.2 {-arch x86_64"}" returned error 2
> 
> I do not know why the curly braces are showing up in the arguments to Make.

That's escaping because one of the list elements contains a space.
(You'll notice the first quote is also escaped but with a backslash.) We
do join all the list elements together before passing them to the shell,
so the args are not really being displayed correctly here. You'll
probably see something that looks more normal in the debug output.

- Josh


More information about the macports-dev mailing list