[MacPorts] #69254: hdf5: recent update has broken destroot

MacPorts noreply at macports.org
Mon Feb 5 21:11:34 UTC 2024


#69254: hdf5: recent update has broken destroot
---------------------------+----------------------
  Reporter:  barracuda156  |      Owner:  eborisch
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.0
Resolution:  fixed         |   Keywords:
      Port:  hdf5          |
---------------------------+----------------------

Comment (by barracuda156):

 Replying to [comment:6 Eric A. Borisch <eborisch@…>]:
 > In [changeset:"f0e6d3ac6bb521f5a3810fc49933d44b45974fca/macports-ports"
 f0e6d3ac6bb521f5a3810fc49933d44b45974fca/macports-ports] (master):
 > {{{
 > #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="f0e6d3ac6bb521f5a3810fc49933d44b45974fca"
 > hdf5: Another attempt at fixing wrapper scripts (#22559)
 >
 > A number of wrapper scripts need to have their -lsz -lz link line
 > fixed; which ones depends on build config. Rather than have a matrix of
 > all the different potential files that need patching, just find them at
 > build time and fix them up.
 >
 > Another attempt at:
 >  Fixes https://trac.macports.org/ticket/69254
 > }}}

 This update still fails, but differently: https://github.com/macports
 /macports-ports/pull/22559#issuecomment-1928098050
 Now there is some issue with `sed` syntax:
 {{{
 :debug:destroot Executing proc-post-org.macports.destroot-destroot-0
 :debug:destroot Executing proc-post-org.macports.destroot-destroot-1
 :info:destroot xinstall: mkdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/destroot/opt/local/share/hdf5
 :info:destroot xinstall:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.14.3/COPYING
 ->
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/destroot/opt/local/share/hdf5//COPYING
 :debug:destroot system -W
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/destroot/opt/local/bin:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.14.3/bin/pkgscrpts/h5rmflags
 -prefix=/opt/local
 :info:destroot Update the following tools because they are now installed
 at a new directory
 :info:destroot h5pcc:
 :info:destroot    current setting="/opt/local"
 :info:destroot    new     setting="/opt/local"
 :info:destroot h5pfc:
 :info:destroot    current setting="/opt/local"
 :info:destroot    new     setting="/opt/local"
 :info:destroot h5c++:
 :info:destroot    current setting="/opt/local"
 :info:destroot    new     setting="/opt/local"
 :info:destroot Update h5pcc ...
 :info:destroot H5BLD_LDFLAGS=" -lMacportsLegacySupport "
 :info:destroot Update h5pfc ...
 :info:destroot H5BLD_LDFLAGS=" -lMacportsLegacySupport "
 :info:destroot Update h5c++ ...
 :info:destroot H5BLD_LDFLAGS=" -lMacportsLegacySupport "
 :debug:destroot system -W
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/destroot/opt/local/bin:
 grep -Il --null -- '-lsz -lz' * | xargs -0 sed -I ''  -e
 's^-lsz^/opt/local/lib/libaec/lib/libsz.dylib^'  -e
 's^-lz^/opt/local/lib/libz.dylib^'
 :info:destroot sed: illegal option -- I
 :info:destroot usage: sed script [-Ealn] [-i extension] [file ...]
 :info:destroot        sed [-Ealn] [-i extension] [-e script] ... [-f
 script_file] ... [file ...]
 :info:destroot Command failed: grep -Il --null -- '-lsz -lz' * | xargs -0
 sed -I ''  -e 's^-lsz^/opt/local/lib/libaec/lib/libsz.dylib^'  -e
 's^-lz^/opt/local/lib/libz.dylib^'
 :info:destroot Exit code: 1
 :error:destroot Failed to destroot hdf5: command execution failed
 :debug:destroot Error code: NONE
 }}}

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


More information about the macports-tickets mailing list