Re: [gentoo-user] Several packages failing to build

2018-05-15 Thread Elijah Mark Anderson
On Monday, May 14, 2018 12:20:01 PM CDT Elijah Mark Anderson wrote:
> I'm having an issue with about a dozen packages not upgrading. I'd really
> appreciate some help getting them to build and install. I'm getting the
> feeling that the problems are somehow related, but really not sure.
> 
> First up: dev-libs/appstream-0.11.5::gentoo
> Anyone know what's going on here? This package is blocking at least 5 other
> packages from upgrading, and I find the information in the logs only
> slightly more helpful than WIndows "Something went wrong" errors.
> --
> Elijah Mark Anderson
> m...@kd0bpv.name
> --
> 「塵も積もれば山となる。」
> "Even dust, when piled up, becomes a mountain" - Ancient Japanese proverb

After remembering that I was running emerge with MAKEOPTS="-j9", I was finally 
able to find the actual error messages. It appears that /usr/include/boost/
spirit/home/qi.hpp went missing, probably during the recent move from my 
mechanical drive to my solid state drives. Re-emerged dev-libs/boost, and that 
solved the rest of the failing packages!

-- 
Elijah Mark Anderson
m...@kd0bpv.name
--
「塵も積もれば山となる。」
"Even dust, when piled up, becomes a mountain" - Ancient Japanese proverb

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Several packages failing to build

2018-05-15 Thread Elijah Mark Anderson
On Tuesday, May 15, 2018 5:40:02 AM CDT David Haller wrote:
> Hello,
> 
> On Mon, 14 May 2018, Elijah Mark Anderson wrote:
> >in the build log. I had forgotten that I was running emerge with
> >MAKEOPTS="- j9", which means that errors are not always at the bottom of
> >the log. When I remembered it, I searched the log for "error[: ]", and
> >bingo! Here's the relevant entry:
> >
> >[39/106] /usr/bin/python3.5 /usr/lib/python-exec/python3.5/meson --internal
> >msgfmthelper ../appstream-APPSTREAM_0_11_5/data/
> >org.freedesktop.appstream.cli.metainfo.xml data/
> >org.freedesktop.appstream.cli.metainfo.xml xml /var/tmp/portage/dev-libs/
> >appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/po --datadirs=/var/tmp/
> >portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/data/
> >FAILED: data/org.freedesktop.appstream.cli.metainfo.xml
> >/usr/bin/python3.5 /usr/lib/python-exec/python3.5/meson --internal
> >msgfmthelper ../appstream-APPSTREAM_0_11_5/data/
> >org.freedesktop.appstream.cli.metainfo.xml data/
> >org.freedesktop.appstream.cli.metainfo.xml xml /var/tmp/portage/dev-libs/
> >appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/po --datadirs=/var/tmp/
> >portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/data/
> >msgfmt: error while opening
> >"/var/tmp/portage/dev-libs/appstream-0.11.5/work/
> >appstream-APPSTREAM_0_11_5/po/zh_TW.po/nja.po/npt_BR.po/n...@latin.po/ncs.p
> >o/
> >ngd.po/nfi.po/nid.po/nlt.po/nen_GB.po/nzh_CN.po/nuk.po/nckb.po/nar.po/nnl.
> >po/
> >nru.po/nko.po/nda.po/nsr.po/nfr.po/nhu.po/npt.po/nit.po/nsv.po/nca.po/nes.
> >po/ nde.po/nsl.po/noc.po/ngl.po/npl.po/ntr.po/nsk.po/neu.po" for reading:
> >Not a directory
> >
> >Looks like you were right after all, as
> >https://bugs.gentoo.org/640916#c7 is indeed a pretty dang close
> >match. Looks like a bug in the package itself. I'll mask this
> >version, as #c13 claims this is fixed in 0.11.8. Hopefully that'll be
> >in the tree soon(TM).
> 
> 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-lingua
> s.sh
> 
> HTH,
> -dnh
> 
> --
> 
> > Vollmonde erscheinen Periodisch alle 28 Tage.
> 
> erst jetzt wird mir die Bedeutung des "blutroten Mondes" richtig bewußt.
>  [Harald Stowasser und Cheatah in dag°]

