| Summary: | app-office/libreoffice-5.4.0.3 fails in early src_compile if userpriv not functioning for packagemanager | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Harris Landgarten <harrisl> |
| Component: | Current packages | Assignee: | Gentoo Office Team <office> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | gentoo, jstein |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Issue has been resolved and libreoffice is now building with no issue. After 5 or 6 failed builds over the weekend it is now building with no known changes. I have the exact same issue. @Harris Landgarten: do you know which package rebuild helped to fix it? Unknown, It looks like the error on -dir=icon-themes/galaxy/res/helpimg missing is still being reported in the build but for some reason the build is now continuing and working where for days it was failing. It still appears the perl statement in the ebuild is referencing a file that no longer exists so something is wrong. The build failures came back and I think I found the issue. It is in the Makefile The Makefile is calling check-if-root That is defined as check-if-root: @if test `id -u` = 1 && ! grep -q 'lxc\|docker' /proc/self/cgroup; then \ echo; \ echo 'No. You make ME a sandwich.'; \ echo; \ exit 1; \ fi This code will cause a failure if we are running as root and not running under LXC or Docker. This is causing the failure as we are running as root. When I effectively disabled the check-if-root test the build runs to completion. After a little more research it appears libreoffice will not build unless userpriv is functioning for your package manager If am using paludis so chown paludisbuild: /usr/portage/distfiles fixes the build issues with libreoffice. That is why the issue was coming and going as the owner of distfiles changed *** This bug has been marked as a duplicate of bug 620776 *** |
After upgrading some parts of gnome to 3.24 libreoffice no longer will build. Starting on line 520 of the ebuild in src_compile: echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\"" perl "${S}/helpcontent2/helpers/create_ilst.pl" \ -dir=icon-themes/galaxy/res/helpimg \ > "${path}/helpimg.ilst" [[ -s "${path}/helpimg.ilst" ]] || \ ewarn "The help images list is empty, something is fishy, report a bug." ) is causing the failure as the hard coded -dir=icon-themes/galaxy/res/helpimg no longer exists in the build directory. These are the only helpimg related files in the build directory: ./icon-themes/tango/res/helpimg ./icon-themes/breeze_svg/res/helpimg ./icon-themes/breeze_dark/res/helpimg ./icon-themes/breeze/res/helpimg ./helpcontent2/source/media/helpimg ./workdir/helpcontent2/source/auxiliary/helpimg.ilst