Skip to contentSkip to conversation

Bad gcc packaging (libgcc-s1 instead of libgcc1)

DISCUSSION Rod Whitby 2 participants 3 messages Mar 15, 2007

lore
Share & tools
lore

Rod Whitby

author
#0 lore raw

I'm getting a libgcc-s1 package emitted by gcc_4.1.1.bb instead of the normal libgcc1. This is poisoning all builds that depend on libgcc1, and is polluting the slugos feeds with bad dependencies.

I believe it is caused by the patch in
http://lists.linuxtogo.org/pipermail/openembedded-commits/2007-March/004007.html

I have tested reverting that patch locally, and the libgcc-s1 package was not emitted.

So I wish to revert that patch.

I'm looking for confirmation that this problem is happening to others. I will revert the patch locally on our autobuilder, and wait for confirmation before committing that reversion.

-- Rod

#1 lore raw

Quoting Rod Whitby <[email protected]>:

Quoted 2 lines

I'm getting a libgcc-s1 package emitted by gcc_4.1.1.bb instead of the normal libgcc1.

The situation is a bit more nuanced: gcc (non-cross) never emitted libgcc1, gcc-cross did. So gcc_4.bb was not packaging its libgcc as it should have.

Quoted 2 lines

This is poisoning all builds that depend on libgcc1,
and is polluting the slugos feeds with bad dependencies.

That is correct and indeed very annoying.

Quoted 2 lines

I believe it is caused by the patch in

http://lists.linuxtogo.org/pipermail/openembedded-commits/2007-March/004007.html

Quoted 5 lines

I have tested reverting that patch locally, and the libgcc-s1 package was not emitted.

So I wish to revert that patch.

Please properly fix it by having gcc emit libgcc1 instead, otherwise your native gcc package won't work properly if gcc-cross was a different version (which is not a common case, but still). I think putting a construction like gcc-package-cross.inc has:

python do_package() {
        if bb.data.getVar('DEBIAN_NAMES', d, 1):
                bb.data.setVar('PKG_libgcc', 'libgcc1', d)
        bb.build.exec_func('package_do_package', d)
}

in gcc-package.inc should work. Could you test that?

Sorry for breaking everyones packages.

regards,

Koen

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

author
#2 lore raw
Quoted 10 lines · Koen Kooi

I think putting a construction like
gcc-package-cross.inc has:

python do_package() {
        if bb.data.getVar('DEBIAN_NAMES', d, 1):
                bb.data.setVar('PKG_libgcc', 'libgcc1', d)
        bb.build.exec_func('package_do_package', d)
}

in gcc-package.inc should work. Could you test that?

That works here.

Quoted 1 line

Sorry for breaking everyones packages.

Apology accepted.

-- Rod