Bug 25845 - FTBFS in network isolation
: FTBFS in network isolation
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/gnome-doc-utils)
: unstable
: all Linux
: P3 critical
Assigned To:
:
:
: patch
:
:
  Show dependency tree
 
Reported: 2011-07-02 03:04 by
Modified: 2011-07-02 04:38 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2011-07-02 03:04:04
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 From 2011-07-02 03:08:17 -------
Одобрю соответствующий таск.
------- Comment #2 From 2011-07-02 03:58:23 -------
$ ssh git.alt approve 49620 100 && ssh git.alt run 49620
------- Comment #3 From 2011-07-02 04:38:08 -------
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).