[MacPorts] #58770: gpsd @3.19: fails to build in trace mode

MacPorts noreply at macports.org
Tue Jul 30 06:43:53 UTC 2019


#58770: gpsd @3.19: fails to build in trace mode
-----------------------+--------------------
 Reporter:  Ionic      |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.5.99
 Keywords:  tracemode  |       Port:  gpsd
-----------------------+--------------------
 {{{
 [...]
 :info:build scons: done reading SConscript files.
 :info:build scons: Building targets ...
 :info:build rm -f ais_json.i &&
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
 jsongen.py --ais --target=parser > ais_json.i && chmod a-w ais_json.i
 :info:build Creating 'gpsd_config.h'
 :info:build /usr/bin/clang -arch x86_64 -o bits.os -c -Os -O2 bits.c
 :info:build xcrun: error: invalid active developer path
 (/Applications/Xcode.app/Contents/Developer), missing xcrun at:
 /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
 :info:build scons: *** [bits.os] Error 1
 :info:build scons: building terminated because of errors.
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.rsync.ionic.de_release_ports_net_gpsd/gpsd/work/gpsd-3.19"
 && /opt/local/bin/scons -j2 prefix=/opt/local
 target_python=/opt/local/bin/python2.7 qt=yes usb=yes strip
 =no dbus_export=no xgps=no
 :info:build Exit code: 2
 :warn:build The following existing files were hidden from the build system
 by trace mode:
 :msg:build   /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
 :msg:build
 /Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib
 [...]
 }}}

 Trace mode in base now only allows the Xcode paths by default if
 `build.type` is `xcode`. `gpsd` uses the "normal" gmake-based build type,
 but its configure phase still checks for and uses Xcode. Boom.

 We now need to add
 {{{
 if {[info exists use_xcode]} {
     use_xcode "yes"
 }
 }}}
 to make this work.


 Can commit and push. Maintainers, are you okay with this change?

-- 
Ticket URL: <https://trac.macports.org/ticket/58770>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list