Bug 296477 - graphics/gdal: strip turns libgdal.so symlink into a real file.
Summary: graphics/gdal: strip turns libgdal.so symlink into a real file.
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-03 02:53 UTC by 0xcdcdcdcd
Modified: 2026-07-03 02:53 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 0xcdcdcdcd 2026-07-03 02:53:03 UTC
The contents of gdal.pkg are as follows:
-rwxr-xr-x  0 root   wheel 26019352  Jul  3 11:40 /usr/local/lib/libgdal.so
lrwxr-xr-x  0 root   wheel        0  Jul  3 11:40 /usr/local/lib/libgdal.so.39 -> libgdal.so.39.3.13.1
-rwxr-xr-x  0 root   wheel 26019352  Jul  3 11:40 /usr/local/lib/libgdal.so.39.3.13.1

libgdal.so is expected to be a symlink to libgdal.39.3.13.1.

This can be resolved by modifying the Makefile as follows:
-       ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgdal.so
+       ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgdal.so.39.${PORTVERSION}

The contents of gdal.pkg will be as follows:
lrwxr-xr-x  0 root   wheel        0  Jul  3 11:47 /usr/local/lib/libgdal.so -> libgdal.so.39
lrwxr-xr-x  0 root   wheel        0  Jul  3 11:47 /usr/local/lib/libgdal.so.39 -> libgdal.so.39.3.13.1
-rwxr-xr-x  0 root   wheel 26019352  Jul  3 11:47 /usr/local/lib/libgdal.so.39.3.13.1