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

[texlive-bin] 01/05: fix gcc7 build errors



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository texlive-bin.

commit 7ad11c00551c7a0d1c6f0d91870efef368256f5b
Author: Norbert Preining <preining@debian.org>
Date:   Mon Aug 7 23:22:17 2017 +0900

    fix gcc7 build errors
---
 debian/patches/fix-gcc7-errors | 32 ++++++++++++++++++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/fix-gcc7-errors b/debian/patches/fix-gcc7-errors
new file mode 100644
index 0000000..9c99b43
--- /dev/null
+++ b/debian/patches/fix-gcc7-errors
@@ -0,0 +1,32 @@
+fix errors with gcc7
+patch by Dr. Werner Fink (from SuSE)
+See http://tug.org/pipermail/tex-live/2017-June/040192.html
+---
+ texk/web2c/luatexdir/luaffi/ctype.c |    4 ++++
+ texk/web2c/luatexdir/luaffi/ffi.h   |    2 +-
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+--- texlive-bin.orig/texk/web2c/luatexdir/luaffi/ctype.c
++++ texlive-bin/texk/web2c/luatexdir/luaffi/ctype.c
+@@ -245,6 +245,10 @@
+ 
+     lua_pop(L, 1); /* mt */
+     cd = (struct cdata*) lua_touserdata(L, idx);
++    if (!cd) {
++        lua_pushnil(L);
++        return NULL;
++    }
+     *ct = cd->type;
+     lua_getuservalue(L, idx);
+ 
+--- texlive-bin.orig/texk/web2c/luatexdir/luaffi/ffi.h
++++ texlive-bin/texk/web2c/luatexdir/luaffi/ffi.h
+@@ -370,7 +370,7 @@
+ #endif
+ struct cdata {
+     const struct ctype type
+-#ifdef __GNUC__
++#if 0 /* def __GNUC__ */
+       __attribute__ ((aligned(16)))
+ #endif
+       ;
diff --git a/debian/patches/series b/debian/patches/series
index 8cdf55e..65b6637 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -13,3 +13,4 @@ fix-mktexlsr-bashims
 disable-seetex-stdin-tests
 upupstream-xdvi-desktop-file
 mf-xt-fix-expose-events
+fix-gcc7-errors

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-bin.git


Reply to: