[Bug 296477] graphics/gdal: strip turns libgdal.so symlink into a real file.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 Jul 2026 02:53:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296477

            Bug ID: 296477
           Summary: graphics/gdal: strip turns libgdal.so symlink into a
                    real file.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: 0xcdcdcdcd@gmail.com
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.