Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package install failure on systems without /sbin/ldconfig
@ 2012-07-09 15:38 Amy Fong
  0 siblings, 0 replies; 5+ messages in thread
From: Amy Fong @ 2012-07-09 15:38 UTC (permalink / raw)
  To: openembedded-core

Package install failures due to issues in post install rules.
    
package_do_shlibs only looks for libraries in a directory "lib", this should be
modified to the variable baselib.
    
ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig
        [ -x /sbin/ldconfig ] && /sbin/ldconfig
results in the post install rule returning a failure. Modify to
        if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi
    
Signed-off-by: Amy Fong <amy.fong@windriver.com>
---
 package.bbclass |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 56ab25c..28a263c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1151,7 +1151,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime"
 
 ldconfig_postinst_fragment() {
 if [ x"$D" = "x" ]; then
-	[ -x /sbin/ldconfig ] && /sbin/ldconfig
+	if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
 fi
 }
 
@@ -1261,7 +1261,7 @@ python package_do_shlibs() {
 		return
 		
 	lib_re = re.compile("^.*\.so")
-	libdir_re = re.compile(".*/lib$")
+	libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True))
 
 	packages = d.getVar('PACKAGES', True)
 	targetos = d.getVar('TARGET_OS', True)



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

* [PATCH] package install failure on systems without /sbin/ldconfig
@ 2012-07-09 18:50 Amy Fong
  2012-07-10  4:23 ` Saul Wold
  2012-07-17 15:52 ` Saul Wold
  0 siblings, 2 replies; 5+ messages in thread
From: Amy Fong @ 2012-07-09 18:50 UTC (permalink / raw)
  To: openembedded-core, Mark Hatle

Package install failures due to issues in post install rules.
    
package_do_shlibs only looks for libraries in a directory "lib", this should be
modified to the variable baselib.
    
ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig
        [ -x /sbin/ldconfig ] && /sbin/ldconfig
results in the post install rule returning a failure. Modify to
        if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi
    
Signed-off-by: Amy Fong <amy.fong@windriver.com>
---
 package.bbclass |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 56ab25c..28a263c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1151,7 +1151,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime"
 
 ldconfig_postinst_fragment() {
 if [ x"$D" = "x" ]; then
-	[ -x /sbin/ldconfig ] && /sbin/ldconfig
+	if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
 fi
 }
 
@@ -1261,7 +1261,7 @@ python package_do_shlibs() {
 		return
 		
 	lib_re = re.compile("^.*\.so")
-	libdir_re = re.compile(".*/lib$")
+	libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True))
 
 	packages = d.getVar('PACKAGES', True)
 	targetos = d.getVar('TARGET_OS', True)



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

* Re: [PATCH] package install failure on systems without /sbin/ldconfig
  2012-07-09 18:50 [PATCH] package install failure on systems without /sbin/ldconfig Amy Fong
@ 2012-07-10  4:23 ` Saul Wold
  2012-07-10 13:45   ` Amy Fong
  2012-07-17 15:52 ` Saul Wold
  1 sibling, 1 reply; 5+ messages in thread
From: Saul Wold @ 2012-07-10  4:23 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 07/09/2012 11:50 AM, Amy Fong wrote:
> Package install failures due to issues in post install rules.
>
> package_do_shlibs only looks for libraries in a directory "lib", this should be
> modified to the variable baselib.
>
> ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig
>          [ -x /sbin/ldconfig ] && /sbin/ldconfig
> results in the post install rule returning a failure. Modify to
>          if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi
>
If this is addressing bug #2723, then please mark it as follows:

[YOCTO #2723] in the commit message.

Also the commit subject should include the file name for example:
package.bbclass: fix for package install failure on systems without 
/sbin/ldconfig

Thanks
	Sau!

> Signed-off-by: Amy Fong <amy.fong@windriver.com>
> ---
>   package.bbclass |    4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index 56ab25c..28a263c 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -1151,7 +1151,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime"
>
>   ldconfig_postinst_fragment() {
>   if [ x"$D" = "x" ]; then
> -	[ -x /sbin/ldconfig ] && /sbin/ldconfig
> +	if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
>   fi
>   }
>
> @@ -1261,7 +1261,7 @@ python package_do_shlibs() {
>   		return
>   		
>   	lib_re = re.compile("^.*\.so")
> -	libdir_re = re.compile(".*/lib$")
> +	libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True))
>
>   	packages = d.getVar('PACKAGES', True)
>   	targetos = d.getVar('TARGET_OS', True)
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>




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

* Re: [PATCH] package install failure on systems without /sbin/ldconfig
  2012-07-10  4:23 ` Saul Wold
