diff options
author | 2016-08-02 10:43:37 -0400 | |
---|---|---|
committer | 2016-08-02 10:43:53 -0400 | |
commit | ece7f4be67e6d3cd3c75bee6ca1db73b12efd232 (patch) | |
tree | 6e639e4c42c024841ac6fc51f61cacd57d51406b /app-text/convertlit/files | |
parent | app-office/lotus-notes: Remove last-rited pkg, #583846 (diff) | |
download | gentoo-ece7f4be67e6d3cd3c75bee6ca1db73b12efd232.tar.gz gentoo-ece7f4be67e6d3cd3c75bee6ca1db73b12efd232.tar.bz2 gentoo-ece7f4be67e6d3cd3c75bee6ca1db73b12efd232.zip |
app-text/convertlit: new revision fixing -Wformat-security warnings.
Gentoo-Bug: 521246
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-text/convertlit/files')
-rw-r--r-- | app-text/convertlit/files/convertlit-1.8-respectflags-r1.patch | 28 | ||||
-rw-r--r-- | app-text/convertlit/files/fix-Wformat-security-warnings.patch | 34 |
2 files changed, 62 insertions, 0 deletions
diff --git a/app-text/convertlit/files/convertlit-1.8-respectflags-r1.patch b/app-text/convertlit/files/convertlit-1.8-respectflags-r1.patch new file mode 100644 index 000000000000..faedfa0a30a5 --- /dev/null +++ b/app-text/convertlit/files/convertlit-1.8-respectflags-r1.patch @@ -0,0 +1,28 @@ +Index: clit18/Makefile +=================================================================== +--- a/clit18/Makefile ++++ b/clit18/Makefile +@@ -1,9 +1,9 @@ + all: clit
+
+-CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I .
++CFLAGS+=-funsigned-char -I ../lib -I ../lib/des -I .
+ clean:
+ rm -f *.o clit
+
+ clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a
+- gcc -o clit $^ ../libtommath-0.30/libtommath.a
++ $(CC) $(LDFLAGS) -o clit $^ -ltommath
+
+Index: lib/Makefile +=================================================================== +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -1,6 +1,6 @@ + all: openclit.a
+
+-CFLAGS=-O3 -Wall -Ides -Isha -Inewlzx -I.
++CFLAGS+=-Ides -Isha -Inewlzx -I.
+ clean:
+ rm -f *.o openclit.a des/*.o lzx/*.o sha/*.o
+
diff --git a/app-text/convertlit/files/fix-Wformat-security-warnings.patch b/app-text/convertlit/files/fix-Wformat-security-warnings.patch new file mode 100644 index 000000000000..78410a960f78 --- /dev/null +++ b/app-text/convertlit/files/fix-Wformat-security-warnings.patch @@ -0,0 +1,34 @@ +From 79ab07db8d91b6c6e0c36358c8030893c28510ba Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Tue, 2 Aug 2016 10:32:53 -0400 +Subject: [PATCH 1/1] clit.c: fix -Wformat-security warnings. + +Two uses of printf() in clit.c were triggering -Wformat-security +warnings due to a missing "%s" format string. This was causing +compilation to fail with -Werror=format-security, so they have +been fixed. + +Gentoo-Bug: 521246 +--- + clit18/clit.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/clit18/clit.c b/clit18/clit.c +index c13a75d..48b749f 100644 +--- a/clit18/clit.c ++++ b/clit18/clit.c +@@ -125,9 +125,9 @@ int main(int argc, char ** argv) + dir_program[i+1] = '\0'; break;
+ }
+ }
+- printf(sTitle);
++ printf("%s", sTitle);
+ if (argc < 3) {
+- printf(sUsage);
++ printf("%s", sUsage);
+ return -1;
+ }
+ base = 1;
+-- +2.7.3 + |