Skip to contentSkip to conversation

gcc-common.inc: Consider multilib when renaming libgcc for debian'ness

PATCH Applied Khem Raj 4 participants 7 messages Sep 24, 2012 – Sep 28, 2012

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 gcc-common.inc: Consider multilib when renaming libgcc for debian'ness

When doing multilib builds rpm does not find libgcc1 for lib32 multilib because its not honoring the debian renaming scheme for libgcc-multilib. Lets add MLPREFIX to fix it.

---
 meta/recipes-devtools/gcc/gcc-common.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-common.inc +1 -1
index 3b00017..38f3b7f 100644
@@ -40,7 +40,7 @@ def get_gcc_multiarch_setting(bb, d):
 # For now, libgcc is most important so we fix for that - RP.
 SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs"
 
-DEBIANNAME_libgcc = "libgcc1"
+DEBIANNAME_${MLPREFIX}libgcc = "libgcc1"
 
 MIRRORS =+ "\
 ${GNU_MIRROR}/gcc    ftp://gcc.gnu.org/pub/gcc/releases/ \n \
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 8 lines · Khem Raj

When doing multilib builds rpm does not find libgcc1 for lib32 multilib because its not honoring the debian renaming scheme for libgcc-multilib. Lets add MLPREFIX to fix it.

---
 meta/recipes-devtools/gcc/gcc-common.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Merged to master, thanks.

Richard

#2 lore raw

This should probably go in denzil as well.

-M

Quoted 19 lines · Richard Purdie
Quoted 8 lines · Khem Raj

When doing multilib builds rpm does not find libgcc1 for lib32 multilib because its not honoring the debian renaming scheme for libgcc-multilib. Lets add MLPREFIX to fix it.

---
 meta/recipes-devtools/gcc/gcc-common.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Merged to master, thanks.

Richard

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

#3 lore raw
Quoted 1 line · On Tue, 2012-09-25 at 18:07 +0000, McClintock Matthew-B29882 wrote:

This should probably go in denzil as well.

Lets hold off that as I think we need to fix this in a better way at the core level...

Cheers,

Richard

#4 lore raw
Quoted 5 lines · Richard Purdie
Quoted 1 line · On Tue, 2012-09-25 at 18:07 +0000, McClintock Matthew-B29882 wrote:

This should probably go in denzil as well.

Lets hold off that as I think we need to fix this in a better way at the core level...

This? Where there follow up fixes also?

-M

commit 42e8c8056719326b68b1602e0699eba00a924d2b

Author: Richard Purdie <[email protected]>
Date:   Wed Sep 26 12:56:58 2012 +0100

packagedata/multilib: Fix search patch for multilib builds

The current multilib search path code for packagedata is flawed since it doesn't correctly handle changes in the TARGET_VENDOR/TARGET_OS that multilib may make. This patch enhances the code to correctly build the search paths so multilib packagedata is found correctly.

(From OE-Core rev: f50c5d36b2da9b36d56d95a7d89404509a1a3e9b)

Quoted 10 lines

Cheers,

Richard

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

#5 lore raw
In reply to Khem Raj
Quoted 14 lines · Khem Raj

When doing multilib builds rpm does not find libgcc1 for lib32 multilib because its not honoring the debian renaming scheme for libgcc-multilib. Lets add MLPREFIX to fix it.

---
  meta/recipes-devtools/gcc/gcc-common.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-common.inc +0 -0
index 3b00017..38f3b7f 100644

meta/recipes-devtools/gcc/gcc-common.inc def get_gcc_multiarch_setting(bb, d): · line 43

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-common.inc +1 -1
@@ -40,7 +40,7 @@ def get_gcc_multiarch_setting(bb, d):
  # For now, libgcc is most important so we fix for that - RP.
  SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs"
 
-DEBIANNAME_libgcc = "libgcc1"
+DEBIANNAME_${MLPREFIX}libgcc = "libgcc1"

I realize this is a fairly rare case, but should the debian (or multilib) bbclasses be multilib aware, and if so automatically generate the corresponding DEBIANNAME_${MLPREFIX}pn = value?

This is already done for blacklists, preferred provider/version and whitelists in the base.bbclass. Then if anyone (in the future) specifies DEBIANNAME, it'll be automatic.

--Mark

Quoted 3 lines
meta/recipes-devtools/gcc/gcc-common.inc +0 -0
  MIRRORS =+ "\
  ${GNU_MIRROR}/gcc    ftp://gcc.gnu.org/pub/gcc/releases/ \n \
 
#6 lore raw
Quoted 25 lines · Mark Hatle
Quoted 14 lines · Khem Raj

When doing multilib builds rpm does not find libgcc1 for lib32 multilib because its not honoring the debian renaming scheme for libgcc-multilib. Lets add MLPREFIX to fix it.

---
  meta/recipes-devtools/gcc/gcc-common.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-common.inc +0 -0
index 3b00017..38f3b7f 100644

meta/recipes-devtools/gcc/gcc-common.inc def get_gcc_multiarch_setting(bb, d): · line 43

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-common.inc +1 -1
@@ -40,7 +40,7 @@ def get_gcc_multiarch_setting(bb, d):
  # For now, libgcc is most important so we fix for that - RP.
  SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs"
 
-DEBIANNAME_libgcc = "libgcc1"
+DEBIANNAME_${MLPREFIX}libgcc = "libgcc1"

I realize this is a fairly rare case, but should the debian (or multilib) bbclasses be multilib aware, and if so automatically generate the corresponding DEBIANNAME_${MLPREFIX}pn = value?

Quoted 3 lines

This is already done for blacklists, preferred provider/version and whitelists in the base.bbclass. Then if anyone (in the future) specifies DEBIANNAME, it'll be automatic.

The multilib/package code does have a list of variables it processes for this, this one should probably be added to that list.

In fact debian.bbclass should append it to the list package.bbclass has...

Cheers,

Richard