* [meta-networking][PATCH 1/3] linux-atm: Fix build with hardening flags
@ 2017-06-19 1:05 Khem Raj
2017-06-19 1:05 ` [meta-oe][PATCH 2/3] sqlite: " Khem Raj
2017-06-19 1:05 ` [meta-oe][PATCH 3/3] xmlstarlet: Update to 1.6.1 Khem Raj
0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2017-06-19 1:05 UTC (permalink / raw)
To: openembedded-devel
Port to build on musl while here
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../0001-ttcp-Add-printf-format-string.patch | 34 ++++++++++++++++++++
...0002-sigd-Replace-on_exit-API-with-atexit.patch | 30 ++++++++++++++++++
...p-old-hack-to-compile-with-very-old-glibc.patch | 37 ++++++++++++++++++++++
.../recipes-support/linux-atm/linux-atm_2.5.2.bb | 3 ++
4 files changed, 104 insertions(+)
create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/0001-ttcp-Add-printf-format-string.patch
create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/0002-sigd-Replace-on_exit-API-with-atexit.patch
create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/0001-ttcp-Add-printf-format-string.patch b/meta-networking/recipes-support/linux-atm/linux-atm/0001-ttcp-Add-printf-format-string.patch
new file mode 100644
index 000000000..87e7dc3c6
--- /dev/null
+++ b/meta-networking/recipes-support/linux-atm/linux-atm/0001-ttcp-Add-printf-format-string.patch
@@ -0,0 +1,34 @@
+From b83fd54584fabd5d24f6645b4a3cf345c9d2020d Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 17 Jun 2017 16:11:59 -0700
+Subject: [PATCH 1/3] ttcp: Add printf format string
+
+Fixes compiler warnings when format security is enabled
+
+| ../../../linux-atm-2.5.2/src/test/ttcp.c:666:21: error: format not a string literal and no format arguments [-Werror=format-security]
+| fprintf(stderr, Usage);
+| ^~~~~
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/test/ttcp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/test/ttcp.c b/src/test/ttcp.c
+index acb9185..337cee5 100644
+--- a/src/test/ttcp.c
++++ b/src/test/ttcp.c
+@@ -663,7 +663,7 @@ int no_check = 0;
+ exit(0);
+
+ usage:
+- fprintf(stderr, Usage);
++ fprintf(stderr, "%s", Usage);
+ exit(1);
+ }
+
+--
+2.13.1
+
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/0002-sigd-Replace-on_exit-API-with-atexit.patch b/meta-networking/recipes-support/linux-atm/linux-atm/0002-sigd-Replace-on_exit-API-with-atexit.patch
new file mode 100644
index 000000000..ce061231c
--- /dev/null
+++ b/meta-networking/recipes-support/linux-atm/linux-atm/0002-sigd-Replace-on_exit-API-with-atexit.patch
@@ -0,0 +1,30 @@
+From 27fa80dc8045e71c30dd2abea835206d5c8f6c71 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 17 Jun 2017 16:18:56 -0700
+Subject: [PATCH 2/3] sigd: Replace on_exit() API with atexit()
+
+on_exit is not universally available
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/sigd/atmsigd.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/sigd/atmsigd.c b/src/sigd/atmsigd.c
+index 52e41c7..b766606 100644
+--- a/src/sigd/atmsigd.c
++++ b/src/sigd/atmsigd.c
+@@ -517,7 +517,7 @@ int main(int argc,char **argv)
+ exit(0);
+ }
+ }
+- (void) on_exit(trace_on_exit,NULL);
++ atexit(trace_on_exit);
+ poll_loop();
+ close_all();
+ for (sig = entities; sig; sig = sig->next) stop_saal(&sig->saal);
+--
+2.13.1
+
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch b/meta-networking/recipes-support/linux-atm/linux-atm/0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch
new file mode 100644
index 000000000..0302286dc
--- /dev/null
+++ b/meta-networking/recipes-support/linux-atm/linux-atm/0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch
@@ -0,0 +1,37 @@
+From fe954b2fb17d813aaab3e926cee76144314a115a Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 17 Jun 2017 16:22:55 -0700
+Subject: [PATCH 3/3] mpoad: Drop old hack to compile with very old glibc
+
+Use poll.h instead of sys/poll.h
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/mpoad/io.c | 9 +--------
+ 1 file changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/src/mpoad/io.c b/src/mpoad/io.c
+index 69900c2..8d1433f 100644
+--- a/src/mpoad/io.c
++++ b/src/mpoad/io.c
+@@ -10,14 +10,7 @@
+ #include <errno.h>
+ #include <sys/ioctl.h>
+ #include <sys/param.h> /* for OPEN_MAX */
+-#if __GLIBC__ >= 2
+-#include <sys/poll.h>
+-#else /* ugly hack to make it compile on RH 4.2 - WA */
+-#include <syscall.h>
+-#include <linux/poll.h>
+-#define SYS_poll 168
+-_syscall3(int,poll,struct pollfd *,ufds,unsigned int,nfds,int,timeout);
+-#endif
++#include <poll.h>
+ #include <atm.h>
+ #include <linux/types.h>
+ #include <linux/atmioc.h>
+--
+2.13.1
+
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
index 6ab8b07d0..9fce4fba6 100644
--- a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
+++ b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
@@ -11,6 +11,9 @@ SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${P
file://link-with-ldflags.patch \
file://install-from-buildir.patch \
file://0001-fix-compile-error-with-linux-kernel-v4.8.patch \
+ file://0001-ttcp-Add-printf-format-string.patch \
+ file://0002-sigd-Replace-on_exit-API-with-atexit.patch \
+ file://0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch \
"
SRC_URI[md5sum] = "d49499368c3cf15f73a05d9bce8824a8"
--
2.13.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-oe][PATCH 2/3] sqlite: Fix build with hardening flags
2017-06-19 1:05 [meta-networking][PATCH 1/3] linux-atm: Fix build with hardening flags Khem Raj
@ 2017-06-19 1:05 ` Khem Raj
2017-06-19 1:05 ` [meta-oe][PATCH 3/3] xmlstarlet: Update to 1.6.1 Khem Raj
1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2017-06-19 1:05 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
...c-Fix-format-not-a-string-literal-warning.patch | 32 ++++++++++++++++++++++
meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb | 8 ++++--
2 files changed, 37 insertions(+), 3 deletions(-)
create mode 100644 meta-oe/recipes-support/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch
diff --git a/meta-oe/recipes-support/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch b/meta-oe/recipes-support/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch
new file mode 100644
index 000000000..c5d7c0c81
--- /dev/null
+++ b/meta-oe/recipes-support/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch
@@ -0,0 +1,32 @@
+From 443980ddc82fb40e2e1f9544f2be169bd23dd246 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 17 Jun 2017 16:49:24 -0700
+Subject: [PATCH] shell.c: Fix format not a string literal warning
+
+src/shell.c:695:20: error: format not a string literal and no format arguments [-Werror=format-security]
+| fprintf(stderr,zHelp);
+| ^~~~~
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/shell.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/shell.c b/src/shell.c
+index bb46c49..3c6fe0f 100644
+--- a/src/shell.c
++++ b/src/shell.c
+@@ -692,7 +692,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){
+ }else
+
+ if( c=='h' && strncmp(azArg[0], "help", n)==0 ){
+- fprintf(stderr,zHelp);
++ fprintf(stderr, "%s", zHelp);
+ }else
+
+ if( c=='i' && strncmp(azArg[0], "indices", n)==0 && nArg>1 ){
+--
+2.13.1
+
diff --git a/meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb b/meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb
index e6e14c2ad..501c0e3e7 100644
--- a/meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb
+++ b/meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb
@@ -8,9 +8,11 @@ LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=10;md5=e98469a8efa024a
PR = "r7"
SRC_URI = "http://www.hwaci.com/sw/sqlite/sqlite-${PV}.tar.gz \
- file://mainmk_build_dynamic.patch \
- file://mainmk_no_tcl.patch \
- file://sqlite.pc"
+ file://mainmk_build_dynamic.patch \
+ file://mainmk_no_tcl.patch \
+ file://sqlite.pc \
+ file://0001-shell.c-Fix-format-not-a-string-literal-warning.patch \
+ "
SOURCES = "attach.o auth.o btree.o btree_rb.o build.o copy.o date.o delete.o \
expr.o func.o hash.o insert.o main.o opcodes.o os.o pager.o \
--
2.13.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-oe][PATCH 3/3] xmlstarlet: Update to 1.6.1
2017-06-19 1:05 [meta-networking][PATCH 1/3] linux-atm: Fix build with hardening flags Khem Raj
2017-06-19 1:05 ` [meta-oe][PATCH 2/3] sqlite: " Khem Raj
@ 2017-06-19 1:05 ` Khem Raj
2017-10-10 8:55 ` Martin Jansa
1 sibling, 1 reply; 4+ messages in thread
From: Khem Raj @ 2017-06-19 1:05 UTC (permalink / raw)
To: openembedded-devel
Enable PARALLEL_MAKE again
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../xmlstarlet/{xmlstarlet_1.5.0.bb => xmlstarlet_1.6.1.bb} | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
rename meta-oe/recipes-support/xmlstarlet/{xmlstarlet_1.5.0.bb => xmlstarlet_1.6.1.bb} (69%)
diff --git a/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb b/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
similarity index 69%
rename from meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb
rename to meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
index bf99aff43..e3d52e616 100644
--- a/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb
+++ b/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
@@ -15,8 +15,8 @@ DEPENDS = "libxml2 libxslt"
SRC_URI = "${SOURCEFORGE_MIRROR}/xmlstar/${BP}.tar.gz \
file://configure.ac.patch \
file://0001-usage2c.awk-fix-wrong-basename-regexp.patch"
-SRC_URI[md5sum] = "0c6db295d0cf9ff0d439edb755b7e8f6"
-SRC_URI[sha256sum] = "47b4ed042ea2909257f2a386001af49fceb303f84da7214779ccf99fffc6bbba"
+SRC_URI[md5sum] = "f3c5dfa3b1a2ee06cd57c255cc8b70a0"
+SRC_URI[sha256sum] = "15d838c4f3375332fd95554619179b69e4ec91418a3a5296e7c631b7ed19e7ca"
inherit autotools
@@ -24,10 +24,3 @@ inherit autotools
EXTRA_OECONF="--disable-build-docs \
--with-libxml-prefix=${STAGING_LIBDIR}/.. \
--with-libxslt-prefix=${STAGING_LIBDIR}/.."
-
-#Makefile:2116: recipe for target 'src/elem-usage.c' failed
-#make[1]: *** [src/elem-usage.c] Error 1
-#/bin/bash: src/escape-usage.c: No such file or directory
-#Makefile:2116: recipe for target 'src/escape-usage.c' failed
-#make[1]: *** [src/escape-usage.c] Error 1
-PARALLEL_MAKE = ""
--
2.13.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-oe][PATCH 3/3] xmlstarlet: Update to 1.6.1
2017-06-19 1:05 ` [meta-oe][PATCH 3/3] xmlstarlet: Update to 1.6.1 Khem Raj
@ 2017-10-10 8:55 ` Martin Jansa
0 siblings, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2017-10-10 8:55 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-devel
Looks like this failed again yesterday:
http://errors.yoctoproject.org/Errors/Details/157121/
On Mon, Jun 19, 2017 at 3:05 AM, Khem Raj <raj.khem@gmail.com> wrote:
> Enable PARALLEL_MAKE again
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> .../xmlstarlet/{xmlstarlet_1.5.0.bb => xmlstarlet_1.6.1.bb} | 11
> ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
> rename meta-oe/recipes-support/xmlstarlet/{xmlstarlet_1.5.0.bb =>
> xmlstarlet_1.6.1.bb} (69%)
>
> diff --git a/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb
> b/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
> similarity index 69%
> rename from meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb
> rename to meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
> index bf99aff43..e3d52e616 100644
> --- a/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb
> +++ b/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
> @@ -15,8 +15,8 @@ DEPENDS = "libxml2 libxslt"
> SRC_URI = "${SOURCEFORGE_MIRROR}/xmlstar/${BP}.tar.gz \
> file://configure.ac.patch \
> file://0001-usage2c.awk-fix-wrong-basename-regexp.patch"
> -SRC_URI[md5sum] = "0c6db295d0cf9ff0d439edb755b7e8f6"
> -SRC_URI[sha256sum] = "47b4ed042ea2909257f2a386001af4
> 9fceb303f84da7214779ccf99fffc6bbba"
> +SRC_URI[md5sum] = "f3c5dfa3b1a2ee06cd57c255cc8b70a0"
> +SRC_URI[sha256sum] = "15d838c4f3375332fd95554619179b
> 69e4ec91418a3a5296e7c631b7ed19e7ca"
>
> inherit autotools
>
> @@ -24,10 +24,3 @@ inherit autotools
> EXTRA_OECONF="--disable-build-docs \
> --with-libxml-prefix=${STAGING_LIBDIR}/.. \
> --with-libxslt-prefix=${STAGING_LIBDIR}/.."
> -
> -#Makefile:2116: recipe for target 'src/elem-usage.c' failed
> -#make[1]: *** [src/elem-usage.c] Error 1
> -#/bin/bash: src/escape-usage.c: No such file or directory
> -#Makefile:2116: recipe for target 'src/escape-usage.c' failed
> -#make[1]: *** [src/escape-usage.c] Error 1
> -PARALLEL_MAKE = ""
> --
> 2.13.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-10 8:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-19 1:05 [meta-networking][PATCH 1/3] linux-atm: Fix build with hardening flags Khem Raj
2017-06-19 1:05 ` [meta-oe][PATCH 2/3] sqlite: " Khem Raj
2017-06-19 1:05 ` [meta-oe][PATCH 3/3] xmlstarlet: Update to 1.6.1 Khem Raj
2017-10-10 8:55 ` Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox