pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/devilutionx



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat Sep 24 08:46:23 UTC 2022

Modified Files:
        pkgsrc/games/devilutionx: Makefile distinfo
Added Files:
        pkgsrc/games/devilutionx/patches: patch-CMakeLists.txt

Log Message:
devilutionx: Avoid forcing static linkage against libstdc++

Avoid mixing PIE and non-PIE code on aarch64, which results in a build
failure


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/games/devilutionx/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/games/devilutionx/distinfo
cvs rdiff -u -r0 -r1.3 pkgsrc/games/devilutionx/patches/patch-CMakeLists.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/devilutionx/Makefile
diff -u pkgsrc/games/devilutionx/Makefile:1.21 pkgsrc/games/devilutionx/Makefile:1.22
--- pkgsrc/games/devilutionx/Makefile:1.21      Sun Sep 11 12:51:38 2022
+++ pkgsrc/games/devilutionx/Makefile   Sat Sep 24 08:46:23 2022
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2022/09/11 12:51:38 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2022/09/24 08:46:23 nia Exp $
 
 DISTNAME=      devilutionx-1.2.1
-PKGREVISION=   5
+PKGREVISION=   6
 CATEGORIES=    games
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=diasurgical/}
 GITHUB_PROJECT=        devilutionX
@@ -12,6 +12,7 @@ COMMENT=      Port of the RPG Diablo for mode
 LICENSE=       unlicense
 
 WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+TOOL_DEPENDS=  dos2unix-[0-9]*:../../converters/dos2unix
 
 USE_CMAKE=     yes
 USE_TOOLS+=    pkg-config
@@ -32,6 +33,9 @@ INSTALLATION_DIRS+=   bin
 INSTALLATION_DIRS+=    share/applications
 INSTALLATION_DIRS+=    share/icons/hicolor/512x512/apps
 
+pre-patch:
+       dos2unix ${WRKSRC}/CMakeLists.txt
+
 pre-configure:
        ${MKDIR} -p ${WRKSRC}/build
 

Index: pkgsrc/games/devilutionx/distinfo
diff -u pkgsrc/games/devilutionx/distinfo:1.12 pkgsrc/games/devilutionx/distinfo:1.13
--- pkgsrc/games/devilutionx/distinfo:1.12      Tue Oct 26 10:43:53 2021
+++ pkgsrc/games/devilutionx/distinfo   Sat Sep 24 08:46:23 2022
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.12 2021/10/26 10:43:53 nia Exp $
+$NetBSD: distinfo,v 1.13 2022/09/24 08:46:23 nia Exp $
 
 BLAKE2s (devilutionx-1.2.1.tar.gz) = 38022f5b5025687f909001c7ea554ee2d6db1489bdd321fa1fac3749064f1168
 SHA512 (devilutionx-1.2.1.tar.gz) = 9327b127d0ad22d640b1a13fad9bfa00ba0fc512dd7ed362a9e84a80278d84634cd039cba7c98f15425715b11a35dc6ac07d75c816c3cbc818e6ab8c4437cf18
 Size (devilutionx-1.2.1.tar.gz) = 3573200 bytes
 SHA1 (patch-3rdParty_asio_include_asio_detail_impl_kqueue__reactor.ipp) = 1fdf31e70f72d4c4cadb76f64d06c3974e6f61d9
+SHA1 (patch-CMakeLists.txt) = 473f486534fc6d286ae04fe0d85502ee7a67d078

Added files:

Index: pkgsrc/games/devilutionx/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/games/devilutionx/patches/patch-CMakeLists.txt:1.3
--- /dev/null   Sat Sep 24 08:46:23 2022
+++ pkgsrc/games/devilutionx/patches/patch-CMakeLists.txt       Sat Sep 24 08:46:23 2022
@@ -0,0 +1,18 @@
+$NetBSD: patch-CMakeLists.txt,v 1.3 2022/09/24 08:46:23 nia Exp $
+
+Do not force libstdc++ to be linked statically, creates problems
+with PIE code.
+
+--- CMakeLists.txt.orig        2022-09-24 08:40:00.299506879 +0000
++++ CMakeLists.txt
+@@ -607,10 +607,6 @@ foreach(target devilution ${BIN_TARGET} 
+   target_compile_definitions(${target} PRIVATE ${def_list})
+ endforeach(target)
+ 
+-if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND NOT HAIKU AND NOT VITA)
+-  target_link_libraries(${BIN_TARGET} PUBLIC "$<$<NOT:$<CONFIG:Debug>>:-static-libgcc;-static-libstdc++>")
+-endif()
+-
+ if(WIN32)
+   target_link_libraries(${BIN_TARGET} PRIVATE wsock32 ws2_32 wininet)
+ 



Home | Main Index | Thread Index | Old Index