pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/filerunner filerunner: Fix RELRO builds. Do not ma...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d9a0df6af787
branches: trunk
changeset: 375803:d9a0df6af787
user: nia <nia%pkgsrc.org@localhost>
date: Sun Mar 27 10:26:53 2022 +0000
description:
filerunner: Fix RELRO builds. Do not mandate -O3.
diffstat:
x11/filerunner/distinfo | 4 ++--
x11/filerunner/patches/patch-Makefile | 30 ++++++++++++++++++++++++++++++
x11/filerunner/patches/patch-aa | 15 ---------------
3 files changed, 32 insertions(+), 17 deletions(-)
diffs (68 lines):
diff -r 5711c00f3047 -r d9a0df6af787 x11/filerunner/distinfo
--- a/x11/filerunner/distinfo Sun Mar 27 08:11:35 2022 +0000
+++ b/x11/filerunner/distinfo Sun Mar 27 10:26:53 2022 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 11:33:48 nia Exp $
+$NetBSD: distinfo,v 1.10 2022/03/27 10:26:53 nia Exp $
BLAKE2s (FileRunner-2.5.1.tar.gz) = 7dbf2b69423ba302f4e94d828f284b8b632c16f81dfd2e5826b5c3d31e28a123
SHA512 (FileRunner-2.5.1.tar.gz) = 922740549af2c03be47dfcf7e29815d682eebe63f06f7aaebdfa576e0f7fcb596150e76aa2b032046c4cb1cff4aae836b3e4c4fc6ae56b25ca63684f7d75e25e
Size (FileRunner-2.5.1.tar.gz) = 122795 bytes
-SHA1 (patch-aa) = 3e929372fee6620c23022e5eaecd33830d9151f7
+SHA1 (patch-Makefile) = 83631302e9587df250f771e8deaa3394a62ec345
SHA1 (patch-ab) = 58bc890c640a9b58589e9fcdef7a9201f84f6e53
SHA1 (patch-ac) = fdef8612ff1ea187fbe26cb203f8f3f006032ef3
SHA1 (patch-ad) = cf7999d58ec441b03a3baa5d8097b26781bd00eb
diff -r 5711c00f3047 -r d9a0df6af787 x11/filerunner/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/filerunner/patches/patch-Makefile Sun Mar 27 10:26:53 2022 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-Makefile,v 1.1 2022/03/27 10:26:53 nia Exp $
+
+Make fewer assumptions.
+
+Avoid calling the linker directly, instead call it through
+CC. Honor LDFLAGS and allow the cwrappers to apply things
+like RELRO.
+
+--- Makefile.orig 2022-03-27 10:22:44.010550233 +0000
++++ Makefile
+@@ -1,14 +1,12 @@
+ # Change this if you have this stuff somewhere else.
+-TCLINC = /usr/local/lib/tcl8.0
+-TKINC = /usr/local/lib/tk8.0
+-X11INC = /usr/X11/include
++TCLINC = ${LOCALBASE}/include
++TKINC = ${LOCALBASE}/include
++X11INC = ${X11BASE}/include
+
+-CFLAGS = -D__FreeBSD__ -Wall -fPIC -O3 -I$(TCLINC) -I$(TKINC) -I$(X11INC)
+-
+-CC = gcc
++CFLAGS += -D__FreeBSD__ -Wall -fPIC -I$(TCLINC) -I$(TKINC) -I$(X11INC)
+
+ all: ext.so
+
+ ext.so: ext.o
+- ld -Bshareable -o ext.so ext.o
++ $(CC) $(LDFLAGS) -shared -o ext.so ext.o
+
diff -r 5711c00f3047 -r d9a0df6af787 x11/filerunner/patches/patch-aa
--- a/x11/filerunner/patches/patch-aa Sun Mar 27 08:11:35 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2000/08/31 17:40:48 jwise Exp $
-
---- Makefile.orig Tue Mar 24 11:24:06 1998
-+++ Makefile Tue Mar 24 11:25:50 1998
-@@ -1,7 +1,7 @@
- # Change this if you have this stuff somewhere else.
--TCLINC = /usr/local/lib/tcl8.0
--TKINC = /usr/local/lib/tk8.0
--X11INC = /usr/X11/include
-+TCLINC = ${LOCALBASE}/include
-+TKINC = ${LOCALBASE}/include
-+X11INC = ${X11BASE}/include
-
- CFLAGS = -D__FreeBSD__ -Wall -fPIC -O3 -I$(TCLINC) -I$(TKINC) -I$(X11INC)
-
Home |
Main Index |
Thread Index |
Old Index