Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 590216

Summary: app-office/libreoffice-5.1.4.2 ignores MAKEOPTS
Product: Gentoo Linux Reporter: Alex Efros <powerman-asdf>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED OBSOLETE    
Severity: normal CC: arthur
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 654178    
Attachments: app-office:libreoffice-5.1.4.2:20160801-115618.log.bz2

Description Alex Efros 2016-08-01 14:38:45 UTC
Ignored MAKEOPTS=-j4 and use -j8 instead.

To work around set GMAKE_OPTIONS=-j4.
Comment 1 Mike Gilbert gentoo-dev 2016-08-02 23:23:58 UTC
Please attach a build log.
Comment 2 Alex Efros 2016-08-02 23:47:05 UTC
(In reply to Mike Gilbert from comment #1)
> Please attach a build log.

I'm not sure what you wanna see in that log. It doesn't contains list of env variables, and when I've compared logs with and without GMAKE_OPTIONS first difference was in make args (it get -j arg twice for some reason):

# diff -u app-office:libreoffice-5.1.4.2:20160801-115618.log app-office:libreoffice-5.1.4.2:20160801-143008.log | head -n 12
--- app-office:libreoffice-5.1.4.2:20160801-115618.log	2016-08-01 15:57:31.598874506 +0300
+++ app-office:libreoffice-5.1.4.2:20160801-143008.log	2016-08-01 22:31:09.661221713 +0300
@@ -563,7 +563,7 @@
 Automatic fetching of external tarballs is disabled.
 mkdir -p /var/tmp/portage/app-office/libreoffice-5.1.4.2/work/libreoffice-5.1.4.2/instdir
 /var/tmp/portage/app-office/libreoffice-5.1.4.2/work/libreoffice-5.1.4.2/solenv/bin/install-gdb-printers -a /var/tmp/portage/app-office/libreoffice-5.1.4.2/work/libreoffice-5.1.4.2/instdir -c
-make -j 8  -j8 -f /var/tmp/portage/app-office/libreoffice-5.1.4.2/work/libreoffice-5.1.4.2/Makefile.gbuild  build  
+make -j 8  -j4 -f /var/tmp/portage/app-office/libreoffice-5.1.4.2/work/libreoffice-5.1.4.2/Makefile.gbuild  build  
 make[1]: Entering directory '/var/tmp/portage/app-office/libreoffice-5.1.4.2/work/libreoffice-5.1.4.2'
 mkdir -p /var/tmp/portage/app-office/libreoffice-5.1.4.2/work/libreoffice-5.1.4.2/workdir/Headers/Library/
 mkdir -p /var/tmp/portage/app-office/libreoffice-5.1.4.2/work/libreoffice-5.1.4.2/workdir/LinkTarget/Library/
@@ -802,14 +802,14 @@

I'll attach full log anyway, just in case.
Comment 3 Alex Efros 2016-08-02 23:50:07 UTC
Created attachment 442340 [details]
app-office:libreoffice-5.1.4.2:20160801-115618.log.bz2

I had to `bzip2 -9` that log, because it was too large for uploading.
Comment 4 Andreas Sturmlechner gentoo-dev 2016-08-31 20:57:19 UTC
This is done inside the ebuild already:

$ grep MAKEOPTS libreoffice-5.1.4.2.ebuild
        export GMAKE_OPTIONS="${MAKEOPTS}"
Comment 5 Alex Efros 2016-09-01 00:55:47 UTC
(In reply to Andreas Sturmlechner from comment #4)
> This is done inside the ebuild already:
> 
> $ grep MAKEOPTS libreoffice-5.1.4.2.ebuild
>         export GMAKE_OPTIONS="${MAKEOPTS}"

Probably doing this only in src_configure is not enough.
Comment 6 fkater 2017-12-13 22:05:20 UTC
FYI:

Same here.

MAKEOPTS="--jobs=5" but viewing compilation of libreoffice-5.4.2.2 (in htop) shows "make -j 1".

Some more hints:

- AFAIK many (all?) other builds are hit by this issue
- I am running several similar gentoo boxes and just one has this issue
- I am using paludis-9999 on all machines
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2020-11-26 23:36:58 UTC
Please reopen or file a new bug if you still see this with libreoffice-7