Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590532 - sci-mathematics/octave-3.8.2: several configure and ebuild related problems
Summary: sci-mathematics/octave-3.8.2: several configure and ebuild related problems
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-05 08:55 UTC by Bernd
Modified: 2016-08-07 09:38 UTC (History)
0 users

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


Attachments
ebuild log file (octave-3.8.2:20160805-064029.log.bz2,59.65 KB, application/x-bzip)
2016-08-05 08:59 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2016-08-05 08:55:20 UTC
The re-install due to USE-flag change of octave-3.8.2 shows several problems.

1. Shouldn't there be a use-flag restriction in the ebuild to support either imagemagick or graphicsmagick, but not both? They are both enabled by default in the ebuild. First I tried installing with the given use-flags, which include graphicsmagick by default. After a compile failure (see below under 3.) I removed the graphicsmagick use-flag, but the package was still installed and the octave ebuild was using graphicsmagick instead of imagemagick, like this (for full log-file see attachment):
<snip>
...
 * USE:        X abi_x86_64 amd64 curl doc elibc_glibc fftw glpk gnuplot gui hdf5 imagemagick java kernel_linux opengl postscript qhull qrupdate readline sparse userland_GNU zlib
...
Octave is now configured for x86_64-pc-linux-gnu
...
  Magick++ CPPFLAGS:           -I/usr/include/GraphicsMagick 
  Magick++ LDFLAGS:            
  Magick++ libraries:          -lGraphicsMagick++ -lGraphicsMagick 
</snip>


2. The configure script doesn't find ncurses or termcap on several places, although both of them are installed:
waebbl@artus ~ $ ls -l /lib64/libncurs* /usr/lib64/libterm*
lrwxrwxrwx 1 root root     17 Dec 21  2015 /lib64/libncurses.so.5 -> libncurses.so.5.9
-rwxr-xr-x 1 root root 179824 Dec 21  2015 /lib64/libncurses.so.5.9
lrwxrwxrwx 1 root root     18 Dec 21  2015 /lib64/libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x 1 root root 233480 Dec 21  2015 /lib64/libncursesw.so.5.9
lrwxrwxrwx 1 root root     19 Dec 21  2015 /usr/lib64/libtermcap.so.2 -> libtermcap.so.2.0.8
-rwxr-xr-x 1 root root  18400 Dec 21  2015 /usr/lib64/libtermcap.so.2.0.8
Log-file:
checking for library containing tputs... no
configure: WARNING: I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!
checking for rl_set_keyboard_input_timeout in -lreadline... yes


3. The configuration for Qt looks incomplete. I have an almost full Qt5 install, but for Qt4 only parts which are pulled in by other packages are installed, trying to get rid of Qt4. configure checks for moc, uic, ... and also for moc-qt4 and moc-qt5, but when it finds the tools it doesn't check the version:waebbl@artus ~ $ which moc
/usr/bin/moc
waebbl@artus ~ $ file `which moc`
/usr/bin/moc: symbolic link to qtchooser
waebbl@artus ~ $ moc --version
moc 5.6.1

The ebuild then chooses Qt4.
Log-file:
  Qt CPPFLAGS:                 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I/usr/include/qt4/QtCore 
  Qt LDFLAGS:                  -L/usr/lib64/qt4 
  Qt libraries:                -lQtGui -lQtNetwork -lQtCore  -lqscintilla2
This leads to an compile error in that it doesn't find the include file QtWidgets/QAction:
Log-file:
In file included from src/settings-dialog.cc:30:0:
src/ui-settings-dialog.h:13:29: fatal error: QtWidgets/QAction: No such file or directory
 #include <QtWidgets/QAction>
Furthermore, dev-qt/qtwidgets is only available for slot 5, so the ebuild should have chosen Qt5 anyways.

Reproducible: Always

Steps to Reproduce:
1. USE="-imagemagick" emerge graphicsmagick
2. emerge =octave-3.8.2
3. USE="-graphicsmagick" emerge =octave-3.8.2
Actual Results:  
Step 2 and 3 failed with the same error of not finding QtWidgets/QAction
waebbl@artus ~ $ ls /usr/include/qt4/QtWidgets/QAction
ls: cannot access /usr/include/qt4/QtWidgets/QAction: No such file or directory
waebbl@artus ~ $ ls /usr/include/qt5/QtWidgets/QAction
/usr/include/qt5/QtWidgets/QAction
On step 3, octave would have been linked against graphicsmagick, although it should have been linked against imagemagick

Expected Results:  
* Linking against imagemagick in step 3
* Selection of the proper Qt release.

