summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-02-05 18:39:25 -0800
committerKhem Raj <raj.khem@gmail.com>2021-02-05 18:40:25 -0800
commit3aa40ae9edbd41f6484af325b94b854a0637f17c (patch)
tree4501d6ea27e0d8d585c7dc8831f8ac14aa96474c
parente6b08a15d96100d66c58ec285963388dc0013b73 (diff)
downloadmeta-openembedded-3aa40ae9edbd41f6484af325b94b854a0637f17c.tar.gz
libstatgrab: Fix build with autoconf 2.70+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/libstatgrab/libstatgrab/0001-configure.ac-Do-not-use-single-line-comment.patch33
-rw-r--r--meta-oe/recipes-extended/libstatgrab/libstatgrab_0.92.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/libstatgrab/libstatgrab/0001-configure.ac-Do-not-use-single-line-comment.patch b/meta-oe/recipes-extended/libstatgrab/libstatgrab/0001-configure.ac-Do-not-use-single-line-comment.patch
new file mode 100644
index 000000000..46493bb9e
--- /dev/null
+++ b/meta-oe/recipes-extended/libstatgrab/libstatgrab/0001-configure.ac-Do-not-use-single-line-comment.patch
@@ -0,0 +1,33 @@
1From a8502c5a7e336f1e5068f9dd3bdb359d787f9bdc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 5 Feb 2021 18:35:12 -0800
4Subject: [PATCH] configure.ac: Do not use single line comment
5
6autoconf 2.70+ does not like it and regenerating configure script fails
7
8| ../libstatgrab-0.92/configure: line 7818: syntax error near unexpected token `ac_fn_check_decl'
9| ../libstatgrab-0.92/configure: line 7818: `fi ac_fn_check_decl "$LINENO" "__sun" "ac_cv_have_decl___sun" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"'
10
11Upstream-Status: Submitted [https://github.com/libstatgrab/libstatgrab/pull/128]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 configure.ac | 3 ++-
15 1 file changed, 2 insertions(+), 1 deletion(-)
16
17diff --git a/configure.ac b/configure.ac
18index 99518f8..74e7f0f 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -100,7 +100,8 @@ AC_TYPE_UNSIGNED_LONG_LONG_INT
22
23 dnl Check for extra flags to enable some kind of behavior
24 AC_CHECK_DECL([_AIX],[ac_cv_need_minus_d_linux_source_compat="yes"; ac_cv_need_minus_d_all_source="yes"])
25-AC_CHECK_DECL([__linux],[ac_cv_need_minus_d_gnu_source="yes"]) dnl probably required by kfreebsd, too?
26+dnl probably required by kfreebsd, too?
27+AC_CHECK_DECL([__linux],[ac_cv_need_minus_d_gnu_source="yes"])
28 AC_CHECK_DECL([__sun],[ac_cv_need_minus_d_extensions="yes"; ac_cv_need_minus_d_posix_pthread_semantics="yes"])
29 AC_CHECK_DECL([__hpux],[ac_cv_need_minus_d_hpux_source="yes"])
30
31--
322.30.0
33
diff --git a/meta-oe/recipes-extended/libstatgrab/libstatgrab_0.92.bb b/meta-oe/recipes-extended/libstatgrab/libstatgrab_0.92.bb
index 27fe0e2c4..a47d3bf00 100644
--- a/meta-oe/recipes-extended/libstatgrab/libstatgrab_0.92.bb
+++ b/meta-oe/recipes-extended/libstatgrab/libstatgrab_0.92.bb
@@ -10,6 +10,7 @@ PACKAGES_prepend = "statgrab statgrab-dbg saidar saidar-dbg ${PN}-mrtg "
10 10
11# don't use the git tag unless docbooc2x is available to build the manpages 11# don't use the git tag unless docbooc2x is available to build the manpages
12SRC_URI = "https://github.com/libstatgrab/libstatgrab/releases/download/LIBSTATGRAB_0_92/libstatgrab-0.92.tar.gz \ 12SRC_URI = "https://github.com/libstatgrab/libstatgrab/releases/download/LIBSTATGRAB_0_92/libstatgrab-0.92.tar.gz \
13 file://0001-configure.ac-Do-not-use-single-line-comment.patch \
13 " 14 "
14SRC_URI[md5sum] = "5362b2ddbec54b3901e7d70c22cda249" 15SRC_URI[md5sum] = "5362b2ddbec54b3901e7d70c22cda249"
15SRC_URI[sha256sum] = "5bf1906aff9ffc3eeacf32567270f4d819055d8386d98b9c8c05519012d5a196" 16SRC_URI[sha256sum] = "5bf1906aff9ffc3eeacf32567270f4d819055d8386d98b9c8c05519012d5a196"