Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568368 - [science overlay] sci-mathematics/gappa-1.1.1 fails to compile if ${MAKEOPTS} contains --load-average
Summary: [science overlay] sci-mathematics/gappa-1.1.1 fails to compile if ${MAKEOPTS}...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
Keywords: PATCH
Depends on:
Blocks: makeopts-ignored
  Show dependency tree
Reported: 2015-12-15 22:43 UTC by Bernd
Modified: 2021-06-09 14:25 UTC (History)
1 user (show)

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

gappa-1.1.1 src_compile patch (gappa-1.1.1-compile.patch,471 bytes, patch)
2015-12-15 22:43 UTC, Bernd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2015-12-15 22:43:21 UTC
Created attachment 419298 [details, diff]
gappa-1.1.1 src_compile patch

The src_compile() function passes ${MAKEOPTS} to ./remake, which, in my case, contains a --load-average (-l) option in addition to --jobs (-j). According to make.conf(5) this is recommended. Although the remake command knows about the --jobs (or -j) option, it doesn't accept the --load-average option, and emake fails.
The supplied patch works for me.
Comment 1 Bernd 2015-12-15 22:45:06 UTC
Portage 2.2.24 (python 3.4.3-final-0, default/linux/amd64/13.0/systemd, gcc-4.9.3, glibc-2.21-r1, 4.1.12-gentoo-6 x86_64)
System uname: Linux-4.1.12-gentoo-6-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    16334356 total,    333168 free
KiB Swap:    4194300 total,   4175912 free
Timestamp of repository gentoo: Mon, 14 Dec 2015 09:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3::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.18.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 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.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo

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

    location: /usr/local/portage
    masters: gentoo

    location: /var/lib/layman/dotnet
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

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

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

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

    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

    location: /var/lib/layman/octave
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

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

    location: /var/lib/layman/sunrise
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

    location: /var/lib/layman/wine-a-holics
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

Installed sets: @haskell-platform, @my_kde-plasma, @my_latex, @my_qt
CFLAGS="-O2 -pipe -march=native"
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 /var/lib/hsqldb"
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=native"
EMERGE_DEFAULT_OPTS="--with-bdeps y --complete-graph --jobs=8 --load-average=7 --keep-going"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-logs buildsyspkg 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=native"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l7"
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"
USE="X aac acl alsa amd64 bindist bzip2 cairo caps cli cracklib crypt cuda cups cxx dbus dga dri eds egl emacs exif faac ffmpeg flac fontconfig fortran gconf gd gdbm gdm gif glade gles2 gme gnome gnome-keyring gpg gstreamer gtk gtk3 iconv icu idn inotify introspection ipv6 java jbig jpeg jpeg2k kde kerberos latex lcms ldap libnotify mmx mmxext modules mono mp3 multilib nautilus ncurses networkmanager nls nptl nss odbc offensive ogg opencl openexr opengl openldap openmp opus pam pch pcre pdf pic plymouth png policykit postgres pulseaudio python qml qt3support qt4 qt5 readline samba sdl seccomp session speex sqlite sse sse2 ssl startup-notification svg systemd tcpd theora threads tiff truetype twolame udev udisks unicode upower valgrind vdpau vorbis webkit webp x264 xattr xinerama xml xv xvid xvmc zeitgeist zeroconf 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="actions alias auth_basic auth_digest 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 imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation rewrite setenv if speling status unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="prefork" 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="3dnow 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="de de_DE en en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" 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"
Comment 2 Larry the Git Cow gentoo-dev 2021-06-09 14:25:19 UTC
The bug has been closed via the following commit(s):

commit 17f2d67ce495f5dc5a7c904e3a2ace655fb6e117
Author:     Lucas Mitrak <>
AuthorDate: 2021-06-08 11:45:57 +0000
Commit:     Andrew Ammerlaan <>
CommitDate: 2021-06-09 14:25:16 +0000

    sci-mathematics/gappa: Remove -l or --load-average from ${MAKEOPTS}
    * Remove -l or --load-average from ${MAKEOPTS} in src_compile()
    Currently, sci-mathematics/gappa will fail to compile if either -l or
    --load-average is set in ${MAKEOPTS} because remake does not accept
    them. This commit will remove either -l or --load-average from
    ${MAKEOPTS} during the src_compile() stage in the same method found in
    a suggested patch [1] written by developer Lars Wendler in bug
    653554 [2]. This will allow the package to compile and install
    This commit was tested in a docker image with dev-util/ebuildtester.
    This commit was written, tested, and submitted by Lucas Mitrak.
    Signed-off-by: Lucas Mitrak <>
    Signed-off-by: Andrew Ammerlaan <>

 sci-mathematics/gappa/gappa-1.3.5.ebuild | 5 +++++
 1 file changed, 5 insertions(+)