Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627784 - app-office/libreoffice-5.4.0.3 fails in early src_compile if userpriv not functioning for packagemanager
Summary: app-office/libreoffice-5.4.0.3 fails in early src_compile if userpriv not fun...
Status: RESOLVED DUPLICATE of bug 620776
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-13 17:00 UTC by Harris Landgarten
Modified: 2017-10-06 22:51 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2017-08-13 17:00:20 UTC
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
Comment 1 Harris Landgarten 2017-08-14 04:30:00 UTC
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.
Comment 2 Stefan Briesenick 2017-08-27 16:37:33 UTC
I have the exact same issue.

@Harris Landgarten: do you know which package rebuild helped to fix it?
Comment 3 Harris Landgarten 2017-08-27 20:21:46 UTC
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.
Comment 4 Harris Landgarten 2017-09-04 16:40:03 UTC
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.
Comment 5 Harris Landgarten 2017-09-04 17:01:03 UTC
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
Comment 6 Andreas Sturmlechner gentoo-dev 2017-10-06 22:51:49 UTC

*** This bug has been marked as a duplicate of bug 620776 ***