sys-apps/iproute2: backport setns check fix

Could have led to a build w/o setns support.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-08-13 14:53:24 +01:00
parent d69f52de50
commit 7be86a0975
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
https://github.com/shemminger/iproute2/commit/d5fe96ab70928508f072a47449e9b641e46de323
From d5fe96ab70928508f072a47449e9b641e46de323 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 10 Aug 2022 22:34:40 -0700
Subject: [PATCH] configure: Define _GNU_SOURCE when checking for setns
glibc defines this function only as gnu extention
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
--- a/configure
+++ b/configure
@@ -191,6 +191,7 @@ check_ipt_lib_dir()
check_setns()
{
cat >$TMPDIR/setnstest.c <<EOF
+#define _GNU_SOURCE
#include <sched.h>
int main(int argc, char **argv)
{

View File

@@ -52,6 +52,7 @@ PATCHES=(
#"${FILESDIR}"/${PN}-5.1.0-portability.patch
"${FILESDIR}"/${PN}-5.7.0-mix-signal.h-include.patch
"${FILESDIR}"/${P}-musl.patch
"${FILESDIR}"/${P}-setns-check.patch
"${FILESDIR}"/${PN}-default-color-auto.patch
)