Bug 2232294 - perl-Wx-GLCanvas-0.09-36.fc40 FTBFS: Makefile.PL fails
Summary: perl-Wx-GLCanvas-0.09-36.fc40 FTBFS: Makefile.PL fails
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Wx-GLCanvas
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F39FTBFS F40FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2023-08-16 07:52 UTC by Petr Pisar
Modified: 2023-08-17 15:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2023-08-16 07:52:36 UTC
perl-Wx-GLCanvas-0.09-36.fc40 fails to build in Fedora 40 and 39:

+ perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/include/wx-3.2'
Searching configuration for:
wxWidgets (any version) for (any toolkit); compiler compatibility: (any compiler) (any version); 
Available configurations:
wxWidgets 3.002002 for gtk; compiler compatibility: gcc 3.4; options: no debug, unicode, no mslu
error: Bad exit status from /var/tmp/rpm-tmp.lil3RF (%build)

A difference between passing and failing build roots is at <https://koschei.fedoraproject.org/build/15900815>.

Comment 1 Miro Hrončok 2023-08-17 13:51:17 UTC
Petr, do you know why it happens and what the actual problem is? The output is not very helpful.

(I won't be able to investigate this myself until ~September. Then, I can probably strat by bisecting the problematic update that caused this.)

Comment 2 Michal Josef Spacek 2023-08-17 14:37:43 UTC
<mock-chroot> sh-5.2# perl Makefile.PL
Searching configuration for:
wxWidgets (any version) for (any toolkit); compiler compatibility: (any compiler) (any version);

Available configurations:
wxWidgets 3.002002 for gtk; compiler compatibility: gcc 3.4; options: no debug, unicode, no mslu

<mock-chroot> sh-5.2# echo $?
2

Comment 3 Michal Josef Spacek 2023-08-17 15:06:55 UTC
Message about configuration is error (via die) from:
Makefile.PL:wxWriteMakefile(
-> /usr/lib64/perl5/vendor_perl/Wx/build/MakeMaker.pm:my %options = Wx::build::Options->get_makemaker_options( is_wxPerl_tree() ? () : ( 'saved' ) );
---> /usr/lib64/perl5/vendor_perl/Wx/build/Options.pm:Alien::wxWidgets->load( key => $alien_key );
Where $alien_key is 'gtk_3_2_1_uni_gcc_3_4'

And not found this version.

Comment 4 Michal Josef Spacek 2023-08-17 15:33:22 UTC
There is generated file /usr/lib64/perl5/vendor_perl/Wx/build/Opt.pm
The output of this file in the system which we have:
$VAR1 = {
          'extra_cflags' => '',
          'extra_libs' => '',
          'alien_key' => 'gtk_3_2_1_uni_gcc_3_4'
        };

And we need to have gtk_3_2_2_uni_gcc_3_4

The fix is to rebuild perl-Wx package on the system, where is Wx 3.2.2

There are questions:
* How to prevent this kind of issue?
* How to report real issue from the build system in a better way? The error message is horrible.


Note You need to log in before you can comment on or make changes to this bug.