* [RFC PATCH] insane.conf: add new libexec test
@ 2012-09-13 1:01 Saul Wold
2012-09-13 1:25 ` Saul Wold
2012-09-13 3:32 ` Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Saul Wold @ 2012-09-13 1:01 UTC (permalink / raw)
To: openembedded-core
This tests for /usr/libexec as we are moving things to /lib/.
the test is ignored if the distro defaults to /usr/libexec.
Currently this test will be disabled by default since the current
value of ${libexecdir} is "/usr/libexec". Also this tests needs
to be enabled in the WARN_QA list.
[YOCTO #2915]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/classes/insane.bbclass | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index e74eb3f..8b2d536 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -137,6 +137,20 @@ def package_qa_handle_error(error_class, error_msg, d):
bb.warn("QA Issue: %s" % error_msg)
return True
+QAPATHTEST[libexec] = "package_qa_check_libexec"
+def package_qa_check_libexec(path,name, d, elf, messages):
+
+ # Skip the case where the default is explicitly /usr/libexec
+ libexec = d.getVar('libexecdir', True)
+ if libexec == "/usr/libexec":
+ return True
+
+ if 'libexec' in path.split(os.path.sep):
+ messages.append("%s: %s is using libexec please relocate to %s" % (name, package_qa_clean_path(path, d), libexec))
+ return False
+
+ return True
+
QAPATHTEST[rpaths] = "package_qa_check_rpath"
def package_qa_check_rpath(file,name, d, elf, messages):
"""
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC PATCH] insane.conf: add new libexec test
2012-09-13 1:01 [RFC PATCH] insane.conf: add new libexec test Saul Wold
@ 2012-09-13 1:25 ` Saul Wold
2012-09-13 3:32 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-09-13 1:25 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
On 09/12/2012 06:01 PM, Saul Wold wrote:
> This tests for /usr/libexec as we are moving things to /lib/.
This got clobbered by the shell or something, should be ${prefix}/lib/${BPN}
> the test is ignored if the distro defaults to /usr/libexec.
>
> Currently this test will be disabled by default since the current
> value of ${libexecdir} is "/usr/libexec". Also this tests needs
> to be enabled in the WARN_QA list.
>
> [YOCTO #2915]
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/classes/insane.bbclass | 14 ++++++++++++++
> 1 files changed, 14 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> index e74eb3f..8b2d536 100644
> --- a/meta/classes/insane.bbclass
> +++ b/meta/classes/insane.bbclass
> @@ -137,6 +137,20 @@ def package_qa_handle_error(error_class, error_msg, d):
> bb.warn("QA Issue: %s" % error_msg)
> return True
>
> +QAPATHTEST[libexec] = "package_qa_check_libexec"
> +def package_qa_check_libexec(path,name, d, elf, messages):
> +
> + # Skip the case where the default is explicitly /usr/libexec
> + libexec = d.getVar('libexecdir', True)
> + if libexec == "/usr/libexec":
> + return True
> +
> + if 'libexec' in path.split(os.path.sep):
> + messages.append("%s: %s is using libexec please relocate to %s" % (name, package_qa_clean_path(path, d), libexec))
> + return False
> +
> + return True
> +
> QAPATHTEST[rpaths] = "package_qa_check_rpath"
> def package_qa_check_rpath(file,name, d, elf, messages):
> """
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC PATCH] insane.conf: add new libexec test
2012-09-13 1:01 [RFC PATCH] insane.conf: add new libexec test Saul Wold
2012-09-13 1:25 ` Saul Wold
@ 2012-09-13 3:32 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-09-13 3:32 UTC (permalink / raw)
To: openembedded-core
On 09/12/2012 06:01 PM, Saul Wold wrote:
> This tests for /usr/libexec as we are moving things to /lib/.
> the test is ignored if the distro defaults to /usr/libexec.
>
> Currently this test will be disabled by default since the current
> value of ${libexecdir} is "/usr/libexec". Also this tests needs
> to be enabled in the WARN_QA list.
>
An initial run of this against World showed the following packages had
build time issues, I still need to determine runtime issues.
I set libexecdir=${prefix}/lib/${BPN} and enabled the test in WARN_QA
perf seems to hard code libexec someplace
lttng-tools (lttng-consumerd)
qemu (qemu-bridge-helper)
Not bad for the first pass
Sau!
> [YOCTO #2915]
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/classes/insane.bbclass | 14 ++++++++++++++
> 1 files changed, 14 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> index e74eb3f..8b2d536 100644
> --- a/meta/classes/insane.bbclass
> +++ b/meta/classes/insane.bbclass
> @@ -137,6 +137,20 @@ def package_qa_handle_error(error_class, error_msg, d):
> bb.warn("QA Issue: %s" % error_msg)
> return True
>
> +QAPATHTEST[libexec] = "package_qa_check_libexec"
> +def package_qa_check_libexec(path,name, d, elf, messages):
> +
> + # Skip the case where the default is explicitly /usr/libexec
> + libexec = d.getVar('libexecdir', True)
> + if libexec == "/usr/libexec":
> + return True
> +
> + if 'libexec' in path.split(os.path.sep):
> + messages.append("%s: %s is using libexec please relocate to %s" % (name, package_qa_clean_path(path, d), libexec))
> + return False
> +
> + return True
> +
> QAPATHTEST[rpaths] = "package_qa_check_rpath"
> def package_qa_check_rpath(file,name, d, elf, messages):
> """
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-13 3:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-13 1:01 [RFC PATCH] insane.conf: add new libexec test Saul Wold
2012-09-13 1:25 ` Saul Wold
2012-09-13 3:32 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox