pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/doomlegacy



Module Name:    pkgsrc
Committed By:   micha
Date:           Mon Jun 15 10:32:53 UTC 2020

Modified Files:
        pkgsrc/games/doomlegacy: Makefile distinfo
Added Files:
        pkgsrc/games/doomlegacy/patches: patch-src_mserv.c

Log Message:
games/doomlegacy: Build fix for Solaris

Use native inet_aton() on Solaris.
Solaris has inet_aton() in libresolv since version 2.6 from 1997.

No revision bump because this only affects the Solaris build that was
broken before.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/games/doomlegacy/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/games/doomlegacy/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/doomlegacy/patches/patch-src_mserv.c

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

Modified files:

Index: pkgsrc/games/doomlegacy/Makefile
diff -u pkgsrc/games/doomlegacy/Makefile:1.5 pkgsrc/games/doomlegacy/Makefile:1.6
--- pkgsrc/games/doomlegacy/Makefile:1.5        Wed Jun 10 15:35:02 2020
+++ pkgsrc/games/doomlegacy/Makefile    Mon Jun 15 10:32:52 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2020/06/10 15:35:02 micha Exp $
+# $NetBSD: Makefile,v 1.6 2020/06/15 10:32:52 micha Exp $
 
 VERS=                  1.48.4
 PKGNAME=               doomlegacy-${VERS}
@@ -37,6 +37,7 @@ MAKE_FLAGS+=          OS=MAC
 # Other Unix (should work for GNU/Linux, OpenBSD and SunOS)
 MAKE_FLAGS+=           OS=LINUX
 CFLAGS.SunOS+=         -DSOLARIS
+LDFLAGS.SunOS+=                -lresolv
 .endif
 
 .if ${MACHINE_ENDIAN} == "big"

Index: pkgsrc/games/doomlegacy/distinfo
diff -u pkgsrc/games/doomlegacy/distinfo:1.4 pkgsrc/games/doomlegacy/distinfo:1.5
--- pkgsrc/games/doomlegacy/distinfo:1.4        Wed Jun 10 15:35:02 2020
+++ pkgsrc/games/doomlegacy/distinfo    Mon Jun 15 10:32:52 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2020/06/10 15:35:02 micha Exp $
+$NetBSD: distinfo,v 1.5 2020/06/15 10:32:52 micha Exp $
 
 SHA1 (doomlegacy_1.48.4_common.zip) = 14aed4c0091e8c61f46a2303f9316659ab6c0483
 RMD160 (doomlegacy_1.48.4_common.zip) = cca61af6bdda1003032ee117129e07596c8bbfcf
@@ -12,6 +12,7 @@ SHA1 (patch-src_Makefile) = 65a6380a5d11
 SHA1 (patch-src_am__map.c) = 647bcba2374cfa7038646e0c053636b43caaf33a
 SHA1 (patch-src_doomdata.h) = 2fd95b5db154b05ba88597b20c45146339db4622
 SHA1 (patch-src_dstrings.c) = e1fc8bdcb83efa18690d95c56e3ea7c94a388a50
+SHA1 (patch-src_mserv.c) = cf90e57287523cc1d27c44a575008b078b195522
 SHA1 (patch-src_p__local.h) = e429f2ce5d60dd538bc5e796847b53ae72604b33
 SHA1 (patch-src_p__setup.c) = c3766f924b05655b8d9d17d4686dde9a83239e0a
 SHA1 (patch-src_r__defs.h) = 9211ae6db72f0288f38449b18c8c252f42686405

Added files:

Index: pkgsrc/games/doomlegacy/patches/patch-src_mserv.c
diff -u /dev/null pkgsrc/games/doomlegacy/patches/patch-src_mserv.c:1.1
--- /dev/null   Mon Jun 15 10:32:53 2020
+++ pkgsrc/games/doomlegacy/patches/patch-src_mserv.c   Mon Jun 15 10:32:52 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_mserv.c,v 1.1 2020/06/15 10:32:52 micha Exp $
+
+Use native inet_aton() on Solaris.
+
+--- src/mserv.c.orig   2020-05-10 22:05:17.000000000 +0000
++++ src/mserv.c
+@@ -210,7 +210,9 @@ struct Copy_CVarMS_t
+ #define close closesocket
+ #endif
+ 
+-#if defined( WIN32) || defined( __OS2__) || defined( SOLARIS)
++// For pkgsrc: Use native inet_aton() on Solaris
++// Solaris has inet_aton() in libresolv since version 2.6 from 1997
++#if defined( WIN32) || defined( __OS2__) // || defined( SOLARIS)
+ // it seems windows doesn't define that... maybe some other OS? OS/2
+ static inline
+ int inet_aton(const char *hostname,



Home | Main Index | Thread Index | Old Index