Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix for bad links in sstate
@ 2011-09-24  2:41 Saul Wold
  2011-09-24  2:41 ` [PATCH 1/1] attr/acl: add SSTATEPOSTINSTFUNC Saul Wold
  0 siblings, 1 reply; 2+ messages in thread
From: Saul Wold @ 2011-09-24  2:41 UTC (permalink / raw)
  To: openembedded-core

Richard, 

This fixes a problem found on the AB when sstate from one machine
is used on by another machine.

Sau!

The following changes since commit 368b150416688654e35229a63b87177b52e83d02:

  populate_sdk_rpm: add pkgconfig(pkg-config) to the list (2011-09-23 19:55:43 +0100)

are available in the git repository at:
  git://git.yoctoproject.org/poky-contrib sgw/oe-fix
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=sgw/oe-fix

Saul Wold (1):
  attr/acl: add SSTATEPOSTINSTFUNC

 meta/recipes-support/attr/acl_2.2.51.bb  |    2 +-
 meta/recipes-support/attr/attr_2.4.46.bb |    2 +-
 meta/recipes-support/attr/ea-acl.inc     |   11 +++++++++++
 3 files changed, 13 insertions(+), 2 deletions(-)

-- 
1.7.6




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] attr/acl: add SSTATEPOSTINSTFUNC
  2011-09-24  2:41 [PATCH 0/1] Fix for bad links in sstate Saul Wold
@ 2011-09-24  2:41 ` Saul Wold
  0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2011-09-24  2:41 UTC (permalink / raw)
  To: openembedded-core

Added a native sstate post install function to fix the links
created between /lib and /usr/lib for the library files. These
links could point to an invalid build area when using shared state.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-support/attr/acl_2.2.51.bb  |    2 +-
 meta/recipes-support/attr/attr_2.4.46.bb |    2 +-
 meta/recipes-support/attr/ea-acl.inc     |   11 +++++++++++
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-support/attr/acl_2.2.51.bb b/meta/recipes-support/attr/acl_2.2.51.bb
index 18aac7c..40ba5f1 100644
--- a/meta/recipes-support/attr/acl_2.2.51.bb
+++ b/meta/recipes-support/attr/acl_2.2.51.bb
@@ -1,6 +1,6 @@
 require acl.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI[md5sum] = "3fc0ce99dc5253bdcce4c9cd437bc267"
 SRC_URI[sha256sum] = "06854521cf5d396801af7e54b9636680edf8064355e51c07657ec7442a185225"
diff --git a/meta/recipes-support/attr/attr_2.4.46.bb b/meta/recipes-support/attr/attr_2.4.46.bb
index fe8ab79..85c35d0 100644
--- a/meta/recipes-support/attr/attr_2.4.46.bb
+++ b/meta/recipes-support/attr/attr_2.4.46.bb
@@ -1,6 +1,6 @@
 require attr.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI[md5sum] = "db557c17fdfa4f785333ecda08654010"
 SRC_URI[sha256sum] = "dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f"
diff --git a/meta/recipes-support/attr/ea-acl.inc b/meta/recipes-support/attr/ea-acl.inc
index 2ef1389..e4578d0 100644
--- a/meta/recipes-support/attr/ea-acl.inc
+++ b/meta/recipes-support/attr/ea-acl.inc
@@ -35,3 +35,14 @@ BBCLASSEXTEND = "native"
 # Only append ldflags for target recipe and if USE_NLS is enabled
 LDFLAGS_append_libc-uclibc = "${@['', ' -lintl '][(bb.data.getVar('PN', d, True) == bb.data.getVar('BPN', d , True)) and (bb.data.getVar('USE_NLS', d, True) == 'yes')]}"
 EXTRA_OECONF_append_libc-uclibc = "${@['', ' --disable-gettext '][(bb.data.getVar('PN', d, True) == bb.data.getVar('BPN', d , True)) and (bb.data.getVar('USE_NLS', d, True) == 'no')]}"
+
+fix_symlink () {
+	# Remove bad symlinks
+	rm -rf ${libdir}/lib${BPN}.so 
+	rm -rf ${base_libdir}/lib${BPN}.a ${base_libdir}/lib${BPN}.la
+	# Create the correct symlinks
+	ln -sf ${base_libdir}/lib${BPN}.so ${libdir}/lib${BPN}.so
+	ln -sf ${libdir}/lib${BPN}.a ${base_libdir}/lib${BPN}.a
+	ln -sf ${libdir}/lib${BPN}.la ${base_libdir}/lib${BPN}.la
+}
+SSTATEPOSTINSTFUNCS_virtclass-native += "fix_symlink"
-- 
1.7.6




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-24  2:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-24  2:41 [PATCH 0/1] Fix for bad links in sstate Saul Wold
2011-09-24  2:41 ` [PATCH 1/1] attr/acl: add SSTATEPOSTINSTFUNC Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox