[MacPorts] #61664: Unable to Install ddrescue on Lion -- Broken port

MacPorts noreply at macports.org
Thu Nov 26 23:44:58 UTC 2020


#61664: Unable to Install ddrescue on Lion -- Broken port
-----------------------+--------------------
  Reporter:  RobK88    |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.4
Resolution:            |   Keywords:  Lion
      Port:  ddrescue  |
-----------------------+--------------------

Comment (by kencu):

 {{{ddrescue}}} is not using the proper CXX and other flags that MacPorts
 provides:
 {{{
 creating config.status
 creating Makefile
 VPATH = .
 prefix = /opt/local
 exec_prefix = $(prefix)
 bindir = $(exec_prefix)/bin
 datarootdir = $(prefix)/share
 infodir = $(datarootdir)/info
 mandir = $(datarootdir)/man
 CXX = /opt/local/bin/clang++-mp-9.0
 CPPFLAGS =
 CXXFLAGS = -Wall -W -O2
 LDFLAGS =
 OK. Now you can run make.
 --->  Building ddrescue
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_ddrescue/ddrescue/work/ddrescue-1.25"
 && /usr/bin/make -j4 -w all
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_ddrescue/ddrescue/work/ddrescue-1.25'
 /opt/local/bin/clang++-mp-9.0  -Wall -W -O2 -c -o arg_parser.o
 arg_parser.cc
 /opt/local/bin/clang++-mp-9.0  -Wall -W -O2 -c -o rational.o rational.cc
 }}}

 it runs with the compiler defaults... and on 10.7.5 in macports, clang
 defaults to libstdc++ if not told otherwise.

 To build it for today, please just build it with clang-9.0; I have
 adjusted the defaults to make that work. So this works:

 {{{
 sudo port clean ddrescue
 sudo port -v install ddrescure configure.compiler=macports-clang-9.0
 }}}

 to fix this properly the port will need to be surgerized to use MacPorts
 flags and environment variables properly.

-- 
Ticket URL: <https://trac.macports.org/ticket/61664#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list