Skip to contentSkip to conversation

bzip2: set correct soname

PATCH In review Ross Burton 3 participants 7 messages Apr 5, 2016 – Apr 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bzip2: set correct soname

The correct name for the bzip2 shared library is libbz2.so.1.0.6, not libbz2.so.0.0.0. Pass -version-info to libtool to correct this.

Also fix the configure.ac so that is doesn't mention libXrender and has the right version.

---
 meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am  | 1 +
 meta/recipes-extended/bzip2/bzip2-1.0.6/configure.ac | 5 +----
 2 files changed, 2 insertions(+), 4 deletions(-)
meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am +1 -0
index 1d163b6..05d389f 100644
@@ -1,5 +1,6 @@
 
 lib_LTLIBRARIES = libbz2.la
+libbz2_la_LDFLAGS = -version-info 1:6:0
 
 libbz2_la_SOURCES = blocksort.c  \
                     huffman.c    \
meta/recipes-extended/bzip2/bzip2-1.0.6/configure.ac +1 -4
index 47ee576..e2bf1bf 100644
@@ -1,12 +1,9 @@
 AC_PREREQ([2.57])
 
-AC_INIT(bzip2, 2.0.5, , libXrender)
+AC_INIT(bzip2, 1.0.6)
 AM_INIT_AUTOMAKE(foreign)
 AM_MAINTAINER_MODE
 
-#AM_CONFIG_HEADER(config.h)
-
-# Check for progs
 AC_PROG_CC
 AC_PROG_LIBTOOL
 
Signature · 1 line
2.7.0
#1 lore raw
Quoted 17 lines · Ross Burton

The correct name for the bzip2 shared library is libbz2.so.1.0.6, not libbz2.so.0.0.0. Pass -version-info to libtool to correct this.

Also fix the configure.ac so that is doesn't mention libXrender and has the right version.

---
 meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am  | 1 +
 meta/recipes-extended/bzip2/bzip2-1.0.6/configure.ac | 5 +----
 2 files changed, 2 insertions(+), 4 deletions(-)
meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am +0 -0
index 1d163b6..05d389f 100644

meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am line 3

Quoted 3 lines
meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am +1 -0
@@ -1,5 +1,6 @@
 
 lib_LTLIBRARIES = libbz2.la
+libbz2_la_LDFLAGS = -version-info 1:6:0

1:6:0 or 1:0:6 ?

Quoted 29 lines
meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am +0 -0
 libbz2_la_SOURCES = blocksort.c  \
                     huffman.c    \
meta/recipes-extended/bzip2/bzip2-1.0.6/configure.ac +1 -5
index 47ee576..e2bf1bf 100644
@@ -1,12 +1,9 @@
 AC_PREREQ([2.57])
 
-AC_INIT(bzip2, 2.0.5, , libXrender)
+AC_INIT(bzip2, 1.0.6)
 AM_INIT_AUTOMAKE(foreign)
 AM_MAINTAINER_MODE
 
-#AM_CONFIG_HEADER(config.h)
-
-# Check for progs
 AC_PROG_CC
 AC_PROG_LIBTOOL
 
--

2.7.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 3 lines · Andre McCurdy
Quoted 1 line

+libbz2_la_LDFLAGS = -version-info 1:6:0

1:6:0 or 1:0:6 ?

1:6:0 results in /usr/lib/libbz2.so.1.0.6, which is what upstream intended in their broken Makefile that we don't use.

Ross

#3 lore raw

Hi Ross,

I got this error when build in an old build dir:

| pbzip2: error while loading shared libraries: libbz2.so.0: cannot open shared object file: No such file or directory
| WARNING: exit code 127 from a shell command.
| ERROR: Function failed: do_image_tar (log file is located at /buildarea/lyang1/test_fetch/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_tar.33968)

ERROR: Task 19 (/buildarea/lyang1/poky/meta/recipes-core/images/core-image-minimal.bb, do_image_tar) failed with exit code '1'