Awesome! Thanks, David! 

-- 
Elijah Mark Anderson
m...@kd0bpv.name
--
「塵も積もれば山となる。」
"Even dust, when piled up, becomes a mountain" - Ancient Japanese proverb

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Several packages failing to build

2018-05-15 Thread David Haller
Hello,

On Mon, 14 May 2018, Elijah Mark Anderson wrote:
>in the build log. I had forgotten that I was running emerge with MAKEOPTS="-
>j9", which means that errors are not always at the bottom of the log. When I 
>remembered it, I searched the log for "error[: ]", and bingo! Here's the 
>relevant entry:
>
>[39/106] /usr/bin/python3.5 /usr/lib/python-exec/python3.5/meson --internal 
>msgfmthelper ../appstream-APPSTREAM_0_11_5/data/
>org.freedesktop.appstream.cli.metainfo.xml data/
>org.freedesktop.appstream.cli.metainfo.xml xml /var/tmp/portage/dev-libs/
>appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/po --datadirs=/var/tmp/
>portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/data/
>FAILED: data/org.freedesktop.appstream.cli.metainfo.xml 
>/usr/bin/python3.5 /usr/lib/python-exec/python3.5/meson --internal 
>msgfmthelper ../appstream-APPSTREAM_0_11_5/data/
>org.freedesktop.appstream.cli.metainfo.xml data/
>org.freedesktop.appstream.cli.metainfo.xml xml /var/tmp/portage/dev-libs/
>appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/po --datadirs=/var/tmp/
>portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/data/
>msgfmt: error while opening "/var/tmp/portage/dev-libs/appstream-0.11.5/work/
>appstream-APPSTREAM_0_11_5/po/zh_TW.po/nja.po/npt_BR.po/n...@latin.po/ncs.po/
>ngd.po/nfi.po/nid.po/nlt.po/nen_GB.po/nzh_CN.po/nuk.po/nckb.po/nar.po/nnl.po/
>nru.po/nko.po/nda.po/nsr.po/nfr.po/nhu.po/npt.po/nit.po/nsv.po/nca.po/nes.po/
>nde.po/nsl.po/noc.po/ngl.po/npl.po/ntr.po/nsk.po/neu.po" for reading: Not a 
>directory
>
>Looks like you were right after all, as
>https://bugs.gentoo.org/640916#c7 is indeed a pretty dang close
>match. Looks like a bug in the package itself. I'll mask this
>version, as #c13 claims this is fixed in 0.11.8. Hopefully that'll be
>in the tree soon(TM).

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

HTH,
-dnh

-- 
> Vollmonde erscheinen Periodisch alle 28 Tage.
erst jetzt wird mir die Bedeutung des "blutroten Mondes" richtig bewußt.
 [Harald Stowasser und Cheatah in dag°]
diff -urN -x '*~' a/po/meson.build b/po/meson.build
--- a/po/meson.build	2017-09-04 18:09:52.0 +0200
+++ b/po/meson.build	2018-05-15 12:24:42.0 +0200
@@ -21,7 +21,7 @@
 'find ' + meson.current_source_dir() +
 ' -type f' +
 ' -iname "*.po"' +
-' -printf \'%f\\n\'' +
+' -printf \'%f\n\'' +
 ' | grep -oP \'.*(?=[.])\' | sort' +
 ' > ' + join_paths(meson.current_source_dir(), 'LINGUAS')
 ]


Re: [gentoo-user] Several packages failing to build

