diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-06-07 16:36:49 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-08 11:43:18 +0100 |
commit | fa3b18efecbc02029573deb00f03e7f278ea199c (patch) | |
tree | 4f7b3fc2be70adb48369201d064351664c2b2862 | |
parent | df8f55a919b3cc602ce1f1c51630c7edf6e36b55 (diff) | |
download | poky-fa3b18efecbc02029573deb00f03e7f278ea199c.tar.gz |
systemtap: Unbreak build for systems with nss headers installed
* discussed on [1]
* patch sent to systemtap [2]
[1] http://lists.linuxtogo.org/pipermail/openembedded-core/2012-June/023377.html
[2] http://sourceware.org/ml/systemtap/2012-q2/msg00202.html
(From OE-Core rev: bd17907884e3a1e1d711125a4b8def5263e97edb)
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 files changed, 54 insertions, 7 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch b/meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch new file mode 100644 index 0000000000..fbe7b708d8 --- /dev/null +++ b/meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From fa81ccd4f92e5cb15a11a81a7e656bfe01745afb Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Tue, 5 Jun 2012 10:22:23 +0200 | ||
4 | Subject: [PATCH] runtime/staprun/configure.ac: support --without-nss for | ||
5 | staprun | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | Upstream status: pending | ||
11 | |||
12 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
13 | --- | ||
14 | runtime/staprun/configure.ac | 20 +++++++++++++++----- | ||
15 | 1 files changed, 15 insertions(+), 5 deletions(-) | ||
16 | |||
17 | diff --git a/runtime/staprun/configure.ac b/runtime/staprun/configure.ac | ||
18 | index 8fd1b42..7b05f73 100644 | ||
19 | --- a/runtime/staprun/configure.ac | ||
20 | +++ b/runtime/staprun/configure.ac | ||
21 | @@ -67,11 +67,21 @@ AS_IF([test "x$enable_sdt_probes" != xno], [ | ||
22 | [Define to 1 to enable process.mark probes in staprun, stapio.]) | ||
23 | ]) | ||
24 | |||
25 | -PKG_CHECK_MODULES([nss], [nss >= 3], [have_nss=yes], [have_nss=no]) | ||
26 | -AM_CONDITIONAL([HAVE_NSS], [test $have_nss = yes]) | ||
27 | -AS_IF([test $have_nss = yes], [ | ||
28 | - AC_DEFINE([HAVE_NSS], [1], [Define to 1 if you have the nss libraries.]) | ||
29 | -]) | ||
30 | +dnl See if we have the nss/nspr headers and libraries | ||
31 | +AC_ARG_WITH([nss], | ||
32 | + AS_HELP_STRING([--without-nss], | ||
33 | + [Do not use NSS even if present])) | ||
34 | + | ||
35 | +AS_IF([test "x$with_nss" != "xno"], [ | ||
36 | + PKG_CHECK_MODULES([nss], [nss >= 3], | ||
37 | + [have_nss=yes | ||
38 | + AC_DEFINE([HAVE_NSS], [1], [Define to 1 if you have the nss libraries.]) | ||
39 | + ], [have_nss=no]) | ||
40 | +], [have_nss=no]) | ||
41 | + | ||
42 | +AM_CONDITIONAL([HAVE_NSS], [test "${have_nss}" = "yes"]) | ||
43 | + | ||
44 | + | ||
45 | AC_ARG_ENABLE([nls], [AS_HELP_STRING([--enable-nls], [enable translating program messages])]) | ||
46 | AS_IF([test "x$enable_nls" != xno], [ | ||
47 | AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if program messages should be translated.]) | ||
48 | -- | ||
49 | 1.7.6.5 | ||
50 | |||
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb index 4d340fc8a2..7ed5fcdc47 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.bb +++ b/meta/recipes-kernel/systemtap/systemtap_git.bb | |||
@@ -6,19 +6,15 @@ DEPENDS = "elfutils sqlite3 systemtap-native" | |||
6 | DEPENDS_virtclass-native = "elfutils-native sqlite3-native gettext-native" | 6 | DEPENDS_virtclass-native = "elfutils-native sqlite3-native gettext-native" |
7 | DEPENDS_virtclass-nativesdk = "elfutils-nativesdk sqlite3-nativesdk gettext-nativesdk" | 7 | DEPENDS_virtclass-nativesdk = "elfutils-nativesdk sqlite3-nativesdk gettext-nativesdk" |
8 | 8 | ||
9 | PR = "r4" | 9 | PR = "r5" |
10 | 10 | ||
11 | export CC_FOR_BUILD = "${BUILD_CC}" | 11 | export CC_FOR_BUILD = "${BUILD_CC}" |
12 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | 12 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" |
13 | export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}" | 13 | export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}" |
14 | 14 | ||
15 | EXTRA_OECONF += "--with-libelf=${STAGING_DIR_TARGET} --without-rpm \ | 15 | EXTRA_OECONF += "--with-libelf=${STAGING_DIR_TARGET} --without-rpm \ |
16 | ac_cv_file__usr_include_nss=no \ | 16 | --without-nss --without-avahi \ |
17 | ac_cv_file__usr_include_nss3=no \ | 17 | --disable-server --disable-grapher " |
18 | ac_cv_file__usr_include_nspr=no \ | ||
19 | ac_cv_file__usr_include_nspr4=no \ | ||
20 | ac_cv_file__usr_include_avahi_client=no \ | ||
21 | ac_cv_file__usr_include_avahi_common=no " | ||
22 | 18 | ||
23 | STAP_DOCS ?= "--disable-docs --disable-publican --disable-refdocs" | 19 | STAP_DOCS ?= "--disable-docs --disable-publican --disable-refdocs" |
24 | 20 | ||
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc index 9f4feee8ce..5f2987b6f8 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.inc +++ b/meta/recipes-kernel/systemtap/systemtap_git.inc | |||
@@ -7,6 +7,7 @@ PV = "1.7+git${SRCPV}" | |||
7 | SRC_URI = "git://sources.redhat.com/git/systemtap.git;protocol=git \ | 7 | SRC_URI = "git://sources.redhat.com/git/systemtap.git;protocol=git \ |
8 | file://docproc-build-fix.patch \ | 8 | file://docproc-build-fix.patch \ |
9 | file://systemtap_fix_for_automake_1.12.patch \ | 9 | file://systemtap_fix_for_automake_1.12.patch \ |
10 | file://runtime-staprun-configure.ac-support-without-nss-for.patch \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | FILESPATH = "${FILE_DIRNAME}/systemtap" | 13 | FILESPATH = "${FILE_DIRNAME}/systemtap" |