pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/luatex Fix -Wreserved-user-defined-literal failu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4abe8a9880fe
branches:  trunk
changeset: 366973:4abe8a9880fe
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Aug 21 10:15:21 2017 +0000

description:
Fix -Wreserved-user-defined-literal failure using patch from Gentoo.

diffstat:

 print/luatex/distinfo                                             |   3 +-
 print/luatex/patches/patch-texk_web2c_luatexdir_image_pdftoepdf.w |  19 ++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 76bd78b17521 -r 4abe8a9880fe print/luatex/distinfo
--- a/print/luatex/distinfo     Mon Aug 21 09:19:45 2017 +0000
+++ b/print/luatex/distinfo     Mon Aug 21 10:15:21 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2017/06/20 20:50:50 markd Exp $
+$NetBSD: distinfo,v 1.25 2017/08/21 10:15:21 jperkin Exp $
 
 SHA1 (texlive-20170524-source.tar.xz) = 1c1383ddb1b871c6b8ce49a4ae3c1a33d454a7b6
 RMD160 (texlive-20170524-source.tar.xz) = a8430c19fe1727cf308fe03e5838105260c0d71e
@@ -7,3 +7,4 @@
 SHA1 (patch-ac) = 1ee83833a03eace2eada892130ddb2198e829f3d
 SHA1 (patch-libs_luajit_LuaJIT-src_src_host_buildvm__asm.c) = 34fa742ed696f97df637c5086bf1faf3d718cb69
 SHA1 (patch-libs_luajit_LuaJIT-src_src_vm__x86.dasc) = 491d33adbbaab8b2b81a65a8d7ba30aee775b75f
+SHA1 (patch-texk_web2c_luatexdir_image_pdftoepdf.w) = 6f1e5586aa013dc819a715467ef4a120099915b3
diff -r 76bd78b17521 -r 4abe8a9880fe print/luatex/patches/patch-texk_web2c_luatexdir_image_pdftoepdf.w
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/luatex/patches/patch-texk_web2c_luatexdir_image_pdftoepdf.w Mon Aug 21 10:15:21 2017 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-texk_web2c_luatexdir_image_pdftoepdf.w,v 1.1 2017/08/21 10:15:22 jperkin Exp $
+
+Avoid -Wreserved-user-defined-literal failures by using newlines.
+
+--- texk/web2c/luatexdir/image/pdftoepdf.w.orig        2016-11-25 18:09:14.000000000 +0000
++++ texk/web2c/luatexdir/image/pdftoepdf.w
+@@ -71,7 +71,11 @@ static char *get_file_checksum(const cha
+         ck = (char *) malloc(PDF_CHECKSUM_SIZE);
+         if (ck == NULL)
+             formatted_error("pdf inclusion","out of memory while processing '%s'", a);
+-        snprintf(ck, PDF_CHECKSUM_SIZE, "%" PRIu64 "_%" PRIu64, (uint64_t) size,(uint64_t) mtime);
++        snprintf(ck, PDF_CHECKSUM_SIZE, "%"
++PRIu64
++"_%"
++PRIu64
++, (uint64_t) size,(uint64_t) mtime);
+    } else {
+         switch (fe) {
+             case FE_FAIL:



Home | Main Index | Thread Index | Old Index