Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 821265 - app-office/libreoffice-7.2.2.2 compile error due to Makefile issues
Summary: app-office/libreoffice-7.2.2.2 compile error due to Makefile issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL: https://git.libreoffice.org/core/+/0e...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 813399
  Show dependency tree
 
Reported: 2021-11-02 03:06 UTC by David Korth
Modified: 2021-12-08 15:08 UTC (History)
2 users (show)

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


Attachments
emerge info (emerge-info-libreoffice.txt,15.31 KB, text/plain)
2021-11-02 20:56 UTC, Karl Ernst Brunk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Korth 2021-11-02 03:06:02 UTC
Compiling libreoffice-7.2.2.2 on my system resulted in a repeatable crash in gengal.bin:

[build GAL] backgrounds
S=/var/tmp/portage/app-office/libreoffice-7.2.2.2/work/libreoffice-7.2.2.2 && I=$S/instdir && W=$S/workdir &&  rm -f $W/Gallery/backgrounds/* && RESPONSEFILE=/var/tmp/portage/app-office/libreoffice-7.2.2.2/temp/gbuild.uaSdmc &&  (  LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program"   $I/program/gengal.bin --build-tree --destdir file://$S/extras/source/gallery --name "backgrounds" --path $W/Gallery/backgrounds --filenames file://$RESPONSEFILE ) && rm $RESPONSEFILE && touch $W/Gallery/backgrounds.done 
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
make[1]: *** [/var/tmp/portage/app-office/libreoffice-7.2.2.2/work/libreoffice-7.2.2.2/solenv/gbuild/Gallery.mk:56: /var/tmp/portage/app-office/libreoffice-7.2.2.2/work/libreoffice-7.2.2.2/workdir/Gallery/backgrounds.done] Error 134

A similar bug was posted on the FreeBSD bug tracker. There's an upstream patch that fixes it.

FreeBSD bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257997

Reproducible: Always

Steps to Reproduce:
1. emerge =libreoffice-7.2.2.2 (May need MAKEOPTS=-j1)

Actual Results:  
Build fails because gengal.bin crashes.

Expected Results:  
Build succeeds.
Comment 1 Karl Ernst Brunk 2021-11-02 20:56:44 UTC
Created attachment 748116 [details]
emerge info

On my system with flags noted at the end of the attachment, everything builds fine.
Tue Nov  2 21:47:03 2021 >>> app-office/libreoffice-7.2.2.2
       merge time: 1 hour, 30 minutes and 56 seconds.
Comment 2 Larry the Git Cow gentoo-dev 2021-11-05 05:39:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d66acedc71220d7d5728aaa17dcebab14b4d2b8

commit 5d66acedc71220d7d5728aaa17dcebab14b4d2b8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-05 05:38:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-05 05:38:52 +0000

    app-office/libreoffice: add upstream Makefile patch to 7.2.2.2
    
    Closes: https://bugs.gentoo.org/821265
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libreoffice-7.2.2.2-makefile-gengal.patch      | 90 ++++++++++++++++++++++
 app-office/libreoffice/libreoffice-7.2.2.2.ebuild  |  3 +
 2 files changed, 93 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-05 05:39:39 UTC
Thanks!
Comment 4 Andreas Sturmlechner gentoo-dev 2021-12-08 13:39:31 UTC
When adding an upstreamed patch, please always mention which branch it was taken from so it is clear what to do on subsequent version bumps.
Comment 5 Andreas Sturmlechner gentoo-dev 2021-12-08 14:30:56 UTC
...and don't forget about stable branch or next version bump will lose the fix.
Comment 6 Larry the Git Cow gentoo-dev 2021-12-08 15:08:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc416d838a3deed2cebc6a0bc646d37150cdc1f3

commit cc416d838a3deed2cebc6a0bc646d37150cdc1f3
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-12-08 13:55:50 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-12-08 15:07:47 +0000

    app-office/libreoffice: Forward patch to 7.2 stable branch
    
    Fix comment of origin.
    
    Bug: https://bugs.gentoo.org/821265
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-office/libreoffice/libreoffice-7.2.3.2.ebuild  | 2 +-
 app-office/libreoffice/libreoffice-7.2.9999.ebuild | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)