2018-05-14 Thread Elijah Mark Anderson
On Monday, May 14, 2018 4:53:09 PM CDT Mick wrote:
> On Monday, 14 May 2018 21:07:17 BST Elijah Mark Anderson wrote:
> > On Monday, May 14, 2018 12:58:13 PM CDT Mick wrote:
> > > On Monday, 14 May 2018 18:20:01 BST Elijah Mark Anderson wrote:
> > > > I'm having an issue with about a dozen packages not upgrading. I'd
> > > > really
> > > > appreciate some help getting them to build and install. I'm getting
> > > > the
> > > > feeling that the problems are somehow related, but really not sure.
> > > > 
> > > > First up: dev-libs/appstream-0.11.5::gentoo
> > > > Anyone know what's going on here? This package is blocking at least 5
> > > > other
> > > > packages from upgrading, and I find the information in the logs only
> > > > slightly more helpful than WIndows "Something went wrong" errors.
> > > 
> > > It's worth checking in BGO to see if your problems with ~amd64 packages
> > > are
> > > already reported and if any patches/fixes/workarounds have been posted.
> > > In
> > > this case have a look here, I think it is the same problem you have
> > > experienced:
> > > 
> > > https://bugs.gentoo.org/640916
> > > 
> > > --
> > > Regards,
> > > Mick
> > 
> > I did come across that. I don't believe it is the same problem. For them,
> > the problem is during the install phase. Mine is occurring in compile
> > phase.
> 
> Fair enough, I did not dig into it at any depth.  Without knowing the real
> cause of this failure and if nothing else resolves it, I would try to
> rebuild gettext & perhaps libxml2:
> 
> emerge -1aDv sys-devel/gettext dev-libs/libxml2
> 
> then try emerging dev-libs/appstream once more.  Running ~arch involves more
> troubleshooting and experimenting than I have time at present, hence I
> stick with stable where I can.
> 
> --
> Regards,
> Mick

I tried as you suggested, to no avail. But, I *finally* found the actual error 
in the build log. I had forgotten that I was running emerge with MAKEOPTS="-
j9", which means that errors are not always at the bottom of the log. When I 
remembered it, I searched the log for "error[: ]", and bingo! Here's the 
relevant entry:

[39/106] /usr/bin/python3.5 /usr/lib/python-exec/python3.5/meson --internal 
msgfmthelper ../appstream-APPSTREAM_0_11_5/data/
org.freedesktop.appstream.cli.metainfo.xml data/
org.freedesktop.appstream.cli.metainfo.xml xml /var/tmp/portage/dev-libs/
appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/po --datadirs=/var/tmp/
portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/data/
FAILED: data/org.freedesktop.appstream.cli.metainfo.xml 
/usr/bin/python3.5 /usr/lib/python-exec/python3.5/meson --internal 
msgfmthelper ../appstream-APPSTREAM_0_11_5/data/
org.freedesktop.appstream.cli.metainfo.xml data/
org.freedesktop.appstream.cli.metainfo.xml xml /var/tmp/portage/dev-libs/
appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/po --datadirs=/var/tmp/
portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5/data/
msgfmt: error while opening "/var/tmp/portage/dev-libs/appstream-0.11.5/work/
appstream-APPSTREAM_0_11_5/po/zh_TW.po/nja.po/npt_BR.po/n...@latin.po/ncs.po/
ngd.po/nfi.po/nid.po/nlt.po/nen_GB.po/nzh_CN.po/nuk.po/nckb.po/nar.po/nnl.po/
nru.po/nko.po/nda.po/nsr.po/nfr.po/nhu.po/npt.po/nit.po/nsv.po/nca.po/nes.po/
nde.po/nsl.po/noc.po/ngl.po/npl.po/ntr.po/nsk.po/neu.po" for reading: Not a 
directory

Looks like you were right after all, as https://bugs.gentoo.org/640916#c7 is 
indeed a pretty dang close match. Looks like a bug in the package itself. I'll 
mask this version, as #c13 claims this is fixed in 0.11.8. Hopefully that'll be 
in the tree soon™.
-- 
Elijah Mark Anderson
m...@kd0bpv.name
--
「塵も積もれば山となる。」
"Even dust, when piled up, becomes a mountain" - Ancient Japanese proverb

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Several packages failing to build

