[MacPorts] #63993: py39-opencv4 4.5.2_1 port build fails on macOS12 arm64

MacPorts noreply at macports.org
Thu Nov 18 14:12:40 UTC 2021


#63993: py39-opencv4 4.5.2_1 port build fails on macOS12 arm64
---------------------------+----------------------
  Reporter:  bal-agates    |      Owner:  mascguy
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  opencv4
      Port:  py39-opencv4  |
---------------------------+----------------------

Comment (by bal-agates):

 I thought MacPorts should fallback on building from source if an archive
 wasn't found, but the behavior when using the "-s" option lead me to think
 that wasn't happening.

 When I successfully built using the "-s" switch MacPorts appears to have
 deleted the failing logfile.  Today I uninstalled py39-opencv4 and then
 tried reinstalling without the "-s" switch but now I cannot duplicate the
 problem.  Sorry.  I should have kept a copy of the failing logfile before
 I did more experimenting.  The only thing I saved was the direct build
 output.

 Failing install

 {{{
 % sudo port install py39-opencv4
 --->  Computing dependencies for py39-opencv4
 --->  Fetching archive for py39-opencv4
 --->  Attempting to fetch py39-opencv4-4.5.2_1.darwin_21.arm64.tbz2 from
 https://packages.macports.org/py39-opencv4
 --->  Attempting to fetch py39-opencv4-4.5.2_1.darwin_21.arm64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/py39-opencv4
 --->  Attempting to fetch py39-opencv4-4.5.2_1.darwin_21.arm64.tbz2 from
 https://mse.uk.packages.macports.org/py39-opencv4
 --->  Staging py39-opencv4 into destroot
 Error: No files have been installed in the destroot directory!
 Error: Please make sure that this software supports 'make install
 DESTDIR=${destroot}' or implement an alternative destroot mechanism in the
 Portfile.
 Error: Files might have been installed directly into your system, check
 before proceeding.
 Error: Failed to destroot py39-opencv4: Staging py39-opencv4 into destroot
 failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/py39-opencv4/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port py39-opencv4 failed
 }}}

 Successful install today

 {{{
 % sudo port install py39-opencv4
 --->  Computing dependencies for py39-opencv4
 --->  Fetching archive for py39-opencv4
 --->  Attempting to fetch py39-opencv4-4.5.2_1.darwin_21.arm64.tbz2 from
 https://packages.macports.org/py39-opencv4
 --->  Attempting to fetch py39-opencv4-4.5.2_1.darwin_21.arm64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/py39-opencv4
 --->  Attempting to fetch py39-opencv4-4.5.2_1.darwin_21.arm64.tbz2 from
 https://mse.uk.packages.macports.org/py39-opencv4
 --->  Fetching distfiles for py39-opencv4
 --->  Attempting to fetch opencv-4.5.2.tar.gz from
 https://distfiles.macports.org/opencv4
 --->  Verifying checksums for py39-opencv4
 --->  Extracting py39-opencv4
 --->  Applying patches to py39-opencv4
 --->  Configuring py39-opencv4
 --->  Building py39-opencv4
 --->  Staging py39-opencv4 into destroot
 --->  Installing py39-opencv4 @4.5.2_1
 --->  Activating py39-opencv4 @4.5.2_1
 --->  Cleaning py39-opencv4
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 --->  No broken ports found.
 }}}

 I noticed the Fetching distfiles is missing in the failed attempt.  I do
 not know what changed.  Is MacPorts somehow remembering something from my
 "-s" build.  I had tried to build py39-opencv4 on 6-Nov-2021 and
 17-Nov-2021 with the same failing results.  Was a server or file
 unavailable at the time I was doing both of my failing builds?  Between
 those dates I had done a couple of port selfupdates.  My first successful
 build with "-s" option was later on 17-Nov-2021.

 If there is not enough information to diagnose feel free to close the
 issue.

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


More information about the macports-tickets mailing list