Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 640916

Summary: dev-libs/appstream-0.11.5 : * ninja -v -j1 -l0 -C /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-0.11.5-build install failed
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: andig.mail, dschridde+gentoobugs, gentoo, mva
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-libs:appstream-0.11.5:20171213-044153.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2
build.log
emerge --info appstream
fix creation of LINGUAS for install (linebreaks instead of /n non-escapes)

Description Toralf Förster gentoo-dev 2017-12-13 16:03:40 UTC
 * ERROR: dev-libs/appstream-0.11.5::gentoo failed (install phase):
 *   ninja -v -j1 -l0 -C /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-0.11.5-build install failed
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_20171206-200952

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-8]
2)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8  system-vm
  [2]   icedtea-bin-8 

emerge -qpv dev-libs/appstream
[ebuild  N    ] dev-libs/appstream-0.11.5  USE="qt5 -apt -doc {-test}"
Comment 1 Toralf Förster gentoo-dev 2017-12-13 16:03:43 UTC
Created attachment 509804 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-12-13 16:03:46 UTC
Created attachment 509806 [details]
dev-libs:appstream-0.11.5:20171213-044153.log
Comment 3 Toralf Förster gentoo-dev 2017-12-13 16:03:49 UTC
Created attachment 509808 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-12-13 16:03:51 UTC
Created attachment 509810 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-12-13 16:03:54 UTC
Created attachment 509812 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-12-13 16:03:57 UTC
Created attachment 509814 [details]
temp.tbz2
Comment 7 Dennis Schridde 2017-12-18 09:33:15 UTC
I believe the key is this line: msgfmt: error while opening "/var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/po/zh_TW.po/nzh_CN.po/nuk.po/ntr.po/nsv.po/nsr@latin.po/nsr.po/nsl.po/nsk.po/nru.po/npt_BR.po/npt.po/npl.po/noc.po/nnl.po/nlt.po/nko.po/nja.po/nit.po/nid.po/nhu.po/ngl.po/ngd.po/nfr.po/nfi.po/neu.po/nes.po/nen_GB.po/nde.po/nda.po/ncs.po/nckb.po/nca.po/nar.po" for reading: Not a directory

Should it be included in the summary of this report?
Comment 8 Dennis Schridde 2018-01-30 22:16:16 UTC
(In reply to Dennis Schridde from comment #7)
> I believe the key is this line: msgfmt: error while opening
> "/var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/
> po/zh_TW.po/nzh_CN.po/nuk.po/ntr.po/nsv.po/nsr@latin.po/nsr.po/nsl.po/nsk.po/
> nru.po/npt_BR.po/npt.po/npl.po/noc.po/nnl.po/nlt.po/nko.po/nja.po/nit.po/nid.
> po/nhu.po/ngl.po/ngd.po/nfr.po/nfi.po/neu.po/nes.po/nen_GB.po/nde.po/nda.po/
> ncs.po/nckb.po/nca.po/nar.po" for reading: Not a directory
> 
> Should it be included in the summary of this report?

Issue persists. Bug still hard to find using search, due to summary.
Comment 9 Dennis Schridde 2018-01-30 22:20:47 UTC
Created attachment 517194 [details]
build.log
Comment 10 Dennis Schridde 2018-01-30 22:21:13 UTC
Created attachment 517196 [details]
emerge --info appstream
Comment 11 Andreas Sturmlechner gentoo-dev 2018-01-31 22:08:06 UTC
Comment on attachment 517194 [details]
build.log

wrong build.log
Comment 12 Oleg Korsak 2018-02-04 22:41:40 UTC
same here
Comment 13 Dennis Schridde 2018-03-13 09:26:01 UTC
This is fixed in 0.11.8.

Depends-On: bug #646252
See-Also: https://bugs.gentoo.org/show_bug.cgi?id=646252
Comment 14 David Haller 2018-05-15 10:38:10 UTC
In the meantime, put the attached patch into
    /etc/portage/patches/dev-libs/appstream-0.11.5/
e.g. as appstream-0.11.5-po_meson_build.patch

We've got a rare case of "over-escaping" in the meson.build for once,
as meson seems to replace '\\' even in commands by '/', so we end up
with '/n' instead of '\n', i.e. "find -printf '%f/n'" instead of
the correct "find -printf '%f\n'". The single '\n' get replaced by
meson by an actual linebreak, so that works too.

Upstream has fixed it in .8 by putting that stuff into an extra script
see https://github.com/ximion/appstream/blob/master/contrib/meson/update-linguas.sh
Comment 15 David Haller 2018-05-15 10:39:31 UTC
Created attachment 531480 [details, diff]
fix creation of LINGUAS for install (linebreaks instead of /n non-escapes)
Comment 16 Larry the Git Cow gentoo-dev 2018-05-18 16:44:28 UTC
The bug has been closed via the following commit(s):

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

commit 563dd71917c9077c1afad0dc04e3b2924ab53b59
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-05-18 16:43:46 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-05-18 16:44:11 +0000

    dev-libs/appstream: Fix install issue w/ meson
    
    Thanks-to: David Haller <gentoo@dhaller.de>
    Closes: https://bugs.gentoo.org/640916
    Package-Manager: Portage-2.3.38, Repoman-2.3.9

 dev-libs/appstream/appstream-0.11.5.ebuild                 |  2 ++
 .../appstream/files/appstream-0.11.5-fix-meson-po.patch    | 14 ++++++++++++++
 2 files changed, 16 insertions(+)
Comment 17 Andreas Sturmlechner gentoo-dev 2018-05-18 16:45:00 UTC
Thanks for your work!