It is OK when clean pbzip2-native and rebuild. But I wonder how can this happen since pbzip2-native DEPENDS on bzip2-native.

// Robert

Quoted 15 lines · Ross
Quoted 1 line · On 5 April 2016 at 23:02, Andre McCurdy <[email protected]…

+libbz2_la_LDFLAGS = -version-info 1:6:0

    1:6:0 or 1:0:6 ?

1:6:0 results in /usr/lib/libbz2.so.1.0.6, which is what upstream intended in their broken Makefile that we don't use.

Ross

#4 lore raw
Quoted 10 lines · Robert Yang

I got this error when build in an old build dir:

| pbzip2: error while loading shared libraries: libbz2.so.0: cannot open
shared object file: No such file or directory
| WARNING: exit code 127 from a shell command.
| ERROR: Function failed: do_image_tar (log file is located at /buildarea/lyang1/test_fetch/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_tar.33968)
ERROR: Task 19 (/buildarea/lyang1/poky/meta/recipes-core/images/
core-image-minimal.bb, do_image_tar) failed with exit code '1'

Quoted 3 lines

It is OK when clean pbzip2-native and rebuild. But I wonder how can this happen since pbzip2-native DEPENDS on bzip2-native.

Can you find the cooker log for this run? Did it rebuild pbzip2-native as expected?

Ross

#5 lore raw
Quoted 15 lines · Ross

On 7 April 2016 at 03:37, Robert Yang <[email protected] <mailto:[email protected]>> wrote:

I got this error when build in an old build dir:

| pbzip2: error while loading shared libraries: libbz2.so.0: cannot open
shared object file: No such file or directory
| WARNING: exit code 127 from a shell command.
| ERROR: Function failed: do_image_tar (log file is located at /buildarea/lyang1/test_fetch/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_tar.33968)
ERROR: Task 19
(/buildarea/lyang1/poky/meta/recipes-core/images/core-image-minimal.bb
<http://core-image-minimal.bb>, do_image_tar) failed with exit code '1'

Quoted 5 lines

It is OK when clean pbzip2-native and rebuild. But I wonder how can this happen since pbzip2-native DEPENDS on bzip2-native.

Can you find the cooker log for this run? Did it rebuild pbzip2-native as expected?

Yes, it did:

NOTE: recipe pbzip2-native-1.1.13-r0: task do_populate_sysroot: Started
NOTE: recipe pbzip2-native-1.1.13-r0: task do_populate_sysroot: Succeeded

// Robert

Quoted 2 lines

Ross

#6 lore raw
Quoted 24 lines · Robert Yang
Quoted 21 lines · Ross

On 7 April 2016 at 03:37, Robert Yang <[email protected] <mailto:[email protected]>> wrote:

I got this error when build in an old build dir:

| pbzip2: error while loading shared libraries: libbz2.so.0: cannot open shared object file: No such file or directory
| WARNING: exit code 127 from a shell command.
| ERROR: Function failed: do_image_tar (log file is located at

/buildarea/lyang1/test_fetch/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_tar.33968)

ERROR: Task 19 (/buildarea/lyang1/poky/meta/recipes-core/images/core-image-minimal.bb
<http://core-image-minimal.bb>, do_image_tar) failed with exit code '1'

It is OK when clean pbzip2-native and rebuild. But I wonder how can this happen since pbzip2-native DEPENDS on bzip2-native.

Quoted 8 lines
Quoted 2 lines

Can you find the cooker log for this run? Did it rebuild pbzip2-native as expected?

Yes, it did:

NOTE: recipe pbzip2-native-1.1.13-r0: task do_populate_sysroot: Started
NOTE: recipe pbzip2-native-1.1.13-r0: task do_populate_sysroot: Succeeded

I think that I've figured out the reason, do_compile re-runs, but make does nothing:

make: Nothing to be done for `all'

I will send a patch for it.

// Robert

Quoted 4 lines

// Robert

Quoted 2 lines

Ross