[Nix-dev] xsltproc troubles

Rickard Nilsson rickard.nilsson at telia.com
Wed Feb 8 19:06:27 CET 2012


Hi,

I'm trying to build gnome-terminal (gnome 3), but I've run into a problem  
with xsltproc. I get this error, repeated for a number of different input  
files:

xsltproc -o gnome-terminal-uk.omf --stringparam db2omf.basename  
gnome-terminal --stringparam db2omf.format 'docbook' --stringparam  
db2omf.dtd "-//OASIS//DTD DocBook XML V4.1.2//EN" --stringparam  
db2omf.lang uk --stringparam db2omf.omf_dir  
"/nix/store/chxcc3b5rdl0g6sc06gsyss0yb7yl5rn-gnome-terminal-3.2.1/share/omf"  
--stringparam db2omf.help_dir  
"/nix/store/chxcc3b5rdl0g6sc06gsyss0yb7yl5rn-gnome-terminal-3.2.1/share/gnome/help"  
--stringparam db2omf.omf_in  
"/tmp/nix-build-bmd22pchv4smbz800f51vsjsy0ki4621-gnome-terminal-3.2.1.drv-0/gnome-terminal-3.2.1/help/gnome-terminal.omf.in"   
`/nix/store/gyl97w8c69z1fkjldg9mhsii4xfd12qg-pkg-config-0.23/bin/pkg-config  
--variable db2omf gnome-doc-utils` uk/gnome-terminal.xml || { rm -f  
"gnome-terminal-uk.omf"; exit 1; }
error : Operation in progress
uk/gnome-terminal.xml:8: warning: failed to load external entity  
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
]>
   ^

Obviously, xsltproc shouldn't go out on the internet to find docbookx.dtd.  
How do I make it pick it up from the store instead? My nix file looks like  
this:


{ stdenv, fetchurl_gnome, glib, dbus, dbus_glib, GConf, vte, pkgconfig, xz,
   gtk, gsettings_desktop_schemas, intltool, gnome_doc_utils, python, which,
   libxslt, libxml2, docbook_xml_dtd_45
}:

stdenv.mkDerivation rec {
   name = src.pkgname;

   src = fetchurl_gnome {
     project = "gnome-terminal";
     major = "3"; minor = "2"; patchlevel = "1"; extension = "xz";
     sha256 =  
"c36a6bce466447526cb73779ee8e861f079e86cef68a50f7c8fbed540d5f373e";
   };

   buildInputs = [
     pkgconfig xz intltool python which glib dbus_glib gtk GConf vte
     gsettings_desktop_schemas gnome_doc_utils libxslt libxml2
     docbook_xml_dtd_45
   ];

   configureFlags = "--disable-scrollkeeper";

   postConfigure = "export  
makeFlags=GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1";

   meta = {
     homepage = http://www.gnome.org;
     description = "The GNOME Terminal Emulator";
     inherit (gtk.meta) platforms;
   };
}

I've tried looking at other packages that use docbook, but I can't find  
anything special.


   / Rickard


More information about the nix-dev mailing list