[MacPorts] #68766: openssl3 @3.2.0_0+universal may have broken PRNG on High Sierra and older

MacPorts noreply at macports.org
Fri Feb 2 21:13:39 UTC 2024


#68766: openssl3 @3.2.0_0+universal may have broken PRNG on High Sierra and older
------------------------+------------------------
  Reporter:  fhgwright  |      Owner:  neverpanic
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:  fixed      |   Keywords:
      Port:  openssl3   |
------------------------+------------------------

Comment (by neverpanic):

 OK, so what we're seeing is that with `+universal`, openssl is configured
 twice, once for x86_64, and once for i686. Both build phases succeed.
 After that, there's a destroot phase, also run twice, which is supposed to
 merge the i686 and the x86_64 part of the binaries into one, and after
 that a test phase runs in the build directories for x86_64 and i686.

 From your logs it is clear that the x86_64 test phase works fine if the
 i686 build doesn't happen. It also shows that the x86_64 test phase fails
 catastrophically if the i686 build happens in between. That's very
 unexpected.

 I tried a +universal arm64 and x86_64 build, and could not reproduce that
 behavior. Both test phases pass just fine in that configuration.

 As a consequence, my first advice would be: Don't build universal if you
 can avoid it. It costs you twice the time and twice the disk space, and
 you're really only running one of the slices anyway. If you can't avoid
 it, the next steps would be to debug what the differences between those
 build directories are before and after the destroot phase runs.

 I did notice a couple of error messages in the log, which may or may not
 indicate and error. I'm not familiar enough with the muniversal PortGroup
 to say.

 {{{
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/bin/openssl"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-x86_64//opt/local/libexec/openssl3/bin/openssl" && /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/bin/openssl"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/bin"
 Exit code: 1
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/include/openssl/configuration.h"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-
 x86_64//opt/local/libexec/openssl3/include/openssl/configuration.h" &&
 /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/include/openssl/configuration.h"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/include/openssl"
 Exit code: 1
 fatal error: /Library/Developer/CommandLineTools/usr/bin/lipo: can't
 figure out the architecture type of:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/include/openssl/configuration.h
 Command failed: /usr/bin/lipo -create
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/include/openssl/configuration.h"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-
 x86_64//opt/local/libexec/openssl3/include/openssl/configuration.h"
 -output
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-
 intel//opt/local/libexec/openssl3/include/openssl/configuration.h"
 Exit code: 1
 error: /Library/Developer/CommandLineTools/usr/bin/libtool: file:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/include/openssl/configuration.h
 is not an object file (not allowed in a library)
 error: /Library/Developer/CommandLineTools/usr/bin/libtool: file:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-
 x86_64//opt/local/libexec/openssl3/include/openssl/configuration.h is not
 an object file (not allowed in a library)
 Command failed: /usr/bin/libtool
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/include/openssl/configuration.h"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-
 x86_64//opt/local/libexec/openssl3/include/openssl/configuration.h" -o
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-
 intel//opt/local/libexec/openssl3/include/openssl/configuration.h"
 Exit code: 1
 Command failed: test "`head -c2
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/include/openssl/configuration.h`"
 = '#!'
 Exit code: 1

 […]

 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/engines-3/capi.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-x86_64//opt/local/libexec/openssl3/lib/engines-3/capi.dylib" &&
 /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/engines-3/capi.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib/engines-3"
 Exit code: 1
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/engines-3/loader_attic.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-
 x86_64//opt/local/libexec/openssl3/lib/engines-3/loader_attic.dylib" &&
 /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/engines-3/loader_attic.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib/engines-3"
 Exit code: 1
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/engines-3/padlock.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-x86_64//opt/local/libexec/openssl3/lib/engines-3/padlock.dylib"
 && /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/engines-3/padlock.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib/engines-3"
 Exit code: 1
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/libcrypto.3.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-x86_64//opt/local/libexec/openssl3/lib/libcrypto.3.dylib" &&
 /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/libcrypto.3.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib"
 Exit code: 1
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/libcrypto.a"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-x86_64//opt/local/libexec/openssl3/lib/libcrypto.a" && /bin/cp
 -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/libcrypto.a"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib"
 Exit code: 1
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/libssl.3.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-x86_64//opt/local/libexec/openssl3/lib/libssl.3.dylib" &&
 /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/libssl.3.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib"
 Exit code: 1
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/libssl.a"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-x86_64//opt/local/libexec/openssl3/lib/libssl.a" && /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib/libssl.a"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib"
 Exit code: 1
 xinstall: mkdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib/ossl-modules
 Command failed: /usr/bin/cmp -s
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib
 /ossl-modules/legacy.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-x86_64//opt/local/libexec/openssl3/lib/ossl-
 modules/legacy.dylib" && /bin/cp -v
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work/destroot-i386//opt/local/libexec/openssl3/lib
 /ossl-modules/legacy.dylib"
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3-devel/work
 /destroot-intel//opt/local/libexec/openssl3/lib/ossl-modules"
 Exit code: 1
 }}}

 Maybe those are normal due to how muniversal works, maybe they aren't.
 More debug output from that PortGroup would certainly be helpful to
 determine that.

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


More information about the macports-tickets mailing list