Opened 4 years ago

Closed 4 years ago

#60837 closed defect (fixed)

gmt6 @6.1.0 +gdal+nonfree+pcre is still broken after rebuilding it

Reported by: europasice Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: seisman.info@…
Port: gmt6

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Today I installed macports on my new macbook pro (Catalina 10.15.5). Xcode 11.5 Build version 11E608c

The base install of macports and all my usual ports installed fine except for GMT6. The screen said:

--->  Found 1 broken file, matching files to ports
Error: Port gmt6 is still broken after rebuilding it more than 3 times.
Error: Please run port -d -y rev-upgrade and use the output to report a bug.
Error: rev-upgrade failed: Port gmt6 still broken after rebuilding 3 times
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

I've attached the output of port -d -y rev-upgrade to this ticket. I would appreciate any help you could offer for me to get GMT6 installed. Thanks.

Attachments (1)

gmt6bug.txt (94.6 KB) - added by europasice 4 years ago.
output of port -d -y rev-upgrade

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by europasice

Attachment: gmt6bug.txt added

output of port -d -y rev-upgrade

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: seisman.info@… added; tenomoto removed
Description: modified (diff)
Owner: set to tenomoto
Port: gmt6 added; GMT6 removed
Status: newassigned
Summary: gmt6 @6.1.0 +gdal+nonfree+pcre build failuregmt6 @6.1.0 +gdal+nonfree+pcre is still broken after rebuilding it

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

There does seem to be something broken here.

Although gmt6 is installing proper libraries in /opt/local/lib, it is also installing improper libraries in /opt/local/bin—improper in that their install_name is set inside the build directory, a directory which of course doesn't exist anymore after the port has been installed, and improper in that libraries don't go in /opt/local/bin. This port builds using cmake, and it is normal for cmake to set the install_name incorrectly during the build and then to fix it up during the destroot phase. What's not normal is that it would install any libraries into /opt/local/bin.

$ otool -L /opt/local/*/libgmt.6.1.0.dylib
/opt/local/bin/libgmt.6.1.0.dylib:
	/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_science_gmt5/gmt6/work/build/src/libgmt.6.dylib (compatibility version 6.0.0, current version 6.1.0)
	/opt/local/lib/libnetcdf.18.dylib (compatibility version 18.0.0, current version 18.0.0)
	/opt/local/lib/libcurl.4.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/local/lib/libgdal.27.dylib (compatibility version 28.0.0, current version 28.2.0)
	/opt/local/lib/libgeos_c.1.dylib (compatibility version 15.0.0, current version 15.3.0)
	/opt/local/lib/libpcre.1.dylib (compatibility version 4.0.0, current version 4.12.0)
	/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_science_gmt5/gmt6/work/build/src/libpostscriptlight.6.dylib (compatibility version 6.0.0, current version 6.1.0)
/opt/local/lib/libgmt.6.1.0.dylib:
	/opt/local/lib/libgmt.6.dylib (compatibility version 6.0.0, current version 6.1.0)
	/opt/local/lib/libnetcdf.18.dylib (compatibility version 18.0.0, current version 18.0.0)
	/opt/local/lib/libcurl.4.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/local/lib/libgdal.27.dylib (compatibility version 28.0.0, current version 28.2.0)
	/opt/local/lib/libgeos_c.1.dylib (compatibility version 15.0.0, current version 15.3.0)
	/opt/local/lib/libpcre.1.dylib (compatibility version 4.0.0, current version 4.12.0)
	/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/opt/local/lib/libpostscriptlight.6.dylib (compatibility version 6.0.0, current version 6.1.0)

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Despite this situation, I believe the gmt6 port should be fully usable.

comment:4 Changed 4 years ago by Takeshi Enomoto <enomoto.takeshi.3n@…>

Resolution: fixed
Status: assignedclosed

In e7f8a46920795a4aff4f359a3389fed1d15005c9/macports-ports (master):

gmt5, gmt6: install in ${prefix}/lib and create a symlink ${subport} to the gmt binary.

  • remove broken libgmt.${version}.dylib and libpostscriptlight.${version}.dylib from ${prefix}/bin

Closes: #60837

Note: See TracTickets for help on using tickets.