pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/uchardet uchardet: no -Wl,--version-script on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/26b6c3c4a181
branches:  trunk
changeset: 377977:26b6c3c4a181
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Apr 25 23:16:50 2022 +0000

description:
uchardet: no -Wl,--version-script on SunOS

diffstat:

 textproc/uchardet/Makefile                        |   4 +++-
 textproc/uchardet/distinfo                        |   3 ++-
 textproc/uchardet/patches/patch-src_symbols.cmake |  16 ++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 320b31d75355 -r 26b6c3c4a181 textproc/uchardet/Makefile
--- a/textproc/uchardet/Makefile        Mon Apr 25 22:53:52 2022 +0000
+++ b/textproc/uchardet/Makefile        Mon Apr 25 23:16:50 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/06/09 13:53:00 nia Exp $
+# $NetBSD: Makefile,v 1.2 2022/04/25 23:16:50 tnn Exp $
 
 DISTNAME=      uchardet-0.0.7
 CATEGORIES=    textproc
@@ -20,4 +20,6 @@
 
 PKGCONFIG_OVERRIDE+=   uchardet.pc.in
 
+BUILDLINK_TRANSFORM.SunOS+=    rm:-Wl,--version-script=${WRKSRC}/src/version.script
+
 .include "../../mk/bsd.pkg.mk"
diff -r 320b31d75355 -r 26b6c3c4a181 textproc/uchardet/distinfo
--- a/textproc/uchardet/distinfo        Mon Apr 25 22:53:52 2022 +0000
+++ b/textproc/uchardet/distinfo        Mon Apr 25 23:16:50 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 11:23:36 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/04/25 23:16:50 tnn Exp $
 
 BLAKE2s (uchardet-0.0.7.tar.xz) = fc2c0211fda0d205366ed3d257a2dbb2a46768b163f488c765dfda1671d3b70c
 SHA512 (uchardet-0.0.7.tar.xz) = ddb7b63dd09c1d9acbe620d86217e583d9aa5340780ab4010ec9faa4fd331498859d5efa7829bf8847da89325accf8f7304b51d410210178fc1ffa6658064a6f
 Size (uchardet-0.0.7.tar.xz) = 215492 bytes
+SHA1 (patch-src_symbols.cmake) = b0bfe9c32ce33037d50b2ffb7b94e0b787855601
diff -r 320b31d75355 -r 26b6c3c4a181 textproc/uchardet/patches/patch-src_symbols.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/uchardet/patches/patch-src_symbols.cmake Mon Apr 25 23:16:50 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_symbols.cmake,v 1.1 2022/04/25 23:16:50 tnn Exp $
+
+Need to patch this to avoid cwrappers splitting -Wl,,
+Otherwise BUILDLINK_TRANSFORM cannot catch it.
+
+--- src/symbols.cmake.orig     2020-04-23 09:48:58.000000000 +0000
++++ src/symbols.cmake
+@@ -24,7 +24,7 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL G
+       set(_version_script "${CMAKE_CURRENT_BINARY_DIR}/version.script")
+       file(WRITE ${_version_script} "${_symbols}\n")
+ 
+-      set(LINK_FLAGS "${LINK_FLAGS} -Wl,--version-script,\"${_version_script}\"")
++      set(LINK_FLAGS "${LINK_FLAGS} -Wl,--version-script=\"${_version_script}\"")
+ endif (APPLE)
+ 
+ set_target_properties(



Home | Main Index | Thread Index | Old Index