Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Florian Franzmann (4ab3851d2e6294812088b5079c13bf29dad9e40f)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Florian Franzmann <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Florian Franzmann (4ab3851d2e6294812088b5079c13bf29dad9e40f)
  • Date: Sat, 14 Oct 2017 22:39:01 +0000

GIT changes to master grimoire by Florian Franzmann
<siflfran AT hawo.stw.uni-erlangen.de>:

utils/reptyr/0001-gcc-7.patch | 35 +++++++++++++++++++++++++++++++++++
utils/reptyr/HISTORY | 3 +++
utils/reptyr/PRE_BUILD | 4 ++++
3 files changed, 42 insertions(+)

New commits:
commit 4ab3851d2e6294812088b5079c13bf29dad9e40f
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

utils/reptyr: fix build with gcc 7

diff --git a/utils/reptyr/0001-gcc-7.patch b/utils/reptyr/0001-gcc-7.patch
new file mode 100644
index 0000000..6294cd5
--- /dev/null
+++ b/utils/reptyr/0001-gcc-7.patch
@@ -0,0 +1,35 @@
+From 2d610a715e14bc2960a636cc2f35b32edabb0bb6 Mon Sep 17 00:00:00 2001
+From: Florian Franzmann <bwlf AT bandrate.org>
+Date: Sun, 15 Oct 2017 00:36:45 +0200
+Subject: [PATCH] gcc 7
+
+---
+ Makefile | 2 +-
+ platform/linux/linux.c | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 0fb5b0d..f824484 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,4 @@
+-override CFLAGS+=-Wall -Werror -D_GNU_SOURCE -g
++override CFLAGS+=-Wall -Werror -D_GNU_SOURCE -Wno-error=format-truncation
+ OBJS=reptyr.o reallocarray.o attach.o
+ UNAME_S := $(shell uname -s)
+ ifeq ($(UNAME_S),Linux)
+diff --git a/platform/linux/linux.c b/platform/linux/linux.c
+index 45a6ff1..7d7aafb 100644
+--- a/platform/linux/linux.c
++++ b/platform/linux/linux.c
+@@ -27,6 +27,7 @@
+ #include "../../reptyr.h"
+ #include "../../ptrace.h"
+ #include <stdint.h>
++#include <sys/sysmacros.h>
+
+ int parse_proc_stat(int statfd, struct proc_stat *out) {
+ char buf[1024];
+--
+2.14.2
+
diff --git a/utils/reptyr/HISTORY b/utils/reptyr/HISTORY
index 55e2185..23d21e2 100644
--- a/utils/reptyr/HISTORY
+++ b/utils/reptyr/HISTORY
@@ -1,2 +1,5 @@
+2017-10-15 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * PRE_BUILD, 0001-gcc-7.patch: fix build with gcc 7
+
2017-10-14 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS, BUILD, INSTALL: created spell, version 0.6.2
diff --git a/utils/reptyr/PRE_BUILD b/utils/reptyr/PRE_BUILD
new file mode 100755
index 0000000..0924612
--- /dev/null
+++ b/utils/reptyr/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+
+cd "$SOURCE_DIRECTORY" &&
+patch -p1 < "$SPELL_DIRECTORY/0001-gcc-7.patch"



  • [SM-Commit] GIT changes to master grimoire by Florian Franzmann (4ab3851d2e6294812088b5079c13bf29dad9e40f), Florian Franzmann, 10/14/2017

Archive powered by MHonArc 2.6.24.

Top of Page