Openembedded Core Discussions
 help / color / mirror / Atom feed
From: <jackie.huang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH] acl attr libcap: mark shared libraries executable
Date: Fri, 14 Jun 2013 16:09:17 +0800	[thread overview]
Message-ID: <1371197357-10706-1-git-send-email-jackie.huang@windriver.com> (raw)

From: Jackie Huang <jackie.huang@windriver.com>

While it is not necessary that shared libraries be executable,
if they are not marked as such bitbake will not examine them
for debug information.  So, we make them executable at the end of
installation.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 meta/recipes-support/attr/acl.inc      |    4 ++++
 meta/recipes-support/attr/attr.inc     |    4 ++++
 meta/recipes-support/libcap/libcap.inc |    7 ++++++-
 3 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-support/attr/acl.inc b/meta/recipes-support/attr/acl.inc
index b504517..060d09b 100644
--- a/meta/recipes-support/attr/acl.inc
+++ b/meta/recipes-support/attr/acl.inc
@@ -20,7 +20,11 @@ do_configure_append() {
 }

 # libdir should point to .la
+# install somehow leaves the actual shared library 644 instead of 755
+# this means it will be ignored for debug info extraction
+#
 do_install_append() {
 	sed -i ${D}${libdir}/libacl.la -e \
 	    s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
+	chmod a+x ${D}${base_libdir}/*.so.*.*
 }
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index eaed7af..375d2e9 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -18,7 +18,11 @@ SRC_URI = "http://download.savannah.gnu.org/releases/attr/${BP}.src.tar.gz \
 require ea-acl.inc

 # libdir should point to .la
+# install somehow leaves the actual shared library 644 instead of 755
+# this means it will be ignored for debug info extraction
+#
 do_install_append() {
 	sed -i ${D}${libdir}/libattr.la -e \
 	    s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
+	chmod a+x ${D}${base_libdir}/*.so.*.*
 }
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc
index 7f16a56..2fd5718 100644
--- a/meta/recipes-support/libcap/libcap.inc
+++ b/meta/recipes-support/libcap/libcap.inc
@@ -12,7 +12,7 @@ DEPENDS_class-native = "perl-native-runtime"

 SRC_URI = "${DEBIAN_MIRROR}/main/libc/libcap2/${BPN}2_${PV}.orig.tar.gz"

-PR = "r1"
+PR = "r2"

 inherit lib_package

@@ -51,6 +51,11 @@ do_install_append() {
 		mv ${D}${libdir}/* ${D}${base_libdir}
 		rmdir ${D}${libdir}
 	fi
+
+	# install somehow leaves the actual shared library 644 instead of 755
+	# this means it will be ignored for debug info extraction
+	#
+	chmod a+x ${D}${base_libdir}/*.so.*.*
 }

 FILES_${PN}-dev += "${base_libdir}/*.so"
--
1.7.4.1



             reply	other threads:[~2013-06-14  8:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14  8:09 jackie.huang [this message]
2013-06-14  8:53 ` [PATCH] acl attr libcap: mark shared libraries executable Burton, Ross
2013-06-14 14:55   ` Mark Hatle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1371197357-10706-1-git-send-email-jackie.huang@windriver.com \
    --to=jackie.huang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox