Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638914 - sys-apps/portage: missed texinfo rebuild after perl update (was sys-libs/binutils-libs-2.29.1-r1 : XSParagraph.c: loadable library and perl binaries are mismatched)
Summary: sys-apps/portage: missed texinfo rebuild after perl update (was sys-libs/binu...
Status: RESOLVED DUPLICATE of bug 689644
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 673914 687226 687356 (view as bug list)
Depends on:
Blocks: build-order
  Show dependency tree
 
Reported: 2017-11-26 18:55 UTC by Toralf Förster
Modified: 2021-05-17 21:34 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,14.63 KB, text/plain)
2017-11-26 18:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,15.29 KB, text/plain)
2017-11-26 18:55 UTC, Toralf Förster
Details
environment (environment,92.76 KB, text/plain)
2017-11-26 18:55 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.36 KB, application/x-bzip)
2017-11-26 18:55 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,26.17 KB, application/x-bzip)
2017-11-26 18:55 UTC, Toralf Förster
Details
sys-libs:binutils-libs-2.29.1-r1:20171126-181933.log (sys-libs:binutils-libs-2.29.1-r1:20171126-181933.log,132.42 KB, text/plain)
2017-11-26 18:55 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,33.31 KB, application/x-bzip)
2017-11-26 18:55 UTC, Toralf Förster
Details
w.txt (w.txt,2.31 KB, text/plain)
2017-11-27 17:49 UTC, Toralf Förster
Details
debug.log.xz (debug.log.xz,162.48 KB, application/x-bzip)
2017-11-27 20:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,10.63 KB, text/plain)
2019-06-22 08:45 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-11-26 18:55:15 UTC
rm -rf $backupdir; exit $rc
XSParagraph.c: loadable library and perl binaries are mismatched (got handshake key 0xd600000, needed 0xd880000)
make[3]: *** [Makefile:472: bfd.info] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-libs/binutils-libs-2.29.1-r1/work/binutils-2.29.1-abi_x86_64.amd64/bfd/doc'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_libressl_20171126-113635

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0
 [2] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)




emerge -qpv sys-libs/binutils-libs
[ebuild  N    ] sys-libs/binutils-libs-2.29.1-r1  USE="nls -64-bit-bfd -multitarget -static-libs" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2017-11-26 18:55:18 UTC
Created attachment 506748 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-11-26 18:55:21 UTC
Created attachment 506750 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-11-26 18:55:24 UTC
Created attachment 506752 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-11-26 18:55:26 UTC
Created attachment 506754 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-11-26 18:55:29 UTC
Created attachment 506756 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-11-26 18:55:32 UTC
Created attachment 506758 [details]
sys-libs:binutils-libs-2.29.1-r1:20171126-181933.log
Comment 7 Toralf Förster gentoo-dev 2017-11-26 18:55:35 UTC
Created attachment 506760 [details]
temp.tbz2
Comment 8 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-11-26 21:58:55 UTC
This is a broken texinfo:

Sun Nov 26 17:15:32 2017 <<< dev-lang/perl-5.24.3
Sun Nov 26 17:15:35 2017 >>> dev-lang/perl-5.26.1-r1

/usr/lib64/texinfo/XSParagraph.so

uses perl symbols but does not link against perl.

texinfo has perl:= in RDEPENDS

This merge however did not rebuild texinfo as required after upgrading perl, but before using texinfo.

This package however has texinfo in DEPEND 

Making this a "Portage didn't make sure bdepends work before using them" bug.

But bug #598444 is supposed to be fixed in portage 2.3.13
Comment 9 Zac Medico gentoo-dev 2017-11-26 23:16:57 UTC
This should show a texinfo rebuild:

    emerge -puvD @world

Do you see the texinfo rebuild there? Is there a binutils-libs update there? What order are they in?
Comment 10 Toralf Förster gentoo-dev 2017-11-27 17:49:04 UTC
Created attachment 506838 [details]
w.txt

