[Reproducible-commits] [texlive-bin] 12/16: fix building with format errors turned on
Reiner Herrmann
reiner at reiner-h.de
Sun Oct 18 13:00:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository texlive-bin.
commit 0e1348ae181aaba6919ed93d70b42b6c160af42b
Author: Norbert Preining <preining at debian.org>
Date: Tue Sep 22 18:19:47 2015 +0900
fix building with format errors turned on
---
debian/patches/fix-format-gcc-errors | 144 +++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 6 --
3 files changed, 145 insertions(+), 6 deletions(-)
diff --git a/debian/patches/fix-format-gcc-errors b/debian/patches/fix-format-gcc-errors
new file mode 100644
index 0000000..3fa9042
--- /dev/null
+++ b/debian/patches/fix-format-gcc-errors
@@ -0,0 +1,144 @@
+---
+ texk/ps2pk/objects.h | 2 +-
+ texk/web2c/cwebboot.cin | 2 +-
+ texk/web2c/cwebdir/common.c | 2 +-
+ texk/web2c/cwebdir/common.w | 2 +-
+ texk/web2c/cwebdir/cweave.w | 2 +-
+ texk/web2c/omegafonts/error_routines.c | 8 ++++----
+ texk/web2c/omegafonts/out_routines.c | 2 +-
+ texk/web2c/tiedir/tie.w | 4 ++--
+ utils/devnag/src/devnag.c | 2 +-
+ 9 files changed, 13 insertions(+), 13 deletions(-)
+
+--- texlive-bin.orig/texk/web2c/cwebdir/common.w
++++ texlive-bin/texk/web2c/cwebdir/common.w
+@@ -1180,7 +1180,7 @@
+ fatal(s,t)
+ char *s,*t;
+ {
+- if (*s) printf(s);
++ if (*s) printf("%s",s);
+ err_print(t);
+ history=fatal_message; exit(wrap_up());
+ }
+--- texlive-bin.orig/utils/devnag/src/devnag.c
++++ texlive-bin/utils/devnag/src/devnag.c
+@@ -2400,7 +2400,7 @@
+ void err_ill(const char *str) {
+ fprintf(stderr, "Error: illegal character(s) \"%s\" detected at line %d:\n",
+ str, linenumber);
+- fprintf(stderr, inbuf);
++ fprintf(stderr, "%s", inbuf);
+ exit(1);
+ }
+
+--- texlive-bin.orig/texk/web2c/cwebdir/common.c
++++ texlive-bin/texk/web2c/cwebdir/common.c
+@@ -1063,7 +1063,7 @@
+ fatal(s,t)
+ char*s,*t;
+ {
+-if(*s)printf(s);
++if(*s)printf("%s",s);
+ err_print(t);
+ history= fatal_message;exit(wrap_up());
+ }
+--- texlive-bin.orig/texk/web2c/cwebboot.cin
++++ texlive-bin/texk/web2c/cwebboot.cin
+@@ -1098,7 +1098,7 @@
+ fatal(const char*s,const char*t)
+ #line 1182 "cwebdir/common.w"
+ {
+-if(*s)printf(s);
++if(*s)printf("%s",s);
+ err_print(t);
+ history= fatal_message;exit(wrap_up());
+ }
+--- texlive-bin.orig/texk/web2c/cwebdir/cweave.w
++++ texlive-bin/texk/web2c/cwebdir/cweave.w
+@@ -1784,7 +1784,7 @@
+ print_cat(c) /* symbolic printout of a category */
+ eight_bits c;
+ {
+- printf(cat_name[c]);
++ printf("%s",cat_name[c]);
+ }
+
+ @ The token lists for translated \TEX/ output contain some special control
+--- texlive-bin.orig/texk/web2c/tiedir/tie.w
++++ texlive-bin/texk/web2c/tiedir/tie.w
+@@ -458,14 +458,14 @@
+
+ @^system dependencies@>
+ @d term_out stdout
+- at d print(a) fprintf(term_out,a) /* `|print|' means write on the terminal */
++ at d print(a) fprintf(term_out,"%s",a) /* `|print|' means write on the terminal */
+ @d print2(a,b) fprintf(term_out,a,b) /* same with two arguments */
+ @d print3(a,b,c) fprintf(term_out,a,b,c) /* same with three arguments */
+ @d print_c(v) fputc(v,term_out); /* print a single character */
+ @d new_line(v) fputc('\n',v) /* start new line */
+ @d term_new_line new_line(term_out)
+ /* start new line of the terminal */
+- at d print_ln(v) {fprintf(term_out,v);term_new_line;}
++ at d print_ln(v) {fprintf(term_out,"%s",v);term_new_line;}
+ /* `|print|' and then start new line */
+ @d print2_ln(a,b) {print2(a,b);term_new_line;} /* same with two arguments */
+ @d print3_ln(a,b,c) {print3(a,b,c);term_new_line;}
+--- texlive-bin.orig/texk/ps2pk/objects.h
++++ texlive-bin/texk/ps2pk/objects.h
+@@ -231,7 +231,7 @@
+ /*SHARED*/
+ /* NDW: personally, I want to see status and error messages! */
+ #define IfTrace0(condition,model) \
+- {if (condition) printf(model);}
++ {if (condition) printf("%s",model);}
+ #define IfTrace1(condition,model,arg0) \
+ {if (condition) printf(model,arg0);}
+ #define IfTrace2(condition,model,arg0,arg1) \
+--- texlive-bin.orig/texk/web2c/omegafonts/error_routines.c
++++ texlive-bin/texk/web2c/omegafonts/error_routines.c
+@@ -62,7 +62,7 @@
+ yyerror(const_string fmt)
+ {
+ fprintf(stderr, "line %d (parsing): ", line_number);
+- fprintf(stderr, fmt);
++ fprintf(stderr, "%s", fmt);
+ fprintf(stderr, "\n");
+ num_errors++;
+ }
+@@ -72,7 +72,7 @@
+ warning_0(const_string fmt)
+ {
+ fprintf(stderr, "line %d (warning): ", line_number);
+- fprintf(stderr, fmt);
++ fprintf(stderr, "%s", fmt);
+ fprintf(stderr, "\n");
+ }
+
+@@ -120,7 +120,7 @@
+ fatal_error_0(const_string fmt)
+ {
+ fprintf(stderr, "line %d (fatal): ", line_number);
+- fprintf(stderr, fmt);
++ fprintf(stderr, "%s", fmt);
+ fprintf(stderr, "\n");
+ exit(1);
+ }
+@@ -156,7 +156,7 @@
+ internal_error_0(const_string fmt)
+ {
+ fprintf(stderr, "line %d (internal): ", line_number);
+- fprintf(stderr, fmt);
++ fprintf(stderr, "%s", fmt);
+ fprintf(stderr, "\n");
+ exit(2);
+ }
+--- texlive-bin.orig/texk/web2c/omegafonts/out_routines.c
++++ texlive-bin/texk/web2c/omegafonts/out_routines.c
+@@ -368,5 +368,5 @@
+ void
+ out(const_string sval)
+ {
+- fprintf(file_output, sval);
++ fprintf(file_output, "%s", sval);
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 1d1d6b4..c650c12 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -17,3 +17,4 @@ upstream-svn38053-dvipdfmx-fix
upstream-svn38059-dvipdfmx-fix
upstream-svn38068-dvipdfmx-fix
upstream-svn38091-fix-pltotf-output
+fix-format-gcc-errors
diff --git a/debian/rules b/debian/rules
index 0fbd511..95819e6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,12 +4,6 @@
export SHELL=/bin/bash
export CONFIG_SHELL=/bin/sh
-# building texlive with hardening breaks due to too many warnings treated
-# as errors
-# DOES NOT WORK ... we need to turn of warning -> errors otherwise
-# tl does not compile - how???
-export DEB_BUILD_HARDENING=0
-
#
# the configure code already checks a lot, but it does not catch
# all cases. We have now two ways to test for where to build.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/texlive-bin.git
More information about the Reproducible-commits
mailing list