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

MacPorts noreply at macports.org
Tue Apr 12 06:31:47 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    |
---------------------+------------------------

Comment (by JDLH):

 Replying to [comment:2 ryandesign]:
 > Please attach the two libtiff-4.pc files so that we can see how they
 differ.

 Attached. File '''libtiff-4_destroot-arm64_2022-04-11T1915.pc''' is from
 subdirectory `.../destroot-arm64/opt/local/lib/pkgconfig/` within the
 `work` subdirectory. It contains this:

 {{{
 prefix=/opt/local
 exec_prefix=${prefix

 libdir=${exec_prefix}/lib
 includedir=${prefix}/include

 Name: libtiff
 Description:  Tag Image File Format (TIFF) library.
 Version: 4.3.0
 Libs: -L${libdir} -ltiff
 Libs.private: -lzstd -llzma -lLerc -ljpeg -lz
 Cflags: -I${includedir}
 }}}

 File '''libtiff-4_destroot-ppc-intel_2022-04-11T1915.pc''' is from
 subdirectory `.../destroot-ppc-intel/opt/local/lib/pkgconfig/`. It has
 almost exactly the same contents, except that in the **Libs.private**
 line, delete an arg like so: `s/-lLerc //`.

 > If you were migrating from Mojave, it should not have been possible to
 install most ports universal unless you had taken special steps to
 [https://github.com/macports/macports-base/pull/223 modify MacPorts base].
 If you don't know why your ports are installed with the universal variant,
 try installing them without the universal variant.

 Good advice, except that I don't know why the `restore_ports.tcl` script
 is specifying the universal variant. My list of installed ports does not
 ask for universal variants of any port. I asked on Macports-users, in
 thread ''[https://lists.macports.org/pipermail/macports-
 users/2022-April/051031.html During Migration to Arm64 mac, should I null
 out archs='x86_64' from installed ports list? ]'', whether I should
 uninstall and reinstall every port, but changing `archs='x86_64' ` to
 `archs='' ` everywhere in my list of installed ports.

 I think I will try that experiment just to see what happens. The CPU is
 not doing anything else.

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


More information about the macports-tickets mailing list