Opened 12 months ago

Closed 7 months ago

#67339 closed defect (fixed)

postgis3 @3.2.0_4+postgresql13+proj8+raster+topology fails to install without coreutils

Reported by: halostatue (Austin Ziegler) Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: jyrkiwahlstedt
Port: postgis3 postgresql13

Description

$ sudo port install postgis3 +postgresql13+proj8+raster+topology
--->  Computing dependencies for postgis3
--->  Fetching archive for postgis3
--->  Attempting to fetch postgis3-3.2.0_4+postgresql13+proj8+raster+topology.darwin_22.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/postgis3
--->  Attempting to fetch postgis3-3.2.0_4+postgresql13+proj8+raster+topology.darwin_22.arm64.tbz2 from https://packages.macports.org/postgis3
--->  Attempting to fetch postgis3-3.2.0_4+postgresql13+proj8+raster+topology.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/postgis3
--->  Fetching distfiles for postgis3
--->  Verifying checksums for postgis3
--->  Extracting postgis3
--->  Configuring postgis3
--->  Building postgis3
--->  Staging postgis3 into destroot
Error: Failed to destroot postgis3: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis3/postgis3/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port postgis3 failed

I’ve attached the log, but it boils down to this:

:info:destroot /opt/local/bin/gmkdir -p '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis3/postgis3/work/destroot/opt/local/share/postgresql13/contrib/postgis-3.2'
:info:destroot make[2]: /opt/local/bin/gmkdir: No such file or directory

Installing coreutils fixes the build. I first noticed it with a rev-upgrade warning.

Attachments (1)

main.log (460.9 KB) - added by halostatue (Austin Ziegler) 12 months ago.

Download all attachments as: .zip

Change History (6)

Changed 12 months ago by halostatue (Austin Ziegler)

Attachment: main.log added

comment:1 Changed 12 months ago by jmroot (Joshua Root)

Owner: set to Veence
Status: newassigned
Summary: postgis3 fails to install without coreutilspostgis3 @3.2.0_4+postgresql13+proj8+raster+topology fails to install without coreutils

The string gmkdir doesn't occur in the postgis3 sources outside of the configure script check that decides to use install-sh. My guess is it might be coming from pg_config --pgxs.

comment:2 Changed 12 months ago by halostatue (Austin Ziegler)

That appears to be the case:

$ ag gmkdir /opt/local/lib
/opt/local/lib/postgresql13/pgxs/src/Makefile.global
499:MKDIR_P = /opt/local/bin/gmkdir -p

If I uninstall/reinstall postgresql13 the reference to gmkdir goes away and does not return if I reinstall it with coreutils. My suspicion at this point is that this was originally installed before the binaries were available for macOS 13 arm64 and at that point I had the coreutils port installed.

This can probably be closed.

comment:3 Changed 12 months ago by jmroot (Joshua Root)

Cc: jyrkiwahlstedt added
Port: postgresql13 added

It would still be good to make sure postgres won't bake in a reference to something it doesn't depend on.

comment:4 Changed 12 months ago by halostatue (Austin Ziegler)

I did a quick set of tests and can confirm that gmkdir gets baked in if coreutils is installed and you do sudo port install -s postgresql13.

comment:5 Changed 7 months ago by dgilman (David Gilman)

Resolution: fixed
Status: assignedclosed

In bfbd57e500d63729bd89d599cfc23b3232abf387/macports-ports (master):

postgresql16: new port

Closes: #40501
Closes: #37929
Closes: #36511
Closes: #36128
Closes: #33145
Closes: #66529
Closes: #67638
Closes: #29752
Closes: #66689
Closes: #67203
Closes: #67713
Closes: #68119
Closes: #67339

Note: See TracTickets for help on using tickets.