@ 2012-07-10 13:45   ` Amy Fong
  0 siblings, 0 replies; 5+ messages in thread
From: Amy Fong @ 2012-07-10 13:45 UTC (permalink / raw)
  To: Saul Wold; +Cc: Patches and discussions about the oe-core layer

On Mon, Jul 09, 2012 at 09:23:46PM -0700, Saul Wold wrote:
> On 07/09/2012 11:50 AM, Amy Fong wrote:
> >Package install failures due to issues in post install rules.
> >
> >package_do_shlibs only looks for libraries in a directory "lib", this should be
> >modified to the variable baselib.
> >
> >ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig
> >         [ -x /sbin/ldconfig ] && /sbin/ldconfig
> >results in the post install rule returning a failure. Modify to
> >         if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi
> >
> If this is addressing bug #2723, then please mark it as follows:
> 
> [YOCTO #2723] in the commit message.
> 
> Also the commit subject should include the file name for example:
> package.bbclass: fix for package install failure on systems without
> /sbin/ldconfig
> 
> Thanks
> 	Sau!
> 

Thanks Saul, updated as follows....

[YOCTO #2723] package.bbclass: fix for package install failure on systems without /sbin/ldconfig
    
package_do_shlibs only looks for libraries in a directory "lib", this should be
modified to the variable baselib.
    
ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig
    [ -x /sbin/ldconfig ] && /sbin/ldconfig
results in the post install rule returning a failure. Modify to
    if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi
    
Signed-off-by: Amy Fong <amy.fong@windriver.com>
---
 package.bbclass |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 56ab25c..28a263c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1151,7 +1151,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime"
 
 ldconfig_postinst_fragment() {
 if [ x"$D" = "x" ]; then
-	[ -x /sbin/ldconfig ] && /sbin/ldconfig
+	if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
 fi
 }
 
@@ -1261,7 +1261,7 @@ python package_do_shlibs() {
 		return
 		
 	lib_re = re.compile("^.*\.so")
-	libdir_re = re.compile(".*/lib$")
+	libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True))
 
 	packages = d.getVar('PACKAGES', True)
 	targetos = d.getVar('TARGET_OS', True)



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

* Re: [PATCH] package install failure on systems without /sbin/ldconfig
  2012-07-09 18:50 [PATCH] package install failure on systems without /sbin/ldconfig Amy Fong
  2012-07-10  4:23 ` Saul Wold
@ 2012-07-17 15:52 ` Saul Wold
  1 sibling, 0 replies; 5+ messages in thread
From: Saul Wold @ 2012-07-17 15:52 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 07/09/2012 11:50 AM, Amy Fong wrote:
> Package install failures due to issues in post install rules.
>
> package_do_shlibs only looks for libraries in a directory "lib", this should be
> modified to the variable baselib.
>
> ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig
>          [ -x /sbin/ldconfig ] && /sbin/ldconfig
> results in the post install rule returning a failure. Modify to
>          if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi
>
> Signed-off-by: Amy Fong <amy.fong@windriver.com>
> ---
>   package.bbclass |    4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index 56ab25c..28a263c 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -1151,7 +1151,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime"
>
>   ldconfig_postinst_fragment() {
>   if [ x"$D" = "x" ]; then
> -	[ -x /sbin/ldconfig ] && /sbin/ldconfig
> +	if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
>   fi
>   }
>
> @@ -1261,7 +1261,7 @@ python package_do_shlibs() {
>   		return
>   		
>   	lib_re = re.compile("^.*\.so")
> -	libdir_re = re.compile(".*/lib$")
> +	libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True))
>
>   	packages = d.getVar('PACKAGES', True)
>   	targetos = d.getVar('TARGET_OS', True)
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>

Merged into OE-Core

Thanks	
	Sau!



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

end of thread, other threads:[~2012-07-17 16:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09 18:50 [PATCH] package install failure on systems without /sbin/ldconfig Amy Fong
2012-07-10  4:23 ` Saul Wold
2012-07-10 13:45   ` Amy Fong
2012-07-17 15:52 ` Saul Wold
  -- strict thread matches above, loose matches on Subject: below --
2012-07-09 15:38 Amy Fong

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