artus etc # emerge --info =sci-mathematics/octave-3.8.2
Portage 2.3.0_rc1 (python 3.4.5-final-0, default/linux/amd64/13.0/systemd, gcc-4.9.3, glibc-2.22-r4, 4.4.6-gentoo-2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.6-gentoo-2-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    16397792 total,   8173352 free
KiB Swap:    4194300 total,   4193280 free
Timestamp of repository gentoo: Thu, 04 Aug 2016 15:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /mnt/data/code/gentoo-overlay
    masters: gentoo
    priority: 10

bar
    location: /var/lib/layman/bar
    sync-type: laymansync
    sync-uri: git://github.com/tokiclover/bar-overlay.git
    masters: gentoo
    priority: 50

dracwyrm
    location: /mnt/data/code/dracwyrm-gentoo-ebuilds/gentoo-ebuilds
    sync-type: laymansync
    sync-uri: git://github.com/drawcyrm/gentoo-ebuilds.git
    masters: gentoo
    priority: 50

enlightenment
    location: /var/lib/layman/enlightenment
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/enlightenment.git
    masters: gentoo
    priority: 50

gamerlay
    location: /var/lib/layman/gamerlay
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/gamerlay.git
    masters: gentoo
    priority: 50

games-overlay
    location: /var/lib/layman/games-overlay
    sync-type: laymansync
    sync-uri: git://github.com/hasufell/games-overlay.git
    masters: gentoo
    priority: 50

haskell
    location: /var/lib/layman/haskell
    sync-type: laymansync
    sync-uri: git://github.com/gentoo-haskell/gentoo-haskell.git
    masters: gentoo
    priority: 50

multimedia
    location: /var/lib/layman/multimedia
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/multimedia.git
    masters: gentoo
    priority: 50

octave
    location: /var/lib/layman/octave
    sync-type: laymansync
    sync-uri: git://github.com/rafaelmartins/octave-overlay.git
    masters: gentoo
    priority: 50

prism-overlay
    location: /var/lib/layman/prism-overlay
    sync-type: laymansync
    sync-uri: git://github.com/hasufell/prism-overlay.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

toolchain
    location: /var/lib/layman/toolchain
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/toolchain.git
    masters: gentoo
    priority: 50

wine-a-holics
    location: /var/lib/layman/wine-a-holics
    sync-type: laymansync
    sync-uri: git://github.com/NP-Hardass/wine-a-holics.git
    masters: gentoo
    priority: 50

Installed sets: @3D, @adm-tools, @android, @base, @desktop, @dev-tools, @doc-tools, @docs, @fonts, @games, @haskell, @haskell-platform, @langs, @media, @my_latex, @netz, @nvidia, @office, @qt, @sci, @sec, @server, @steam, @vcs, @virt, @web, @xfce, @zip
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128 -mvzeroupper"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128 -mvzeroupper"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps n --complete-graph --jobs=1 --keep-going"
FCFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128 -mvzeroupper"
FEATURES="assume-digests binpkg-logs buildpkg candy cgroup clean-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128 -mvzeroupper"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 bindist bzip2 cli cracklib crypt cxx dri fortran gdbm gif gnome-keyring iconv ipv6 jpeg mmx mmxext modules multilib ncurses nls nptl offensive opengl openmp pam pcre pic png policykit pulseaudio python readline seccomp session sse sse2 ssl svg systemd tcpd threads tiff udev unicode xattr 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" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de de-DE en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="de de_DE en en_GB en_US" NGINX_MODULES_HTTP="access addition auth_basic auth_pam autoindex browser cache_purge charset dav dav_ext echo empty_gif fancyindex fastcgi flv geo geoip gunzip gzip headers_more image_filter limit_conn limit_req map memc memcached metrics mp4 naxsi proxy push_stream realip referer rewrite scgi secure_link slowfs_cache split_clients ssi sticky stub_status sub upload_progress upstream_check upstream_ip_hash userid uwsgi xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nvidia vesa" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sci-mathematics/octave-3.8.2::gentoo was built with the following:
USE="X curl doc fftw glpk gnuplot gui hdf5 imagemagick java opengl postscript qhull qrupdate readline sparse zlib -static-libs" ABI_X86="64"

artus etc # grep graphicsmagick /etc/portage/package.use/media-gfx 
media-gfx/graphicsmagick fpx jbig jpeg2k lcms lzma postscript q32 truetype webp wmf

artus etc # grep octave /etc/portage/package.use/sci-mathematics 
sci-mathematics/octave -graphicsmagick curl doc fftw gnuplot gui hdf5 java postscript
Comment 1 Bernd 2016-08-05 08:59:48 UTC
Created attachment 442594 [details]
ebuild log file

I had to zip the file, because of file size limit.
Comment 2 Bernd 2016-08-05 09:11:42 UTC
Another point I just discovered, the ebuild doesn't find the sci-libs/cxsparse package, although it is installed:

artus ~ # eix -I -n -c cxsparse
[I] sci-libs/cxsparse (2.2.1@12/21/2015): Extended sparse matrix package

artus ~ # ls -l /usr/include/cs.h 
-rw-r--r-- 1 root root 30768 Dec 21  2015 /usr/include/cs.h

artus ~ # equery belongs /usr/include/cs.h
 * Searching for /usr/include/cs.h ... 
sci-libs/cxsparse-2.2.1 (/usr/include/cs.h)

but the log-file shows:
checking for cs.h... no
configure: WARNING: CXSparse library not found.  This will result in some lack of functionality for sparse matrices.
Comment 3 Coacher 2016-08-06 10:06:11 UTC
(In reply to Bernd from comment #0)
Thank you for the extensive bugreport.

> 1. Shouldn't there be a use-flag restriction in the ebuild to support either
> imagemagick or graphicsmagick, but not both?
This issue is addressed in bug 590280.

Please _separately_ report other issues you've found. One issue per report.
It's hard and cumbersome to track multiple issues within a single bugreport.