Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642734 - sci-mathematics/wxmaxima-17.10.1 - configure fails with "Could NOT find wxWidgets"
Summary: sci-mathematics/wxmaxima-17.10.1 - configure fails with "Could NOT find wxWid...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
Depends on:
Blocks: no-symlink-lib
  Show dependency tree
Reported: 2017-12-30 14:08 UTC by Alexander Tsoy
Modified: 2017-12-31 13:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

wxmaxima-17.10.1:20171230-134346.log (wxmaxima-17.10.1:20171230-134346.log,4.65 KB, text/plain)
2017-12-30 14:08 UTC, Alexander Tsoy

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2017-12-30 14:08:04 UTC
Created attachment 512060 [details]

sci-mathematics/wxmaxima-17.10.1 fails at configure phase on profile with SYMLINK_LIB=no. ebuild should use wxwidgets eclass.

$ emerge --info wxmaxima
Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.1/hardened, gcc-6.4.0, glibc-2.25-r9, 4.14.10-gentoo x86_64)
                         System Settings
System uname: Linux-4.14.10-gentoo-x86_64-AMD_Opteron_63xx_class_CPU-with-gentoo-2.4.1
KiB Mem:     2043848 total,   1239952 free
KiB Swap:    2097148 total,   2079996 free
Timestamp of repository gentoo: Sat, 30 Dec 2017 00:45:01 +0000
Head commit of repository puleglot: 8596ebfec29d2c3098259848e26b336e7b1e0cd5

sh dash
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo

    location: /var/db/repos/gentoo
    sync-type: webrsync
    priority: -1000

    location: /usr/local/portage
    masters: gentoo
    priority: 0

    location: /var/db/repos/puleglot
    sync-type: git
    sync-uri: git://
    masters: gentoo

CFLAGS="-O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y --ask-enter-invalid"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X acl amd64 bash-completion berkdb bzip2 caps cli cracklib crypt cxx device-mapper gdbm gpm gtk gtk3 hardened iconv ipv6 lz4 lzma multilib ncurses nls nptl openmp pam pcre pie readline seccomp session ssl ssp systemd udev unicode urandom vim-syntax xattr xtpax xz zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

                        Package Settings

sci-mathematics/wxmaxima-17.10.1::gentoo was built with the following:
USE="" ABI_X86="(64)" LINGUAS="ru -ca -cs -da -de -el -es -fi -fr -gl -hu -it -ja -kab -nb -pl -pt_BR -tr -uk -zh_CN -zh_TW"
Comment 1 Mart Raudsepp gentoo-dev 2017-12-30 14:25:49 UTC
Looks like old versions already used wxwidgets.eclass. Don't understand why the bump by grozin with cmake conversion would have removed it.
Comment 2 Alexander Tsoy 2017-12-30 14:30:49 UTC
(In reply to Mart Raudsepp from comment #1)

Probably because FindwxWidgets.cmake module just works with lib -> lib64 symlink. :)
Comment 3 Alexander Tsoy 2017-12-30 14:39:57 UTC
Another problem is that without wxwidgets eclass ebuild have no control on the slot of wxGTK the package will be linked with.
Comment 4 Mart Raudsepp gentoo-dev 2017-12-30 14:52:01 UTC
(In reply to Alexander Tsoy from comment #3)
> Another problem is that without wxwidgets eclass ebuild have no control on
> the slot of wxGTK the package will be linked with.

Yes, that's the main reason it even exists. SYMLINK_LIB stuff is just a small technical thing here, but it must be used for correct intended SLOT usage, not be user determined from eselect
Comment 5 Andrey Grozin gentoo-dev 2017-12-31 01:49:35 UTC
In cmake, wxwidgets configuration is done by the FindwxWidgets.cmake module which is controlled by the cmake-language variable wxWidgets_CONFIG_OPTIONS. I don't see how I can transfer some useful information from setup-wxwidgets to FindwxWidgets.cmake. Well, I, probably, can do some complicated sed on ${WX_CONFIG} to extract the needed information and paste it into wxWidgets_CONFIG_OPTIONS. But the result for wxGTK:3.0 is known in advance: wxWidgets_CONFIG_OPTIONS shouls be "--toolkit=gtk2 --version=3.0". This is exactly what I add in wxmaxima-require-wxGTK-3.0.patch.

If the 17.1 profile brteaks FindwxWidgets.cmake (which belongs to dev-util/cmake), it should patch it to make it working again. This is not a problem of sci-mathematics/wxmaxima but of dev-util/cmake on 17.1.
Comment 6 Alexander Tsoy 2017-12-31 08:07:06 UTC
FindwxWidgets.cmake relies on wx-config. In gentoo wx-config is provided by eselect-wxwidgets package and relies on environment variables exported by setup-wxwidgets()
Comment 7 Larry the Git Cow gentoo-dev 2017-12-31 13:27:47 UTC
The bug has been closed via the following commit(s):

commit 75c98d03ea71aad91fdc6aa610dfbfcd9c0bb17f
Author:     Andrey Grozin <>
AuthorDate: 2017-12-31 13:25:55 +0000
Commit:     Andrey Grozin <>
CommitDate: 2017-12-31 13:27:00 +0000

    sci-mathematics/wxmaxima: use wxwidgets.eclass
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch           |  8 --------
 sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild              | 11 ++++-------
 2 files changed, 4 insertions(+), 15 deletions(-)