summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support')
-rw-r--r--meta-networking/recipes-support/ruli/files/0001-Fix-build-with-format-string-checks.patch33
-rw-r--r--meta-networking/recipes-support/ruli/ruli_0.36.bb6
2 files changed, 37 insertions, 2 deletions
diff --git a/meta-networking/recipes-support/ruli/files/0001-Fix-build-with-format-string-checks.patch b/meta-networking/recipes-support/ruli/files/0001-Fix-build-with-format-string-checks.patch
new file mode 100644
index 000000000..f8eb3ae67
--- /dev/null
+++ b/meta-networking/recipes-support/ruli/files/0001-Fix-build-with-format-string-checks.patch
@@ -0,0 +1,33 @@
1From 40848547abf592c8d29b85ef1346001514944435 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 17 Jun 2017 10:14:20 -0700
4Subject: [PATCH] Fix build with format string checks
5
6Fixes
7| ruli_addr.c:418:5: error: format not a string literal and no format arguments [-Werror=format-security]
8| return fprintf(out, inet_ntoa(addr->ipv4));
9| ^~~~~~
10
11Upstream-Status: Pending
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/ruli_addr.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/ruli_addr.c b/src/ruli_addr.c
19index 00d5d0d..f1eabae 100644
20--- a/src/ruli_addr.c
21+++ b/src/ruli_addr.c
22@@ -415,7 +415,7 @@ int ruli_in_print(FILE *out, const _ruli_addr *addr, int family)
23 {
24 switch (family) {
25 case PF_INET:
26- return fprintf(out, inet_ntoa(addr->ipv4));
27+ return fprintf(out, "%s", inet_ntoa(addr->ipv4));
28
29 case PF_INET6:
30 return ruli_inet6_print(out, &addr->ipv6);
31--
322.13.1
33
diff --git a/meta-networking/recipes-support/ruli/ruli_0.36.bb b/meta-networking/recipes-support/ruli/ruli_0.36.bb
index a455e1f9b..b41313090 100644
--- a/meta-networking/recipes-support/ruli/ruli_0.36.bb
+++ b/meta-networking/recipes-support/ruli/ruli_0.36.bb
@@ -7,8 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
7 7
8DEPENDS = "liboop" 8DEPENDS = "liboop"
9 9
10SRC_URI += "http://download.savannah.gnu.org/releases/ruli/ruli_${PV}.orig.tar.gz \ 10SRC_URI = "http://download.savannah.gnu.org/releases/ruli/ruli_${PV}.orig.tar.gz \
11 file://Makefile.patch" 11 file://Makefile.patch \
12 file://0001-Fix-build-with-format-string-checks.patch \
13 "
12 14
13SRC_URI[md5sum] = "e73fbfdeadddb68a703a70cea5271468" 15SRC_URI[md5sum] = "e73fbfdeadddb68a703a70cea5271468"
14SRC_URI[sha256sum] = "11d32def5b514748fbd9ea8c88049ae99e1bb358efc74eb91a4d268a3999dbfa" 16SRC_URI[sha256sum] = "11d32def5b514748fbd9ea8c88049ae99e1bb358efc74eb91a4d268a3999dbfa"