Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516346 - sys-apps/systemd-215 error generating polkit policy files due to intltool bug
Summary: sys-apps/systemd-215 error generating polkit policy files due to intltool bug
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL: https://bugs.launchpad.net/intltool/+...
Whiteboard:
Keywords: NeedPatch, UPSTREAM
: 493542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-04 09:39 UTC by Stefan G. Weichinger
Modified: 2015-09-24 18:56 UTC (History)
7 users (show)

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


Attachments
build.log for systemd-215 (build.log,80.90 KB, text/plain)
2014-07-04 12:02 UTC, Stefan G. Weichinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan G. Weichinger 2014-07-04 09:39:50 UTC
On one of my ~amd64 systems it builds fine, on another it does not.


Reproducible: Always

Steps to Reproduce:
1. # MAKEOPTS="-j1" emerge -1 systemd
2. fails with build.log posted below

Actual Results:  
# last lines of build.log

gperf < /var/tmp/portage/sys-apps/systemd-215/work/systemd-215/src/udev/net/link-config-gperf.gperf > src/udev/net/link-config-gperf.c
/bin/mkdir -p src/gudev/
glib-genmarshal /var/tmp/portage/sys-apps/systemd-215/work/systemd-215/src/gudev/gudevmarshal.list --prefix=g_udev_marshal --header > src/gudev/gudevmarshal.h
/bin/mkdir -p src/gudev/
echo '#include "gudevmarshal.h"' > src/gudev/gudevmarshal.c && \
glib-genmarshal /var/tmp/portage/sys-apps/systemd-215/work/systemd-215/src/gudev/gudevmarshal.list --prefix=g_udev_marshal --body >> src/gudev/gudevmarshal.c
/bin/mkdir -p src/gudev/
glib-mkenums --template /var/tmp/portage/sys-apps/systemd-215/work/systemd-215/src/gudev/gudevenumtypes.c.template /var/tmp/portage/sys-apps/systemd-215/work/systemd-215/src/gudev/gudevenums.h > src/gudev/gudevenumtypes.c
make --no-print-directory all-recursive
Making all in .
LC_ALL=C /usr/bin/intltool-merge  -x -u -c ./po/.intltool-merge-cache /var/tmp/portage/sys-apps/systemd-215/work/systemd-215/po /var/tmp/portage/sys-apps/systemd-215/work/systemd-215/src/hostname/org.freedesktop.hostname1.policy.in src/hostname/org.freedesktop.hostname1.policy
Cannot open src/hostname/org.freedesktop.hostname1.policy: No such file or directory
Generating and caching the translation database
Merging translations into src/hostname/org.freedesktop.hostname1.policy.
Makefile:17435: recipe for target 'src/hostname/org.freedesktop.hostname1.policy' failed
make[2]: *** [src/hostname/org.freedesktop.hostname1.policy] Error 2
Makefile:15899: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:8056: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: sys-apps/systemd-215::gentoo failed (compile phase):
 *   emake failed


Expected Results:  
correct build


checked that /var/tmp/portage/sys-apps/systemd-215/work/systemd-215/src/hostname/org.freedesktop.hostname1.policy exists ... 

# emerge --info
Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.19-r1, 3.15.3-gentoo x86_64)
=================================================================
System uname: Linux-3.15.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16393444 total,  11294000 free
KiB Swap:    3905532 total,   3905532 free
Timestamp of tree: Fri, 04 Jul 2014 09:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.6.4, 4.7.4, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo ephemeral mrpdaemon flow hiro-oops-intern
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=1.5 --ignore-built-slot-operator-deps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/ephemeral /var/lib/layman/mrpdaemon /var/lib/layman/flow /usr/local/portage"
SYNC="rsync://172.32.99.6/gentoo-portage"
USE="X a52 aac acl alsa amd64 berkdb bitmap-fonts bluetooth branding bzip2 cairo cdda cdr cleartype cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms libnotify libsecret mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline sdl session socialweb spell sse sse2 ssl startup-notification svg systemd tcpd tiff truetype truetype-fonts type1 type1-fonts udev udisks unicode upower usb vaapi vorbis wxwidgets x264 xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="systemd caps" ELIBC="glibc" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Stefan G. Weichinger 2014-07-04 09:55:46 UTC
Ah, I see, I checked the wrong directory.

It fails in /var/tmp/portage/sys-apps/systemd-215/work/systemd-215-abi_x86_64.amd64  and the missing file is:

/var/tmp/portage/sys-apps/systemd-215/work/systemd-215-abi_x86_64.amd64/src/hostname/org.freedesktop.hostname1.policy

the whole subdir "hostname" is missing in src

It seems as if it should chose 

/var/tmp/portage/sys-apps/systemd-215/work/systemd-215

instead of systemd-215-abi_x86_64.amd64, right?
Comment 2 Stefan G. Weichinger 2014-07-04 10:11:23 UTC
I was able to compile it after doing this:

