Ticket #170 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

unset DISPLAY

Reported by: mmaslano Owned by:
Priority: minor Milestone:
Component: downstream Version: 0.20
Keywords: Cc:

Description

The packaging of Padre-0.20 is impossible, because rpm unset display, before the build. It creates this failure:
Error: Unable to initialize gtk, is DISPLAY set properly?
Error while autoloading 'Wx::wxVERSION_STRING' at ./Build.PL line 122

I suppose this bug was introduced by checking the Wx version. It is regression to 0.17, which was the last packaged version. Maybe I can simply remove this check from Fedora distro, because rpm is checking the correct version itself.

perl -MWx -le'print "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING()'
Wx Version: 0.89 wxWidgets 2.8.9

Change History

comment:1 Changed 5 years ago by szabgab

We added it there in an attempt to make it easier to get bug reports.

I wonder if we should check $ENV{DISPLAY} before doing so or to make a special case for Fedora.
Is there a way the Build.PL can recognize it is running in the Fedora build environment?

comment:2 Changed 5 years ago by mmaslano

This is not only Fedora bug, but it's a problem for all rpm builds or for all build systems, which don't have display set as default. Is there any other way how to check Wx version?

comment:3 Changed 5 years ago by mmaslano

Hm, I was able to switch the problematic test in 0.20. But in 0.21 I wasn't able to track down, which package is trying to initialize gtk.

comment:4 Changed 5 years ago by mmaslano

My last attempt to install Padre-0.21 from cpan also failed. I assume this problem can't be distro specific.
...
Padre-0.21/script/
Padre-0.21/script/padre
Padre-0.21/META.yml
Padre-0.21/Makefile.PL
Padre-0.21/MANIFEST
Padre-0.21/HACKING.txt
CPAN: File::Temp loaded ok (v0.20)

CPAN.pm: Going to build S/SM/SMUELLER/Padre-0.21.tar.gz

Checking if your kit is complete...
Looks good
Error: Unable to initialize gtk, is DISPLAY set properly?
Warning: No success on commandMakefile.PL

SMUELLER/Padre-0.21.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK

Running make test

Make had some problems, won't test

Running make install

Make had some problems, won't install

Failed during this command:

SMUELLER/Padre-0.21.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 6

comment:5 Changed 5 years ago by szabgab

When we used Module::Build (up till 0.20) it could check the require minimum version of the
Wx related things without a DISPLAY.

Once we switched to Module::Install the requires Wx, gives that error when calling WriteAll?

We could skip that requires call when the DISPLAY is not set but maybe something in MI can be fixed so it won't create that error about gtk.

comment:6 Changed 5 years ago by szabgab

  • Status changed from new to closed
  • Resolution set to fixed

supposed to be fixed in 0.22
please reopen this bug if it is still there.

Note: See TracTickets for help on using tickets.