2018-05-14 Thread Mick
On Monday, 14 May 2018 21:07:17 BST Elijah Mark Anderson wrote:
> On Monday, May 14, 2018 12:58:13 PM CDT Mick wrote:
> > On Monday, 14 May 2018 18:20:01 BST Elijah Mark Anderson wrote:
> > > I'm having an issue with about a dozen packages not upgrading. I'd
> > > really
> > > appreciate some help getting them to build and install. I'm getting the
> > > feeling that the problems are somehow related, but really not sure.
> > > 
> > > First up: dev-libs/appstream-0.11.5::gentoo
> > > Anyone know what's going on here? This package is blocking at least 5
> > > other
> > > packages from upgrading, and I find the information in the logs only
> > > slightly more helpful than WIndows "Something went wrong" errors.
> > 
> > It's worth checking in BGO to see if your problems with ~amd64 packages
> > are
> > already reported and if any patches/fixes/workarounds have been posted. 
> > In
> > this case have a look here, I think it is the same problem you have
> > experienced:
> > 
> > https://bugs.gentoo.org/640916
> > 
> > --
> > Regards,
> > Mick
> 
> I did come across that. I don't believe it is the same problem. For them,
> the problem is during the install phase. Mine is occurring in compile
> phase.

Fair enough, I did not dig into it at any depth.  Without knowing the real 
cause of this failure and if nothing else resolves it, I would try to rebuild 
gettext & perhaps libxml2:

emerge -1aDv sys-devel/gettext dev-libs/libxml2

then try emerging dev-libs/appstream once more.  Running ~arch involves more 
troubleshooting and experimenting than I have time at present, hence I stick 
with stable where I can.

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Several packages failing to build

2018-05-14 Thread Elijah Mark Anderson
On Monday, May 14, 2018 12:58:13 PM CDT Mick wrote:
> On Monday, 14 May 2018 18:20:01 BST Elijah Mark Anderson wrote:
> > I'm having an issue with about a dozen packages not upgrading. I'd really
> > appreciate some help getting them to build and install. I'm getting the
> > feeling that the problems are somehow related, but really not sure.
> > 
> > First up: dev-libs/appstream-0.11.5::gentoo
> > Anyone know what's going on here? This package is blocking at least 5
> > other
> > packages from upgrading, and I find the information in the logs only
> > slightly more helpful than WIndows "Something went wrong" errors.
> 
> It's worth checking in BGO to see if your problems with ~amd64 packages are
> already reported and if any patches/fixes/workarounds have been posted.  In
> this case have a look here, I think it is the same problem you have
> experienced:
> 
> https://bugs.gentoo.org/640916
> 
> --
> Regards,
> Mick

I did come across that. I don't believe it is the same problem. For them, the 
problem is during the install phase. Mine is occurring in compile phase.

-- 
Elijah Mark Anderson
m...@kd0bpv.name
--
「塵も積もれば山となる。」
"Even dust, when piled up, becomes a mountain" - Ancient Japanese proverb

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Several packages failing to build

2018-05-14 Thread Mick
On Monday, 14 May 2018 18:20:01 BST Elijah Mark Anderson wrote:
> I'm having an issue with about a dozen packages not upgrading. I'd really
> appreciate some help getting them to build and install. I'm getting the
> feeling that the problems are somehow related, but really not sure.
> 
> First up: dev-libs/appstream-0.11.5::gentoo
> Anyone know what's going on here? This package is blocking at least 5 other
> packages from upgrading, and I find the information in the logs only
> slightly more helpful than WIndows "Something went wrong" errors.

It's worth checking in BGO to see if your problems with ~amd64 packages are 
already reported and if any patches/fixes/workarounds have been posted.  In 
this case have a look here, I think it is the same problem you have 
experienced:

https://bugs.gentoo.org/640916

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Several packages failing to build

2018-05-14 Thread Elijah Mark Anderson
I'm having an issue with about a dozen packages not upgrading. I'd really 
appreciate some help getting them to build and install. I'm getting the 
feeling that the problems are somehow related, but really not sure.