emerge -puvD @world 1>/tmp/w.txt 2>&1
Comment 11 Zac Medico gentoo-dev 2017-11-27 19:10:51 UTC
(In reply to Toralf Förster from comment #10)
> Created attachment 506838 [details]
> w.txt
> 
> emerge -puvD @world 1>/tmp/w.txt 2>&1

There's no texinfo rebuild shown there. Is texinfo reachable from world? This will show:

  emerge -pev @world | grep texinfo

We should also check the direct reverse dependencies:

  emerge -pv --depclean texinfo
Comment 12 Toralf Förster gentoo-dev 2017-11-27 19:34:52 UTC
(In reply to Zac Medico from comment #11)
mr-fox / #   emerge -pe^Cworld 1>/tmp/w.txt 2>&1
mr-fox / # emerge -pev @world | grep texinfo
[ebuild   R    ]   sys-apps/texinfo-6.5::gentoo  USE="nls -static" 0 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-util/ragel:0

  (dev-util/ragel-7.0.0.10:0/0::gentoo, ebuild scheduled for merge) conflicts with
    =dev-util/ragel-6* required by (dev-ruby/redcloth-4.3.2:0/0::gentoo, ebuild scheduled for merge)
    ^               ^^

mr-fox / # emerge -pv --depclean texinfo

Calculating dependencies... done!
  sys-apps/texinfo-6.5 pulled in by:
    app-arch/sharutils-4.15.2 requires sys-apps/texinfo
    app-emulation/qemu-2.10.1 requires sys-apps/texinfo
    sys-apps/ed-1.14.2 requires sys-apps/texinfo
    sys-boot/grub-2.02 requires sys-apps/texinfo
    sys-devel/autoconf-2.13 requires >=sys-apps/texinfo-4.3
    sys-devel/gdb-8.0.1 requires sys-apps/texinfo
    sys-fs/e2fsprogs-1.43.7 requires sys-apps/texinfo
    sys-libs/binutils-libs-2.28.1 requires >=sys-apps/texinfo-4.7
    sys-libs/gpm-1.20.7-r2 requires sys-apps/texinfo

>>> No packages selected for removal by depclean
Packages installed:   663
Packages in world:    79
Packages in system:   44
Required packages:    663
Number to remove:     0
Comment 13 Zac Medico gentoo-dev 2017-11-27 19:50:28 UTC
Please attach a debug log created as follows:

    emerge -puvD @world --debug > debug.log 2>&1
    xz -9 debug.log
Comment 14 Toralf Förster gentoo-dev 2017-11-27 20:23:19 UTC
Created attachment 506872 [details]
debug.log.xz
Comment 15 Zac Medico gentoo-dev 2017-11-27 20:30:44 UTC
(In reply to Toralf Förster from comment #14)
> Created attachment 506872 [details]
> debug.log.xz

The debug log shows dev-lang/perl:0/5.26= in the dependencies of the installed instance of sys-apps/texinfo-6.5, which means that it has already been rebuilt.

I guess that means that you've rebuilt it during the time since this bug was filed? Did that solve the problem with the binutils-libs build?
Comment 16 Toralf Förster gentoo-dev 2017-11-27 21:13:38 UTC
(In reply to Zac Medico from comment #15)
Well, it is a tinderbox image - it goes on, yes :

mr-fox / # qlop --gauge --human --list --unlist | grep -e binutils -e dev-lang/perl
Sun Nov 26 17:15:32 2017 <<< dev-lang/perl-5.24.3
Sun Nov 26 17:15:35 2017 >>> dev-lang/perl-5.26.1-r1
Sun Nov 26 19:34:12 2017 >>> sys-libs/binutils-libs-2.28.1

I re-scheduled the 2.29-r1 Version, will see tomorrow, if it builds now too.
Comment 17 Toralf Förster gentoo-dev 2018-12-28 21:07:14 UTC
*** Bug 673914 has been marked as a duplicate of this bug. ***
Comment 18 tt_1 2019-02-04 14:52:37 UTC
Is this still a thing?
Comment 19 Toralf Förster gentoo-dev 2019-02-09 17:42:49 UTC
No idea, I do automatically "resolve" such Perl issues by this code:
  https://github.com/toralf/tinderbox/blob/master/bin/job.sh#L850
b/c it happened too often here at tinderbox images.
Comment 20 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-02-11 05:35:26 UTC
I havent seen any changes in portage that would indicate something has been done to fix this. Last I looked its not fixable from ebuild-space.
Comment 21 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-06-04 18:56:25 UTC
*** Bug 687356 has been marked as a duplicate of this bug. ***
Comment 22 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-06-04 19:01:15 UTC
*** Bug 687226 has been marked as a duplicate of this bug. ***
Comment 23 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-06-04 19:04:18 UTC
As we can see about the 2 recent bugs filed, this is "still a thing".

How it manifests can vary now, because instead of texinfo having only 1 XS component, it now has several, but the underlying cause of "Portage failed to rebuild something, and that something was in BDEPEND, and portage assumed things in BDEPEND work regardless of whether they've been rebuilt to satisfy their subslots, but things in BDEPEND are actually broken, so thanks"
Comment 24 Larry the Git Cow gentoo-dev 2019-06-05 02:30:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6e0516deec8d5aeedd03a92d47c044d37ea062e

commit d6e0516deec8d5aeedd03a92d47c044d37ea062e
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2019-06-05 02:29:37 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2019-06-05 02:30:17 +0000

    sys-apps/texinfo: Add useflag xs (default off) toggling C in Perl
    
    When pure Perl is used, texinfo will be slower, however, there is no need for
    rebuilds on Perl upgrade. Since this is our most frequent road bump at the
    moment, see portage bug 638914, we take the slowdown by default and hope that
    things improve. Not sure how well this will work out, however, since texinfo
    again depends on other Perl modules, which are installed in version dependent
    paths.
    
    Bug: https://bugs.gentoo.org/638914
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-apps/texinfo/metadata.xml          |  7 +++++
 sys-apps/texinfo/texinfo-6.6-r2.ebuild | 47 ++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
Comment 25 Larry the Git Cow gentoo-dev 2019-06-05 12:18:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0fb8fb03453037b07e7393cf00c73e8210ab658

commit b0fb8fb03453037b07e7393cf00c73e8210ab658
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2019-06-05 12:16:38 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2019-06-05 12:16:38 +0000

    sys-apps/texinfo: Re-add keywords to -r3 with standalone useflag
    
    This should now be a complete workaround for bug 638914, at least
    as far as texinfo is concerned: with default USE=+standalone,
    * texinfo does not install anything linking to libperl anymore
    * texinfo installs only pure-perl modules, and only in its own
      library path
    * the modules do not depend on anything from the regular perl
      installation except the perl interpreter itself
    
    Bug: https://bugs.gentoo.org/638914
    Package-Manager: Portage-2.3.67, Repoman-2.3.14
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-apps/texinfo/texinfo-6.6-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 26 Toralf Förster gentoo-dev 2019-06-22 08:42:29 UTC
(In reply to Larry the Git Cow from comment #25)
> The bug has been referenced in the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=b0fb8fb03453037b07e7393cf00c73e8210ab658
> 
> commit b0fb8fb03453037b07e7393cf00c73e8210ab658
> Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
> AuthorDate: 2019-06-05 12:16:38 +0000
> Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
> CommitDate: 2019-06-05 12:16:38 +0000
> 
>     sys-apps/texinfo: Re-add keywords to -r3 with standalone useflag
>     
>     This should now be a complete workaround for bug 638914, at least
>     as far as texinfo is concerned: with default USE=+standalone,
>     * texinfo does not install anything linking to libperl anymore
>     * texinfo installs only pure-perl modules, and only in its own
>       library path
>     * the modules do not depend on anything from the regular perl
>       installation except the perl interpreter itself
>     
>     Bug: https://bugs.gentoo.org/638914
>     Package-Manager: Portage-2.3.67, Repoman-2.3.14
>     Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
> 
>  sys-apps/texinfo/texinfo-6.6-r3.ebuild | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Which did not fix the issue entirely I fear - will attach an emerge history, where dev-libs/check still fails
Comment 27 Toralf Förster gentoo-dev 2019-06-22 08:45:13 UTC
Created attachment 580406 [details]
emerge-history.txt

still get a dev-libs/check-0.12.0 : MiscXS.c: loadable library and perl binaries are mismatched
Comment 28 Toralf Förster gentoo-dev 2019-06-22 08:47:40 UTC
(In reply to Toralf Förster from comment #27)
> Created attachment 580406 [details]
> emerge-history.txt
> 
> still get a dev-libs/check-0.12.0 : MiscXS.c: loadable library and perl
> binaries are mismatched

But I must admit -r1 was installed, not -r3 at that image.
Comment 29 Andreas K. Hüttel archtester gentoo-dev 2021-05-17 21:34:18 UTC

*** This bug has been marked as a duplicate of bug 689644 ***