[MacPorts] #64933: tiff at 4.3.0_0+universal: Failed to destroot tiff, "libtiff-4.pc differs"

MacPorts noreply at macports.org
Sun Apr 3 22:43:25 UTC 2022


#64933: tiff at 4.3.0_0+universal: Failed to destroot tiff, "libtiff-4.pc differs"
---------------------+------------------------
  Reporter:  JDLH    |      Owner:  ryandesign
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.7.2
Resolution:          |   Keywords:
      Port:  tiff    |
---------------------+------------------------

Old description:

> Attempting to install tiff at 4.3.0_0+universal on an arm64 machine running
> macOS 12.3 Monterey fails during destroot because "libtiff-4.pc differs".
>
> {{{% sudo port install tiff +universal
> --->  Computing dependencies for tiff
> --->  Fetching archive for tiff
> --->  Attempting to fetch
> tiff-4.3.0_0+universal.darwin_21.arm64-x86_64.tbz2 from
> https://packages.macports.org/tiff
> --->  Attempting to fetch
> tiff-4.3.0_0+universal.darwin_21.arm64-x86_64.tbz2 from
> https://ywg.ca.packages.macports.org/mirror/macports/packages/tiff
> --->  Attempting to fetch
> tiff-4.3.0_0+universal.darwin_21.arm64-x86_64.tbz2 from
> https://kmq.jp.packages.macports.org/tiff
> --->  Fetching distfiles for tiff
> --->  Verifying checksums for tiff
> --->  Extracting tiff
> --->  Applying patches to tiff
> --->  Configuring tiff
> --->  Building tiff
> --->  Staging tiff into destroot
> Error: Failed to destroot tiff: libtiff-4.pc differs in
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/work
> /destroot-arm64//opt/local/lib/pkgconfig and
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/work
> /destroot-ppc-intel//opt/local/lib/pkgconfig and cannot be merged
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port tiff failed
> }}}
>
> `port uninstall tiff` followed by `port install tiff +universal` is not
> effective.
>
> In the same environment, installing tiff at 4.3.0_0 without +universal
> succeeds.
>
> I have attached the `main.log` file. The interesting part appears to be:
> {{{:info:destroot --->  Patching 1-libtiff-4.pc: s:-arch +[0-9a-zA-
> Z_]+::g
> :debug:destroot Executing reinplace: /usr/bin/sed -E {s:-arch +[0-9a-zA-
> Z_]+::g} </tmp/muniversal.BBPYjHAk/1-libtiff-4.pc >@file14
> :info:destroot --->  Patching 2-libtiff-4.pc: s:-arch +[0-9a-zA-Z_]+::g
> :debug:destroot Executing reinplace: /usr/bin/sed -E {s:-arch +[0-9a-zA-
> Z_]+::g} </tmp/muniversal.BBPYjHAk/2-libtiff-4.pc >@file14
> :info:destroot --->  Patching 1-libtiff-4.pc: s:-m32::g
> :debug:destroot Executing reinplace: /usr/bin/sed s:-m32::g
> </tmp/muniversal.BBPYjHAk/1-libtiff-4.pc >@file14
> :info:destroot --->  Patching 2-libtiff-4.pc: s:-m32::g
> :debug:destroot Executing reinplace: /usr/bin/sed s:-m32::g
> </tmp/muniversal.BBPYjHAk/2-libtiff-4.pc >@file14
> :info:destroot --->  Patching 1-libtiff-4.pc: s:-m64::g
> :debug:destroot Executing reinplace: /usr/bin/sed s:-m64::g
> </tmp/muniversal.BBPYjHAk/1-libtiff-4.pc >@file14
> :info:destroot --->  Patching 2-libtiff-4.pc: s:-m64::g
> :debug:destroot Executing reinplace: /usr/bin/sed s:-m64::g
> </tmp/muniversal.BBPYjHAk/2-libtiff-4.pc >@file14
> :debug:destroot system: /usr/bin/cmp -s
> "/tmp/muniversal.BBPYjHAk/1-libtiff-4.pc"
> "/tmp/muniversal.BBPYjHAk/2-libtiff-4.pc"
> :info:destroot Command failed: /usr/bin/cmp -s
> "/tmp/muniversal.BBPYjHAk/1-libtiff-4.pc"
> "/tmp/muniversal.BBPYjHAk/2-libtiff-4.pc"
> :info:destroot Exit code: 1
> :error:destroot Failed to destroot tiff: libtiff-4.pc differs in
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/work
> /destroot-arm64//opt/local/lib/pkgconfig and
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/work
> /destroot-ppc-intel//opt/local/lib/pkgconfig and cannot be merged
> }}}
>
> Why am I installing tiff +universal?  I'm not sure. I am migrating from
> an older machine, which runs MacPorts on macOS 10.14.6 Mojave on x86_64.
> I think multiple other ports are +universal for some reason, and they
> depend on tiff, so MacPorts tries to install tiff +universal.
>
> Additionally, attempting to install tiff+universal as second time, after
> a previous failure, fails during destroot with a different message, "file
> already exists". But doing port clean restores us to the first error. I
> think the second error is less important, and so out of scope for this
> ticket.