First up: dev-libs/appstream-0.11.5::gentoo
Anyone know what's going on here? This package is blocking at least 5 other 
packages from upgrading, and I find the information in the logs only slightly 
more helpful than WIndows "Something went wrong" errors.
-- 
Elijah Mark Anderson
m...@kd0bpv.name
--
「塵も積もれば山となる。」
"Even dust, when piled up, becomes a mountain" - Ancient Japanese proverb * Package:dev-libs/appstream-0.11.5
 * Repository: gentoo
 * Maintainer: k...@gentoo.org
 * USE:abi_x86_64 amd64 elibc_glibc kernel_linux qt5 userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking appstream-0.11.5.tar.gz to /var/tmp/portage/dev-libs/appstream-0.11.5/work
>>> Source unpacked in /var/tmp/portage/dev-libs/appstream-0.11.5/work
>>> Preparing source in /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5 ...
meson --buildtype plain --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload -Denable-docs=false -Denable-maintainer=false -Denable-stemming=true -Denable-vapi=false -Denable-apt-support=false -Denable-apidocs=false -Denable-qt=true /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5 /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-0.11.5-build
The Meson build system
Version: 0.46.0
Source dir: /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5
Build dir: /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-0.11.5-build
Build type: native build
Project name: AppStream
Native C compiler: x86_64-pc-linux-gnu-gcc (gcc 7.3.0 "x86_64-pc-linux-gnu-gcc (Gentoo 7.3.0-r1 p1.1) 7.3.0")
Appending CFLAGS from environment: '-march=native -O2 -pipe'
Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed'
Build machine cpu family: x86_64
Build machine cpu: x86_64
Configuring config.h using configuration
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (0.29.2)
Native dependency glib-2.0 found: YES 2.52.3
Native dependency gobject-2.0 found: YES 2.52.3
Native dependency gio-2.0 found: YES 2.52.3
Native dependency gio-unix-2.0 found: YES 2.52.3
Native dependency libxml-2.0 found: YES 2.9.8
Native dependency yaml-0.1 found: YES 0.1.7
Library stemmer found: YES
Has header "libstemmer.h": YES
Native dependency glib-2.0 found: YES 2.52.3
Native dependency gobject-introspection-1.0 found: YES 1.52.1
Program xsltproc found: YES (/usr/bin/xsltproc)
Native C++ compiler: x86_64-pc-linux-gnu-g++ (gcc 7.3.0 "x86_64-pc-linux-gnu-g++ (Gentoo 7.3.0-r1 p1.1) 7.3.0")
Appending CXXFLAGS from environment: '-march=native -O2 -pipe'
Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed'
WARNING: rcc dependencies will not work reliably until this upstream issue is fixed: https://bugreports.qt.io/browse/QTBUG-45460
Native dependency Qt5Core found: YES 5.9.5
Qt5 native `pkg-config` dependency (modules: Core) found: YES
Detecting Qt5 tools
 moc: YES (/usr/lib64/qt5/bin/moc, 5.9.5)
 uic: YES (/usr/lib64/qt5/bin/uic, 5.9.5)
 rcc: YES (/usr/lib64/qt5/bin/rcc, 5.9.5)
 lrelease: YES (/usr/lib64/qt5/bin/lrelease, 5.9.5)
Native dependency Qt5Core found: YES 5.9.5
Native dependency Qt5Test found: YES 5.9.5
Qt5 native `pkg-config` dependency (modules: Core, Test) found: YES
Configuring testpaths.h using configuration
Configuring AppStreamQtConfig.cmake using configuration
Configuring AppStreamQtConfigVersion.cmake using configuration
Build targets in project: 19
Found ninja-1.8.2 at /usr/bin/ninja
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-APPSTREAM_0_11_5 ...
ninja -v -j9 -l0 -C /var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-0.11.5-build
ninja: Entering directory `/var/tmp/portage/dev-libs/appstream-0.11.5/work/appstream-0.11.5-build'
[1/106] glib-compile-resources ../appstream-APPSTREAM_0_11_5/src/appstream.gresource.xml --sourcedir ../appstream-APPSTREAM_0_11_5/src/../data --sourcedir ../appstream-APPSTREAM_0_11_5/src/ --c-name as --internal --generate --target src/as-resources.h
[2/106]