Package Details: perl-wx 0.9932-6

Git Clone URL: https://aur.archlinux.org/perl-wx.git (read-only, click to copy)
Package Base: perl-wx
Description: Interface to the wxWidgets cross-platform GUI toolkit
Upstream URL: https://metacpan.org/dist/Wx
Licenses: GPL, PerlArtistic
Submitter: None
Maintainer: swiftgeek
Last Packager: swiftgeek
Votes: 60
Popularity: 0.000674
First Submitted: 2007-09-20 07:29 (UTC)
Last Updated: 2023-02-08 12:29 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 14 Next › Last »

yochananmarqos commented on 2022-07-03 17:48 (UTC)

This currently fails to build. Open upstream issue: https://rt.cpan.org/Public/Bug/Display.html?id=128994

Alad commented on 2022-07-03 17:32 (UTC) (edited on 2022-07-03 17:40 (UTC) by Alad)

This doesn't build with regular makepkg either. Same error from before:

==> Starting build()...
Searching configuration for:
wxWidgets 3-3.001 for gtk2; compiler compatibility: gcc 3.4; options: unicode

Available configurations:
wxWidgets 3.000005 for gtk; compiler compatibility: gcc 3.4; options: no debug, unicode, no mslu
Compilation failed in require at Makefile.PL line 21.
BEGIN failed--compilation aborted at Makefile.PL line 21.

edit: it works with wxgtk3, the same package perl-alien-wxwidgets uses. Diff:

diff --git a/PKGBUILD b/PKGBUILD
index 5981647..a48ac25 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgdesc="Interface to the wxWidgets cross-platform GUI toolkit"
 arch=('x86_64')
 url="https://metacpan.org/dist/Wx"
 license=('GPL' 'PerlArtistic')
-depends=('perl-alien-wxwidgets' 'perl-extutils-xspp' 'wxgtk2')
+depends=('perl-alien-wxwidgets' 'perl-extutils-xspp' 'wxgtk3')
 checkdepends=('xorg-server-xvfb')
 options=('!emptydirs')
 source=("https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/Wx-$pkgver.tar.gz")
@@ -19,8 +19,8 @@ build(){
   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
   perl Makefile.PL \
     --wx-unicode \
-    --wx-version=$(wx-config --version | cut -d . -f 1-2) \
-    --wx-toolkit=gtk2 \
+    --wx-version=$(wx-config-gtk3 --version | cut -d . -f 1-2) \
+    --wx-toolkit=gtk \
     INSTALLDIRS=vendor
   make
 }

edit2: almost...

ake[2]: Entering directory '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext/propgrid'
"/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp"  -noprototypes -nolinenumbers  -typemap '/usr/share/perl5/core_perl/ExtUtils/typemap' -typemap '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext/propgrid/../../typemap' -typemap '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext/propgrid/typemap'  PropertyGrid.xs > PropertyGrid.xsc
Running Mkbootstrap for PropertyGrid ()
chmod 644 "PropertyGrid.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- PropertyGrid.bs ../../blib/arch/auto/Wx/PropertyGrid/PropertyGrid.bs 644
cp lib/Wx/PropertyGrid.pm ../../blib/lib/Wx/PropertyGrid.pm
Warning: duplicate function definition 'GetSelection' detected in /usr/bin/perl -pe "s/PGPGridInterfaceBase/PropertyGrid/g" xspp/PropertyGridInterface.h, line 1148
Warning: duplicate function definition 'GetSelection' detected in /usr/bin/perl -pe "s/PGPGridInterfaceBase/PropertyGridManager/g" xspp/PropertyGridInterface.h, line 1148
Warning: duplicate function definition 'GetPropertyByLabel' detected in /usr/bin/perl -pe "s/PGPGridInterfaceBase/PropertyGridPage/g" xspp/PropertyGridInterface.h, line 519
mv PropertyGrid.xsc PropertyGrid.c
g++ -pthread   -c -I. -I.. -I/usr/lib/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0  -I. -I. -I/usr/lib/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0   -I. -I../.. -I/usr/lib/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0  -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/perl5/5.34/core_perl/CORE" -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__   -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__    -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__   PropertyGrid.c
PropertyGrid.c: In function ‘void XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)’:
PropertyGrid.c:27130:49: error: call of overloaded ‘wxVariant(wxColour&)’ is ambiguous
27130 |                 wxVariant value = wxVariant(*col);
      |                                                 ^
