pkg/60040: zlib-ng-2.3.3 package fails to build

"[email protected] via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
>Number:         60040
>Category:       pkg
>Synopsis:       zlib-ng-2.3.3 package fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 26 09:40:00 +0000 2026
>Originator:     nico
>Release:        pkgsrc-2025Q4
>Organization:
rintene.trade
>Environment:
SunOS briareus 5.11 joyent_20251113T010957Z i86pc i386 i86pc
>Description:
Package fails at the linking stage: 
[ 75%] Linking C shared library libz-ng.so
ld: fatal: file /home/pbulk/build/archivers/zlib-ng/work/zlib-ng-2.3.3/cmake-pkgsrc-build/zlib-ng.map: unknown file type
ld: fatal: file processing errors. No output written to libz-ng.so.2.3.3
collect2: error: ld returned 1 exit status
--- libz-ng.so.2.3.3 ---
*** [libz-ng.so.2.3.3] Error code 1

bmake[2]: stopped making "CMakeFiles/zlib-ng.dir/build" in /home/pbulk/build/archivers/zlib-ng/work/zlib-ng-2.3.3/cmake-pkgsrc-build
bmake[2]: 1 error

bmake[2]: stopped making "CMakeFiles/zlib-ng.dir/build" in /home/pbulk/build/archivers/zlib-ng/work/zlib-ng-2.3.3/cmake-pkgsrc-build
--- CMakeFiles/zlib-ng-static.dir/all ---
*** [CMakeFiles/zlib-ng-static.dir/all] Error code 6
>How-To-Repeat:

>Fix:
patch-CMakeLists.txt

$NetBSD$

--- CMakeLists.txt.orig 2026-02-26 09:31:30.086903021 +0000
+++ CMakeLists.txt
@@ -1476,7 +1476,7 @@ if(NOT DEFINED BUILD_SHARED_LIBS OR BUIL
         if(HAVE_NO_INTERPOSITION)
             set_target_properties(zlib-ng PROPERTIES COMPILE_FLAGS "-fno-semantic-interposition")
         endif()
-        if(NOT APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL AIX)
+        if(NOT APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL AIX AND NOT CMAKE_SYSTEM_NAME STREQUAL SunOS)
             if(NOT ZLIB_COMPAT)
                 add_definitions(-DHAVE_SYMVER)
             endif()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.