Bug 205242

Summary: editors/libreoffice (5.0.3, r403255) does not build in poudriere on 11.0-CURRENT r276659
Product: Ports & Packages Reporter: Matthias Apitz <guru>
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed Overcome By Events    
Severity: Affects Only Me Keywords: needs-qa
Priority: --- Flags: bugzilla: maintainer-feedback? (office)
koobs: merge-quarterly?
Version: Latest   
Hardware: amd64   
OS: Any   

Description Matthias Apitz 2015-12-11 10:46:18 UTC
The port build in poudriere stops at the end after many hours with:

[build LNK] StaticLibrary/libvclmain.a
[build LNK] Executable/gengal.bin
[build GAL] arrows
Work on gallery 'file:///wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-5.0.3.2/workdir/Gallery/arrows'
Existing themes: 0
Existing themes: 1
Failed to acquire theme
/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-5.0.3.2/solenv/gbuild/Gallery.mk:72: recipe for target '/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-5.0.3.2/workdir/Gallery/arrows.done' failed
gmake[2]: *** [/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-5.0.3.2/workdir/Gallery/arrows.done] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-5.0.3.2'
Makefile:247: recipe for target 'build' failed
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-5.0.3.2'
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/libreoffice
====>> Cleaning up wrkdir
===>  Cleaning for libreoffice-5.0.3
build of editors/libreoffice ended at Fri Dec 11 05:33:46 CET 2015
build time: 05:09:50
!!! build failure encountered !!!

There seems to be a thread in freebsd-office in October this year already, see:
http://lists.freebsd.org/pipermail/freebsd-office/2015-October/003008.html
Comment 1 Matthias Apitz 2015-12-14 06:16:09 UTC
I could save the workspace and it shows that the two mentioned files are
zero sized:

# ls -l libreoffice-5.0.3.2/workdir/Gallery/arrows/arrows.*
-rw-r--r--  1 guru  wheel  0 Dec 13 21:48 libreoffice-5.0.3.2/workdir/Gallery/arrows/arrows.sdv
-rw-r--r--  1 guru  wheel  0 Dec 13 21:48 libreoffice-5.0.3.2/workdir/Gallery/arrows/arrows.thm

the files are generated by some tool 'gengal'

libreoffice-5.0.3.2/svx/source/gengal
libreoffice-5.0.3.2/svx/source/gengal/gengal.sh
libreoffice-5.0.3.2/svx/source/gengal/gengal.cxx

I have even instructed the exec of the tool in 'gengal.sh' with an echo
and a truss:

tail gengal.sh
...
# execute binary
echo "$sd_prog/gengal.bin" "$@" "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc" >> gengal.txt.$$
exec truss -o "gengal.tr.$$" "$sd_prog/gengal.bin" "$@" \
    "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"

but could not find the output files gengal.tr.pid and gengal.txt.pid in
the saved workspace :-(

maybe the wrapper shell script was not called;

I will now try this, it is already launched but takes 5h to get to the
point:

poudriere testport -j freebsd-head -p ports-20151208 -i -o editors/libreoffice
Comment 2 Matthias Apitz 2016-01-05 14:08:45 UTC
I have update the host r292778 and ports to r404859, with this it compiles fine;