Opened 3 years ago

Last modified 2 years ago

#63456 assigned defect

mysql8 @8.0.26_0: broken symbolic link causes linking error

Reported by: chrstphrchvz (Christopher Chavez) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: xeron (Ivan Larionov), mascguy (Christopher Nielsen)
Port: mysql8

Description

As reported by @xeron: https://github.com/macports/macports-ports/pull/12089#issuecomment-913189155 https://github.com/macports/macports-ports/pull/12089#issuecomment-913203675

~$ sudo port -v rev-upgrade
--->  Scanning binaries for linking errors
Could not open /opt/local/lib/mysql8/plugin/libprotobuf-lite.3.11.4.dylib: Error opening or reading file (referenced from /opt/local/lib/mysql8/plugin/group_replication.so)
--->  Found 1 broken file, matching files to ports
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: mysql8 @8.0.26
~$ ls -l /opt/local/lib/mysql8/plugin/libprotobuf-lite.3.11.4.dylib
lrwxr-xr-x  1 root  admin  41 Sep  5 10:28 /opt/local/lib/mysql8/plugin/libprotobuf-lite.3.11.4.dylib -> ../../mysql/libprotobuf-lite.3.11.4.dylib
~$ ls -l /opt/local/lib/mysql8/plugin/../../mysql/libprotobuf-lite.3.11.4.dylib
ls: /opt/local/lib/mysql8/plugin/../../mysql/libprotobuf-lite.3.11.4.dylib: No such file or directory
~$ ls -l /opt/local/lib/mysql8/plugin/../mysql/libprotobuf-lite.3.11.4.dylib
-rwxr-xr-x  1 root  admin  613504 Sep  5 10:28 /opt/local/lib/mysql8/plugin/../mysql/libprotobuf-lite.3.11.4.dylib

Attachments (1)

main.log.gz (648.2 KB) - added by chrstphrchvz (Christopher Chavez) 3 years ago.
main.log for completed build affected by issue

Download all attachments as: .zip

Change History (7)

comment:1 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

I personally do not use this port. I apologize for not catching this issue before submitting the update.

Unless the cause of this issue can be identified quickly, I would be inclined have the portfile recreate the symlink correctly as a temporary workaround.

Changed 3 years ago by chrstphrchvz (Christopher Chavez)

Attachment: main.log.gz added

main.log for completed build affected by issue

comment:2 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

PR for temporary workaround opened: https://github.com/macports/macports-ports/pull/12108

comment:3 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

In 64c50d69b7142d19b02296cd43dff2d0ea3e3345/macports-ports (master):

mysql8: broken symlink workaround

See: #63456

comment:4 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

The same broken symlink was present in 8.0.25 (and possibly earlier), but group_replication.so wasn’t linking to it, leaving port rev-upgrade with nothing to complain about.

comment:5 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:6 Changed 2 years ago by herbygillot (Herby Gillot)

This should be resolved

Note: See TracTickets for help on using tickets.