pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/tiramisu tiramisu: Fix RELRO build properly (...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/530b327571bd
branches:  trunk
changeset: 768484:530b327571bd
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Oct 24 07:47:41 2021 +0000

description:
tiramisu: Fix RELRO build properly (honor CFLAGS/LDFLAGS).

diffstat:

 sysutils/tiramisu/Makefile               |   4 +---
 sysutils/tiramisu/distinfo               |   3 ++-
 sysutils/tiramisu/patches/patch-Makefile |  16 ++++++++++++++++
 3 files changed, 19 insertions(+), 4 deletions(-)

diffs (49 lines):

diff -r 35a5ee6c8c70 -r 530b327571bd sysutils/tiramisu/Makefile
--- a/sysutils/tiramisu/Makefile        Sun Oct 24 07:23:41 2021 +0000
+++ b/sysutils/tiramisu/Makefile        Sun Oct 24 07:47:41 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2021/10/23 19:28:35 pin Exp $
+# $NetBSD: Makefile,v 1.8 2021/10/24 07:47:41 nia Exp $
 
 DISTNAME=      tiramisu-2.0.20211019
 CATEGORIES=    sysutils
@@ -15,8 +15,6 @@
 
 MAKE_ENV+=             PREFIX=${PREFIX}
 
-CHECK_RELRO_SKIP+=     bin/tiramisu
-
 TOOL_DEPENDS+= vala-[0-9]*:../../lang/vala
 
 .include "../../devel/glib2/buildlink3.mk"
diff -r 35a5ee6c8c70 -r 530b327571bd sysutils/tiramisu/distinfo
--- a/sysutils/tiramisu/distinfo        Sun Oct 24 07:23:41 2021 +0000
+++ b/sysutils/tiramisu/distinfo        Sun Oct 24 07:47:41 2021 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2021/10/20 13:07:46 pin Exp $
+$NetBSD: distinfo,v 1.6 2021/10/24 07:47:41 nia Exp $
 
 RMD160 (tiramisu-2.0.20211019.tar.gz) = e9bca815a1727a7a652fa204c2450292ae617322
 SHA512 (tiramisu-2.0.20211019.tar.gz) = 47c2cbaa0619c6db6ef02c1c522133077d82e5f0498a3ffca87f94d625e2ecf74031279ac47f4b262f7cf444b3fc4bdc2dcfd92cee17b2d02a5f5f0fecb17186
 Size (tiramisu-2.0.20211019.tar.gz) = 3061568 bytes
+SHA1 (patch-Makefile) = f9495bbda84042e8bf4242bfbab645de86867ad8
diff -r 35a5ee6c8c70 -r 530b327571bd sysutils/tiramisu/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/tiramisu/patches/patch-Makefile  Sun Oct 24 07:47:41 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile,v 1.1 2021/10/24 07:47:41 nia Exp $
+
+We need valac to honor CFLAGS and LDFLAGS so pkgsrc hardening
+features are applied.
+
+--- Makefile.orig      2021-10-20 00:56:11.000000000 +0000
++++ Makefile
+@@ -13,7 +13,7 @@ LFLAGS   = `pkg-config --libs glib-2.0 g
+ all: $(TARGET)
+ 
+ $(TARGET): $(SRC)
+-      $(VALAC) $(IFLAGS) $(SRC) -o $(TARGET)
++      $(VALAC) --cc="cc $(CFLAGS) $(LDFLAGS)" $(IFLAGS) $(SRC) -o $(TARGET)
+ #     $(CC) $(CFLAGS) $(IFLAGS) $(SRC) $(LFLAGS) $(LDFLAGS) -o $(TARGET)
+ 
+ install: $(TARGET)



Home | Main Index | Thread Index | Old Index