Bug 25845

Summary: FTBFS in network isolation
Product: Sisyphus Reporter: Dmitry V. Levin <ldv>
Component: gnome-doc-utilsAssignee: Yuri N. Sedunov <aris>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: critical    
Priority: P3 CC: aris, lav, msp, shrek
Version: unstableKeywords: patch
Hardware: all   
OS: Linux   

Description Dmitry V. Levin 2011-07-02 03:04:04 MSK
make[2]: Entering directory `/usr/src/RPM/BUILD/gnome-doc-utils-0.20.6/doc/gnome-doc-make'
xmllint --noout --noent --path C:./C --xinclude --postvalid ./C/gnome-doc-make.xml
xmllint --noout --noent --path de:./de --xinclude --postvalid ./de/gnome-doc-make.xml
xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' gnome
-doc-make-C.omf
error : Resource temporarily unavailable
I/O warning : failed to load external entity "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd"
warning: failed to load external entity "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd"
Could not parse DTD http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd
xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' gnome-doc-make-de.omf
error : Resource temporarily unavailable
I/O warning : failed to load external entity "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd"
warning: failed to load external entity "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd"
Could not parse DTD http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd
make[2]: *** [check-doc-omf] Error 2
make[2]: Leaving directory `/usr/src/RPM/BUILD/gnome-doc-utils-0.20.6/doc/gnome-doc-make'

A fix:
--- gnome-doc-utils.spec
+++ gnome-doc-utils.spec
@@ -35,7 +35,7 @@ BuildPreReq: rpm-build-python rpm-build-licenses rpm-build-gnome intltool
 BuildRequires: libxml2-devel >= %libxml_version
 BuildRequires: libxslt-devel >= %libxslt_version
 BuildRequires: python-devel python-module-libxml2 python-modules-encodings 
-BuildRequires: db2latex-xsl docbook-dtds xsltproc
+BuildRequires: db2latex-xsl docbook-dtds librarian xsltproc
 
 %description
 gnome-doc-utils is a collection of documentation utilities for the Gnome
@@ -64,6 +64,11 @@ export SGML_CATALOG_FILES=catalog
 
 %patch1 -p1 -b .package
 
+# Fix urls for external entities.
+find -type f -print0 |
+	xargs -r0 grep -lZ "'http://[^']*/scrollkeeper-omf[.]dtd'" |
+	xargs -r0 sed -i "s|'http://[^']*/scrollkeeper-omf[.]dtd'|'/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd'|" --
+
 %build
 export am_cv_python_pythondir=%python_sitelibdir
 %configure --disable-scrollkeeper
Comment 1 Yuri N. Sedunov 2011-07-02 03:08:17 MSK
Одобрю соответствующий таск.
Comment 2 Dmitry V. Levin 2011-07-02 03:58:23 MSK
$ ssh git.alt approve 49620 100 && ssh git.alt run 49620
Comment 3 Repository Robot 2011-07-02 04:38:08 MSK
gnome-doc-utils-0.20.6-alt2 -> sisyphus:

* Fri Jul 01 2011 Dmitry V. Levin <ldv@altlinux> 0.20.6-alt2
- Fixed build in isolated network environment (closes: #25845).