Package Details: perl-alien-wxwidgets 0.69-1

Git Clone URL: https://aur.archlinux.org/perl-alien-wxwidgets.git (read-only, click to copy)
Package Base: perl-alien-wxwidgets
Description: building, finding and using wxWidgets binaries
Upstream URL: https://metacpan.org/release/Alien-wxWidgets
Licenses: GPL, PerlArtistic
Submitter: giovanni
Maintainer: swiftgeek
Last Packager: swiftgeek
Votes: 72
Popularity: 0.184787
First Submitted: 2010-02-13 04:34
Last Updated: 2017-05-09 14:27

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

not_anonymous commented on 2015-01-04 08:10

When I removed the "useless blobs"/comments it may not have been clear any longer. To wit: moving the wxgtk to makedepends insure it would build (i.e. on a machine without a previous perl-wx installed).

If this makes little to no sense, perhaps this is a bug in the intended way makepkg is suppose to work.

(Please note: I also found it neccessary to put (or leave) in the PERL5LIB='' as an export to complete the makepkg sucessfully.)

Finally, please understand that I wanted to build this against wxgtk 3.X, so I was starting with a "clean slate", so to speak, and hence the changes.

swiftgeek commented on 2015-01-04 05:21

wxgtk2.8 can be still used after uncomenting few lines and changing dependency array ofc

@not_anonymous what's the point of having perl(-alien)-wx without wxgtk?

not_anonymous commented on 2015-01-04 03:52

Sorry to bother you with the changes. I am sure you can handle them without my comments, so I removed my comments. Please note that I placed wxgtk into makedepends() besides the two patches.

swiftgeek commented on 2015-01-04 02:15

1, Again it's the next patch on issue tracker, so stop writing useless blobs of text, paste url to issue tracker instead (both 6 months old and debian seems to include them)
I just have to update pkgbuild and make sure that it works
2. Alien just selects dependency on build time (or even run time, haven't tested yet so extensively)

not_anonymous commented on 2015-01-04 02:07

Well perhaps the env portion of the first patch is not so useful/needed/wanted, but the second part of the first patch is interesting ! And the second patch is a good correction (albeit not the only way) to correct the "precedence" issue. (I made a patch doing a "s:and:&&:" on line 77 of Utility.pm that is a more direct/correct way to affect the precedence change, but I ended up going with the official version anyways...) Both of these were patches were found by going to the "bugs" link on the wxWidgets' cpan page. (i.e Neither of these changes are mine, and they offer, for the most part, good changes.)

Anyways on another topic; since some things like wxgtk2.8 and some things are/will-be moving on to wxgtk3.X,...wouldn't it make sense to offer both PKGBUILDs i.e. one for wxgtk2.8 as "perl-alien-wxwidgets-wxgtk2.8" and one as "perl-alien-wxwidgets" ?

not_anonymous commented on 2015-01-04 02:07

Well perhaps the env portion of the first patch is not so useful/needed/wanted, but the second part of the first patch is interesting ! And the second patch is a good correction (albeit not the only way) to correct the "precedence" issue. (I made a patch doing a "s:and:&&:" on line 77 of Utility.pm that is a more direct/correct way to affect the precedence change, but I ended up going with the official version anyways...) Both of these were patches were found by going to the "bugs" link on the wxWidgets' cpan page. (i.e Neither of these changes are mine, and they offer, for the most part, good changes.)

Anyways on another topic, since some things like wxgtk2.8 and some things are/will-be moving on to wxgtk3.X, SO...wouldn't make sense to offer both PKGBUILDs i.e. one for wxgtk2.8 as "perl-alien-wxwidgets-wxgtk2.8" and one as "perl-alien-wxwidgets" ?

swiftgeek commented on 2015-01-04 00:27

Instead of providing two completely WTF comments:
https://rt.cpan.org/Public/Bug/Display.html?id=94367

not_anonymous commented on 2015-01-03 23:44

I wanted to be able to use the latest wxgtk (3.0.2) for this. (I'm troublehsooting some perl-padre issues atm.......) ANYWAYS, I did the following to get this to work:

http://pastebin.com/i5BDKEFG

And it works A.O.K (so far......grin).

not_anonymous commented on 2015-01-03 23:36

I wanted to be able to use the latest wxgtk (3.0.2) for this. (I'm troublehsooting some perl-padre issues atm.......) ANYWAYS, I did the following to get this to work:

1- Ran Juster's excellent cpan2dist to get a working PKGBUILD. (Alas it does not work as is....so I went on to step 2 immediately below.)

2- Added 'wxgtk>=3.0.2' to 'makedepends' array in the PKGBUILD. Without this the module will force a direct download and try to compile of wxgtk itself.<- This results in failure.

3- Downloaded two "official" patches v/v/ cpan for this "module";
wx-config-version-and-env.patch
and
Alien-wxWidgets-0.64-returnor.patch

next
a) ...added them to the 'sources' array in the PKGBUILD

then
b) ...modified them to work with "patch -p0 ...' (I'll included them below.)

4 - Added this to the PKGBUILD;

prepare() {
cd "$srcdir/$_distdir"
patch -Np0 -i ../wx-config-version-and-env.patch
patch -Np0 -i ../Alien-wxWidgets-0.64-returnor.patch
}

5) Then "ran" (makepkg) the resulting PKGBUILD and it was A.O.K.

Here's the two patch files:

$ cat wx-config-version-and-env.patch
--- Build.PL 2014-03-23 15:48:03.000000000 +0100
+++ Build.PL 2014-08-17 17:43:36.000000000 +0200
@@ -150,11 +150,11 @@
EOP
} else {
require My::Build::Base;
- my $wx_config = My::Build::Base->awx_path_search( 'wx-config' );
+ my $wx_config = $ENV{WX_CONFIG} || My::Build::Base->awx_path_search( 'wx-config' );
if( $wx_config ) {
- my $ans = `wx-config --version`;
- if( $ans =~ /^2\./ ) {
- my $prefix = `wx-config --prefix`;
+ my $ans = `$wx_config --version`;
+ if( $ans =~ /^[23]\./ ) {
+ my $prefix = `$wx_config --prefix`;
chomp foreach $ans, $prefix;
if( _check_installed_widgets_ok($ans, $prefix) ) {
$build_wx_dflt = 'no' ;

cat Alien-wxWidgets-0.64-returnor.patch
--- lib/Alien/wxWidgets/Utility.pm 2013-04-13 03:15:38.000000000 -0500
+++ lib/Alien/wxWidgets/Utility.pm 2013-07-19 16:24:57.200682998 -0500
@@ -74,7 +74,7 @@
sub awx_cc_is_msvc {
my( $cc ) = @_;

- return $^O =~ /MSWin32/ and $cc =~ /^cl/i;
+ return ($^O =~ /MSWin32/ and $cc =~ /^cl/i);
}

sub awx_cc_is_gcc {

swiftgeek commented on 2014-03-31 21:45

Untested! - wait for this comment to disappear