New description:

 Attempting to install tiff at 4.3.0_0+universal on an arm64 machine running
 macOS 12.3 Monterey fails during destroot because "libtiff-4.pc differs".

 {{{
 % sudo port install tiff +universal
 --->  Computing dependencies for tiff
 --->  Fetching archive for tiff
 --->  Attempting to fetch
 tiff-4.3.0_0+universal.darwin_21.arm64-x86_64.tbz2 from
 https://packages.macports.org/tiff
 --->  Attempting to fetch
 tiff-4.3.0_0+universal.darwin_21.arm64-x86_64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/tiff
 --->  Attempting to fetch
 tiff-4.3.0_0+universal.darwin_21.arm64-x86_64.tbz2 from
 https://kmq.jp.packages.macports.org/tiff
 --->  Fetching distfiles for tiff
 --->  Verifying checksums for tiff
 --->  Extracting tiff
 --->  Applying patches to tiff
 --->  Configuring tiff
 --->  Building tiff
 --->  Staging tiff into destroot
 Error: Failed to destroot tiff: libtiff-4.pc differs in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/work
 /destroot-arm64//opt/local/lib/pkgconfig and
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/work
 /destroot-ppc-intel//opt/local/lib/pkgconfig and cannot be merged
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port tiff failed
 }}}

 `port uninstall tiff` followed by `port install tiff +universal` is not
 effective.

 In the same environment, installing tiff at 4.3.0_0 without +universal
 succeeds.

 I have attached the `main.log` file. The interesting part appears to be:
 {{{
 :info:destroot --->  Patching 1-libtiff-4.pc: s:-arch +[0-9a-zA-Z_]+::g
 :debug:destroot Executing reinplace: /usr/bin/sed -E {s:-arch +[0-9a-zA-
 Z_]+::g} </tmp/muniversal.BBPYjHAk/1-libtiff-4.pc >@file14
 :info:destroot --->  Patching 2-libtiff-4.pc: s:-arch +[0-9a-zA-Z_]+::g
 :debug:destroot Executing reinplace: /usr/bin/sed -E {s:-arch +[0-9a-zA-
 Z_]+::g} </tmp/muniversal.BBPYjHAk/2-libtiff-4.pc >@file14
 :info:destroot --->  Patching 1-libtiff-4.pc: s:-m32::g
 :debug:destroot Executing reinplace: /usr/bin/sed s:-m32::g
 </tmp/muniversal.BBPYjHAk/1-libtiff-4.pc >@file14
 :info:destroot --->  Patching 2-libtiff-4.pc: s:-m32::g
 :debug:destroot Executing reinplace: /usr/bin/sed s:-m32::g
 </tmp/muniversal.BBPYjHAk/2-libtiff-4.pc >@file14
 :info:destroot --->  Patching 1-libtiff-4.pc: s:-m64::g
 :debug:destroot Executing reinplace: /usr/bin/sed s:-m64::g
 </tmp/muniversal.BBPYjHAk/1-libtiff-4.pc >@file14
 :info:destroot --->  Patching 2-libtiff-4.pc: s:-m64::g
 :debug:destroot Executing reinplace: /usr/bin/sed s:-m64::g
 </tmp/muniversal.BBPYjHAk/2-libtiff-4.pc >@file14
 :debug:destroot system: /usr/bin/cmp -s
 "/tmp/muniversal.BBPYjHAk/1-libtiff-4.pc"
 "/tmp/muniversal.BBPYjHAk/2-libtiff-4.pc"
 :info:destroot Command failed: /usr/bin/cmp -s
 "/tmp/muniversal.BBPYjHAk/1-libtiff-4.pc"
 "/tmp/muniversal.BBPYjHAk/2-libtiff-4.pc"
 :info:destroot Exit code: 1
 :error:destroot Failed to destroot tiff: libtiff-4.pc differs in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/work
 /destroot-arm64//opt/local/lib/pkgconfig and
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_tiff/tiff/work
 /destroot-ppc-intel//opt/local/lib/pkgconfig and cannot be merged
 }}}

 Why am I installing tiff +universal?  I'm not sure. I am migrating from an
 older machine, which runs MacPorts on macOS 10.14.6 Mojave on x86_64. I
 think multiple other ports are +universal for some reason, and they depend
 on tiff, so MacPorts tries to install tiff +universal.

 Additionally, attempting to install tiff+universal as second time, after a
 previous failure, fails during destroot with a different message, "file
 already exists". But doing port clean restores us to the first error. I
 think the second error is less important, and so out of scope for this
 ticket.

--

Comment (by JDLH):

 (Corrected formatting of preformatted text, and of paragraph breaks.
 Sorry.)

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


More information about the macports-tickets mailing list