cd /var/tmp/portage/sys-apps/systemd-215/work/systemd-215-abi_x86_64.amd64
mkdir src/timedate
mkdir src/login
mkdir src/locale
chown -R portage:portage src

Don't know if this is correct.

Thanks, Stefan
Comment 3 Albert W. Hopkins 2014-07-04 11:10:55 UTC
I have this issue as well.  It built on one system, but failed with the error on another.  The  only difference I saw was that the working systemd had USE=-filecaps where the breaking system had the flag on, but when I tried USE=filecaps on the breaking system it still fails with the same error.

Finally I saw that the two systems had different python's eselected but changing that didn't make any difference either.
Comment 4 Albert W. Hopkins 2014-07-04 11:47:48 UTC
Seems like a dupe of #493542 although the work-around still didn't work for me.
Comment 5 Stefan G. Weichinger 2014-07-04 11:51:04 UTC
(In reply to Albert W. Hopkins from comment #4)
> Seems like a dupe of #493542 although the work-around still didn't work for
> me.

In my initial report I already tried MAKEOPTS="-j1" without success.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2014-07-04 11:57:45 UTC
(In reply to Stefan G. Weichinger from comment #0)
> On one of my ~amd64 systems it builds fine, on another it does not.
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. # MAKEOPTS="-j1" emerge -1 systemd
> 2. fails with build.log posted below
> 
> Actual Results:  
> # last lines of build.log

Post complete build.log, please, it's always useful when looking at build errors, it will directly show on top of it what USE flags were used as well as the ./configure output

This is likely related to the new --enable/--disable-nls flag upstream introduced that is directly related to the --enable/--disable-polkit
Comment 7 Stefan G. Weichinger 2014-07-04 12:02:03 UTC
Created attachment 380176 [details]
build.log for systemd-215
Comment 8 Stefan G. Weichinger 2014-07-04 12:35:02 UTC
(In reply to Stefan G. Weichinger from comment #7)
> Created attachment 380176 [details]
> build.log for systemd-215

on my 2 thinkpads it built fine, just tested on the L520.
build.log for one of those as well?
Comment 9 Mike Gilbert gentoo-dev 2014-07-04 15:37:03 UTC
(In reply to Stefan G. Weichinger from comment #1)
> the whole subdir "hostname" is missing in src

There is probably some missing make dependency that allows intltool-merge to be called before mkdir -p src/hostname.

It is quite strange that you get this with MAKEOPTS=-j1.
Comment 10 Mike Gilbert gentoo-dev 2014-07-04 15:40:17 UTC
Err.. actually that directory should get created by configure. So this quite a mystery indeed.
Comment 11 Mike Gilbert gentoo-dev 2014-07-04 15:43:28 UTC
Hmm... configure only creates it if dependency tracking is enabled; econf disables this by default.
Comment 12 Mike Gilbert gentoo-dev 2014-07-04 15:49:05 UTC
Try this as a kludge/workaround:

EXTRA_ECONF="--enable-dependency-tracking" emerge -1 systemd
Comment 13 Albert W. Hopkins 2014-07-04 16:33:31 UTC
(In reply to Mike Gilbert from comment #12)
> Try this as a kludge/workaround:
> 
> EXTRA_ECONF="--enable-dependency-tracking" emerge -1 systemd


The above workaround works for me, although I'm still confused as to why it's not needed on some systems but is for others.
Comment 14 Mike Gilbert gentoo-dev 2014-07-04 16:49:24 UTC
(In reply to Albert W. Hopkins from comment #13)

It just causes configure to create the directory instead of deferring it to the (broken) Makefile.
Comment 15 Stefan G. Weichinger 2014-07-04 17:06:09 UTC
(In reply to Mike Gilbert from comment #12)
> Try this as a kludge/workaround:
> 
> EXTRA_ECONF="--enable-dependency-tracking" emerge -1 systemd

works here as well.
Comment 16 Mike Gilbert gentoo-dev 2014-07-04 17:51:02 UTC
If I run "touch /usr/bin/intltool-merge" so that it has a newer mtime than the .policy files in the systemd tarball, I can consistently reproduce this failure.

I have added --enable-dependency-tracking to the ebuild for now. Another viable workaround would be to do an in-source build.

The real solution would be to fix the rule in m4/intltool.m4 to create the parent directory, but I'm not sure how to do so.
Comment 17 Mike Gilbert gentoo-dev 2014-08-21 01:02:12 UTC
*** Bug 493542 has been marked as a duplicate of this bug. ***
Comment 18 mike@marineau.org 2015-07-08 07:27:27 UTC
Bug for the upstream intltool project: https://bugs.launchpad.net/intltool/+bug/605826
Comment 19 Stefan G. Weichinger 2015-09-23 19:18:44 UTC
suggesting to close this one as OBSOLETE? 
(outdated version of package ... not in portage anymore)