In file included from ../../cpp/helpers.h:19,
                 from ../../cpp/wxapi.h:170,
                 from PropertyGrid.c:23:
/usr/include/wx-3.0/wx/variant.h:187:5: note: candidate: ‘wxVariant::wxVariant(bool, const wxString&)’
  187 |     wxVariant(bool val, const wxString& name = wxEmptyString);
      |     ^~~~~~~~~
/usr/include/wx-3.0/wx/variant.h:111:5: note: candidate: ‘wxVariant::wxVariant(const wxAny&)’
  111 |     wxVariant(const wxAny& any);
      |     ^~~~~~~~~
make[2]: *** [Makefile:346: PropertyGrid.o] Error 1
make[2]: Leaving directory '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext/propgrid'
make[1]: *** [Makefile:562: subdirs] Error 2
make[1]: Leaving directory '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext'
make: *** [Makefile:682: subdirs] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

yar commented on 2021-11-10 11:08 (UTC)

I'm unable to build with devtools/makechrootpkg, errors very similar to what @ibrokemypie got almost 4 years ago. I can't figure out why. Could you please test with devtools to confirm?

yochananmarqos commented on 2021-10-31 15:46 (UTC)

@xiretza: I just built it just fine with wxgtk2 3.0.5.1-2, no need for wxgtk2.8.

xiretza commented on 2021-07-24 08:47 (UTC)

Doesn't build with wxwidgets 3.0 (https://rt.cpan.org/Public/Bug/Display.html?id=128994), wxgtk dependency needs to be changed to wxgtk2.8 (https://aur.archlinux.org/packages/wxgtk2.8/).

Adelie commented on 2021-05-07 00:15 (UTC)

I'm getting

No such 'link' library: 'adv' at /home/build/.cache/yay/perl-wx/src/Wx-0.9932/build/Wx/build/MakeMaker.pm line 212.

bartus commented on 2021-01-12 09:22 (UTC) (edited on 2021-01-12 09:22 (UTC) by bartus)

wxgtk was dropped from provides array in wxgtk2

PKGBUILD needs replacing wxgtk with wxgtk2 in depends array.

dracorp commented on 2018-02-01 18:56 (UTC) (edited on 2018-02-01 19:22 (UTC) by dracorp)

@ibrokemypie You have something missing and why are you using gcc 3.4?

% gcc --version
gcc (GCC) 7.2.1 20180116

ibrokemypie commented on 2018-01-31 13:48 (UTC)

i was able to fix this by running export CC=clang, export CXX=clang++ and replacing perl Makefile.PL in the pkgbuild with perl Makefile.pl --extra-cflags=-std=c++11

ibrokemypie commented on 2018-01-31 13:38 (UTC)

currently failing to build at all for me

==> Making package: perl-wx 0.9932-2 (Thu Feb  1 00:37:51 AEDT 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Wx-0.9932.tar.gz
==> Validating source files with sha256sums...
    Wx-0.9932.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting Wx-0.9932.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Searching configuration for:
wxWidgets (any version) for (any toolkit); compiler compatibility: gcc 3.4; 

Available configurations:
wxWidgets 3.000003 for gtk2; compiler compatibility: nc 0; options: no debug, unicode, no mslu
Compilation failed in require at Makefile.PL line 21.
BEGIN failed--compilation aborted at Makefile.PL line 21.
==> ERROR: A failure occurred in build().
    Aborting...