diff options
author | Lucas Mitrak <lucas@lucasmitrak.com> | 2021-06-08 07:45:57 -0400 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-06-09 16:25:16 +0200 |
commit | 17f2d67ce495f5dc5a7c904e3a2ace655fb6e117 (patch) | |
tree | 7d4de5d7cb2e138464aa405d12426641a2b5b282 | |
parent | sci-biology/jellyfish: Call econf in src_configure in 1.1.12 (diff) | |
download | sci-17f2d67ce495f5dc5a7c904e3a2ace655fb6e117.tar.gz sci-17f2d67ce495f5dc5a7c904e3a2ace655fb6e117.tar.bz2 sci-17f2d67ce495f5dc5a7c904e3a2ace655fb6e117.zip |
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
correctly.
This commit was tested in a docker image with dev-util/ebuildtester.
This commit was written, tested, and submitted by Lucas Mitrak.
[1] https://653554.bugs.gentoo.org/attachment.cgi?id=528056
[2] https://bugs.gentoo.org/653554
Closes: https://bugs.gentoo.org/568368
Signed-off-by: Lucas Mitrak <lucas@lucasmitrak.com>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
-rw-r--r-- | sci-mathematics/gappa/gappa-1.3.5.ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sci-mathematics/gappa/gappa-1.3.5.ebuild b/sci-mathematics/gappa/gappa-1.3.5.ebuild index 26461a439..d7907989d 100644 --- a/sci-mathematics/gappa/gappa-1.3.5.ebuild +++ b/sci-mathematics/gappa/gappa-1.3.5.ebuild @@ -28,6 +28,11 @@ src_prepare() { } src_compile() { + # Remove --load-average or -l because remake does not accept these + echo ${MAKEOPTS} | egrep -o '(\-l|\-\-load\-average)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null + if [ $? -eq 0 ]; then + MAKEOPTS="${MAKEOPTS/$(echo ${MAKEOPTS} | egrep -o '(\-l|\-\-load\-average)(=?|[[:space:]]*)[[:digit:]]+')/}" + fi ./remake -d ${MAKEOPTS} || die "emake failed" if use doc; then ./remake doc/html/index.html |