Opened 7 years ago

Closed 7 years ago

#55931 closed defect (fixed)

postgresql91 @9.1.24_2: "port select" creates invalid links

Reported by: chwx Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: postgresql84, postgresql90, postgresql91

Description

When selecting the postgresql91 port, some links created in /opt/local/bin are missing or wrong.

E.g.:

$ sudo port -d select --set postgresql postgresql91

output (wrong):

...
DEBUG: ln -sf /opt/local/lib/postgresql91/bin/pg_resetxlog /opt/local/bin/pg_resetwal
...

Correct output would be:

...
DEBUG: ln -sf /opt/local/lib/postgresql91/bin/pg_resetxlog /opt/local/bin/pg_resetxlog
...

It seem to me that the file

/opt/local/etc/select/postgresql/postgresql91

contains a wrong number of lines consisting of a single "-" character. I attached a corrected version of that file which works correctly for me.

My OS is macOS High Sierra.

Attachments (1)

postgresql91 (918 bytes) - added by chwx 7 years ago.
/opt/local/etc/select/postgresql/postgresql91

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by chwx

Attachment: postgresql91 added

/opt/local/etc/select/postgresql/postgresql91

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

Port: postgresql84 postgresql90 added

This applies to postgresql84, postgresql90, and postgresql91. Their select files only have 33 lines, whereas the files from postgresql92 and later have 38 lines. The three wrong files need to be corrected, and the revisions of the ports need to be increased to cause those ports to be rebuilt.

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

Owner: set to ryandesign
Status: newaccepted

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

Resolution: fixed
Status: acceptedclosed

In aa10c0d12f8608d9bd81b377c3631e21ebe282dc/macports-ports:

postgresql84, postgresql90, postgresql91: Fix select files

Closes: #55931

Note: See TracTickets for help on using tickets.