pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/guile22 guile22: Use correct mmap permissions for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd95412f87fe
branches:  trunk
changeset: 373710:bd95412f87fe
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jan 08 22:37:08 2018 +0000

description:
guile22: Use correct mmap permissions for later PROT_WRITE mprotect.
Revert paxctl hack. Bump revision.

diffstat:

 lang/guile22/Makefile                           |   4 ++--
 lang/guile22/distinfo                           |   4 ++--
 lang/guile22/patches/patch-libguile_Makefile.in |  15 ---------------
 lang/guile22/patches/patch-libguile_loader.c    |  13 +++++++++++++
 4 files changed, 17 insertions(+), 19 deletions(-)

diffs (63 lines):

diff -r aa86116484eb -r bd95412f87fe lang/guile22/Makefile
--- a/lang/guile22/Makefile     Mon Jan 08 22:11:06 2018 +0000
+++ b/lang/guile22/Makefile     Mon Jan 08 22:37:08 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2018/01/08 10:39:45 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2018/01/08 22:37:08 joerg Exp $
 
 DISTNAME=      guile-2.2.3
 PKGNAME=       ${DISTNAME:S/guile/guile22/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    lang
 MASTER_SITES=  ftp://ftp.gnu.org/gnu/guile/
 
diff -r aa86116484eb -r bd95412f87fe lang/guile22/distinfo
--- a/lang/guile22/distinfo     Mon Jan 08 22:11:06 2018 +0000
+++ b/lang/guile22/distinfo     Mon Jan 08 22:37:08 2018 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2018/01/08 10:39:45 wiz Exp $
+$NetBSD: distinfo,v 1.4 2018/01/08 22:37:08 joerg Exp $
 
 SHA1 (guile-2.2.3.tar.gz) = b80fac5002e8725b59fb65a8b049ff6337d045c9
 RMD160 (guile-2.2.3.tar.gz) = 62d71904c228adc4fda0bfc752bf7a01f69c5663
 SHA512 (guile-2.2.3.tar.gz) = 31df17d28177badf63e1eb0d0d64e6a4d2abe64d4d5e69d8ff33a24dfb10abd25109ea9abfa86f5ff303b43665eb5b8127927f683f3b16139c5b3dc99f06f6fd
 Size (guile-2.2.3.tar.gz) = 17266587 bytes
-SHA1 (patch-libguile_Makefile.in) = d948162124a4263d3185fe1bcf8e90f4930d161c
+SHA1 (patch-libguile_loader.c) = ec424d2c3430e82ec425f9436ee50c871aaead4c
diff -r aa86116484eb -r bd95412f87fe lang/guile22/patches/patch-libguile_Makefile.in
--- a/lang/guile22/patches/patch-libguile_Makefile.in   Mon Jan 08 22:11:06 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-libguile_Makefile.in,v 1.1 2018/01/08 10:39:45 wiz Exp $
-
-Fix build on NetBSD>=8.
-
---- libguile/Makefile.in.orig  2017-11-06 09:12:56.000000000 +0000
-+++ libguile/Makefile.in
-@@ -2444,6 +2444,8 @@ clean-noinstPROGRAMS:
- guile$(EXEEXT): $(guile_OBJECTS) $(guile_DEPENDENCIES) $(EXTRA_guile_DEPENDENCIES) 
-       @rm -f guile$(EXEEXT)
-       $(AM_V_CCLD)$(guile_LINK) $(guile_OBJECTS) $(guile_LDADD) $(LIBS)
-+      if [ `uname -s` = "NetBSD" ]; then paxctl +m .libs/guile$(EXEEXT); fi
-+
- install-binSCRIPTS: $(bin_SCRIPTS)
-       @$(NORMAL_INSTALL)
-       @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
diff -r aa86116484eb -r bd95412f87fe lang/guile22/patches/patch-libguile_loader.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/guile22/patches/patch-libguile_loader.c      Mon Jan 08 22:37:08 2018 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-libguile_loader.c,v 1.1 2018/01/08 22:37:08 joerg Exp $
+
+--- libguile/loader.c.orig     2018-01-08 16:21:04.790894906 +0000
++++ libguile/loader.c
+@@ -484,7 +484,7 @@ map_file_contents (int fd, size_t len, i
+   char *data;
+ 
+ #ifdef HAVE_SYS_MMAN_H
+-  data = mmap (NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
++  data = mmap (NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
+   if (data == MAP_FAILED)
+     SCM_SYSERROR;
+   *is_read_only = 1;



Home | Main Index | Thread Index | Old Index