Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/ajbsp games/ajbsp: Build fix for SunOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d07449ca55b
branches:  trunk
changeset: 435975:2d07449ca55b
user:      micha <micha%pkgsrc.org@localhost>
date:      Wed Jul 22 10:25:24 2020 +0000

description:
games/ajbsp: Build fix for SunOS

Remove nonportable strip option "--strip-unneeded".
POSIX strip doesn't support options.

Bump PKGREVISION because the different strip algorithm affects platforms
with support for "--strip-unneeded".

diffstat:

 games/ajbsp/Makefile               |   3 ++-
 games/ajbsp/distinfo               |   4 ++--
 games/ajbsp/patches/patch-Makefile |  19 ++++++++++++++++---
 3 files changed, 20 insertions(+), 6 deletions(-)

diffs (70 lines):

diff -r bc15d90d1a34 -r 2d07449ca55b games/ajbsp/Makefile
--- a/games/ajbsp/Makefile      Wed Jul 22 10:19:45 2020 +0000
+++ b/games/ajbsp/Makefile      Wed Jul 22 10:25:24 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2020/05/04 16:12:48 micha Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/22 10:25:24 micha Exp $
 
 DISTNAME=      ajbsp-v1.01
 PKGNAME=       ${DISTNAME:S/v//}
+PKGREVISION=   1
 CATEGORIES=    games
 MASTER_SITES=  https://gitlab.com/andwj/ajbsp/-/archive/v${PKGVERSION_NOREV}/
 
diff -r bc15d90d1a34 -r 2d07449ca55b games/ajbsp/distinfo
--- a/games/ajbsp/distinfo      Wed Jul 22 10:19:45 2020 +0000
+++ b/games/ajbsp/distinfo      Wed Jul 22 10:25:24 2020 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.1 2020/05/04 16:12:48 micha Exp $
+$NetBSD: distinfo,v 1.2 2020/07/22 10:25:24 micha Exp $
 
 SHA1 (ajbsp-v1.01.tar.gz) = 69a9ebe35c840a69c5c14b2368a5e3f1d75a7b0a
 RMD160 (ajbsp-v1.01.tar.gz) = 6943aed9fb3bf047ceafc0bf35cbf610b51fa612
 SHA512 (ajbsp-v1.01.tar.gz) = a554cd11f95afe351769a78878b8717354750dc2165b8b4f2ab37cf92125aa058c4b08d0e4df5e7c82a9b0c0be578f12bbdf03df8c620295449982271544cba9
 Size (ajbsp-v1.01.tar.gz) = 77251 bytes
-SHA1 (patch-Makefile) = de90c080bb28493420b6f269b333acac3e94426f
+SHA1 (patch-Makefile) = a53066b6ada4271c709e9d69f2038819a2d47158
diff -r bc15d90d1a34 -r 2d07449ca55b games/ajbsp/patches/patch-Makefile
--- a/games/ajbsp/patches/patch-Makefile        Wed Jul 22 10:19:45 2020 +0000
+++ b/games/ajbsp/patches/patch-Makefile        Wed Jul 22 10:25:24 2020 +0000
@@ -1,8 +1,11 @@
-$NetBSD: patch-Makefile,v 1.1 2020/05/04 16:12:48 micha Exp $
+$NetBSD: patch-Makefile,v 1.2 2020/07/22 10:25:24 micha Exp $
 
 Use PREFIX and PKGMANDIR from pkgsrc.
 Honor CXXFLAGS and LDFLAGS from pkgsrc.
 Don't set root owner on install.
+Remove nonportable strip option "--strip-unneeded".
+POSIX strip doesn't support options:
+https://pubs.opengroup.org/onlinepubs/9699919799/utilities/strip.html
 
 --- Makefile.orig      2018-06-19 05:23:16.000000000 +0000
 +++ Makefile
@@ -17,7 +20,17 @@
  
  OBJ_DIR=obj_linux
  
-@@ -25,9 +25,9 @@ STRIP_FLAGS=--strip-unneeded
+@@ -18,16 +18,18 @@ OBJ_DIR=obj_linux
+ 
+ WARNINGS=-Wall -Wextra -Wshadow -Wno-unused-parameter
+ OPTIMISE=-O2 -fno-strict-aliasing -fwrapv -fno-exceptions -fno-rtti
+-STRIP_FLAGS=--strip-unneeded
++# pkgsrc: "--strip-unneeded" is not supported on all pkgsrc architectures
++#STRIP_FLAGS= --strip-unneeded
++STRIP_FLAGS=
+ 
+ 
+ #--- Internal stuff from here -----------------------------------
  
  MAN_PAGE=$(PROGRAM).6
  
@@ -29,7 +42,7 @@
  # LDFLAGS=-static
  
  # I needed this when using -m32 and -static:
-@@ -77,9 +77,9 @@ stripped: all
+@@ -77,9 +79,9 @@ stripped: all
  
  install: stripped
        install -d -m 755 $(DESTDIR)$(PREFIX)/bin



Home | Main Index | Thread Index | Old Index