GNOME Bugzilla – Bug 657195
Strange failures when building RPM packages in mock
Last modified: 2021-07-05 11:00:50 UTC
Created attachment 194526 [details] build log Hi, I just tried to update the Fedora packages of gnome-subtitles. Unfortunately, the RPM does not build: xsltproc -o gnome-subtitles-oc.omf --stringparam db2omf.basename gnome-subtitles --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.1.2//EN" --stringparam db2omf.lang oc --stringparam db2omf.omf_dir "/usr/share/omf" --stringparam db2omf.help_dir "/usr/share/gnome/help" --stringparam db2omf.omf_in "/builddir/build/BUILD/gnome-subtitles-1.2/help/gnome-subtitles.omf.in" `/usr/bin/pkg-config --variable db2omf gnome-doc-utils` oc/gnome-subtitles.xml || { rm -f "gnome-subtitles-oc.omf"; exit 1; } http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ unable to parse oc/gnome-subtitles.xml make[1]: *** [gnome-subtitles-oc.omf] Error 1 make[1]: *** Waiting for unfinished jobs.... http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-dia.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ unable to parse cs/gnome-subtitles.xml make[1]: *** [gnome-subtitles-cs.omf] Error 1 http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ unable to parse de/gnome-subtitles.xml make[1]: *** [gnome-subtitles-de.omf] Error 1 http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ unable to parse C/gnome-subtitles.xml unable to parse da/gnome-subtitles.xml make[1]: *** [gnome-subtitles-C.omf] Error 1 make[1]: *** [gnome-subtitles-da.omf] Error 1 http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/ent/iso-grk1.ent:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ unable to parse el/gnome-subtitles.xml make[1]: *** [gnome-subtitles-el.omf] Error 1
Hey there Julian. From what I've read, this should be due to a missing package. While I don't know for sure which package it is, here's a list (these are Ubuntu packages and the first should be the most probable one to fix): sgml-data, docbook-xml, docbook-xsl, docbook-utils, rarian-compat, xml-core.
Created attachment 194546 [details] new build log Hmm, I just tried to reproduce the problem with the same source rpm and it worked. Since Fedora uses parallel build by default, it might have been some race condition.
Alright, good thing you figured it out. I've just received a report about Debian packages and all was ok, so I'm marking this as fixed. Please reopen if you find any further problems. Cheers
Created attachment 204681 [details] Two builds: parallel, then single-threaded I just hit this bug again with gnome-subtitles 1.2 on Fedora rawhide and Fedora 16. Given that the removal of %{?_smp_mflags} did not help, parallel build is of the hook.
This is some weird issue with libxslt I think. With mock build, it will fail here: xsltproc -o gnome-subtitles-da.omf --stringparam db2omf.basename gnome-subtitles --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.1.2//EN" --stringparam db2omf.lang da --stringparam db2omf.omf_dir "/usr/share/omf" --stringparam db2omf.help_dir "/usr/share/gnome/help" --stringparam db2omf.omf_in "/builddir/build/BUILD/gnome-subtitles-1.2/help/gnome-subtitles.omf.in" `/usr/bin/pkg-config --variable db2omf gnome-doc-utils` da/gnome-subtitles.xml || { rm -f "gnome-subtitles-da.omf"; exit 1; } http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod:1: validity error : All markup of the conditional section is not in the same entity HTTP/1.1 200 OK ^ http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod:1: parser error : Content error in the external subset HTTP/1.1 200 OK ^ unable to parse da/gnome-subtitles.xml make[1]: *** [gnome-subtitles-da.omf] Error 1 But then, if you do: $ mock -r fedora-rawhide-x86_64 shell INFO: mock.py version 1.1.18 starting... State Changed: init plugins INFO: selinux enabled State Changed: start State Changed: lock buildroot State Changed: shell <mock-chroot>[root@snowball2 /]# cd builddir/build/SPECS/ <mock-chroot>[root@snowball2 SPECS]# rpmbuild -bc --short-circuit gnome-subtitles.spec The build will continue and xsltproc will be able to process the file. I am seeing similar heisenbugs with gnome-chemistry-utils-0.13.5 rpm package as well.
Created attachment 204922 [details] freshest build log
Exhibit B: Build succeeded in koji: https://koji.fedoraproject.org/koji/buildinfo?buildID=282455
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxslt/-/issues/ Thank you for your understanding and your help.