Skip to contentSkip to conversation

nfs-utils: Fix build error due to missing stdint.h> include

PATCH New Khem Raj 1 participant 2 messages May 26, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 nfs-utils: Fix build error due to missing stdint.h> include

---
 ...nclude-stdint.h-for-UINT16_MAX-definition.patch | 27 ++++++++++++++++++++++
 .../nfs-utils/nfs-utils_2.1.1.bb                   |  1 +
 2 files changed, 28 insertions(+)
 create mode 100644 meta/recipes-connectivity/nfs-utils/nfs-utils/0001-include-stdint.h-for-UINT16_MAX-definition.patch
meta/recipes-connectivity/nfs-utils/nfs-utils/0001-include-stdint.h-for-UINT16_MAX-definition.patch new file +27 -0
new file mode 100644
index 0000000000..235a2c76fc
@@ -0,0 +1,27 @@
+From 36b48057bce76dced335d67a2894a420967811c9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 20 May 2017 14:07:53 -0700
+Subject: [PATCH] include stdint.h for UINT16_MAX definition
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Pending
+
+ support/nsm/rpc.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/support/nsm/rpc.c b/support/nsm/rpc.c
+index 4e5f40e..d91c6ea 100644
+--- a/support/nsm/rpc.c
++++ b/support/nsm/rpc.c
+@@ -40,6 +40,7 @@
+ 
+ #include <time.h>
+ #include <stdbool.h>
++#include <stdint.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+-- 
+2.13.0
+
meta/recipes-connectivity/nfs-utils/nfs-utils_2.1.1.bb +1 -0
index bdf0efa330..d917c4d713 100644
@@ -31,6 +31,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
            file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \
            file://nfs-utils-debianize-start-statd.patch \
            file://bugfix-adjust-statd-service-name.patch \
+           file://0001-include-stdint.h-for-UINT16_MAX-definition.patch \
 "
 
 SRC_URI[md5sum] = "59dfcb2e6254b129f901f40c86086b13"
Signature · 1 line
2.13.0
author
#1 lore raw

PATCH 2/2 glibc: Configure with extra hardening options

---
 meta/recipes-core/glibc/glibc_2.25.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-core/glibc/glibc_2.25.bb +4 -0
index ab6fbbea2a..83a1249b8c 100644
@@ -77,6 +77,10 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
                 --with-headers=${STAGING_INCDIR} \
                 --without-selinux \
                 --enable-obsolete-rpc \
+                --enable-tunables \
+                --enable-bind-now \
+                --enable-stack-protector=strong \
+                --enable-stackguard-randomization \
                 ${GLIBC_EXTRA_OECONF}"
 
 EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
Signature · 1 line
2.13.0