Bug 2232294

Summary: perl-Wx-GLCanvas-0.09-36.fc40 FTBFS: Makefile.PL fails
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Wx-GLCanvasAssignee: Miro Hrončok <mhroncok>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: mhroncok, mspacek, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/perl-Wx-GLCanvas?collection=f40
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2168842, 2231791    

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.