patchPhase = ''
    sed -i -e 's@docbook2man -w all .*@true@' doc/Makefile.in

    # add BOM so that docbook2man knows about encoding (assume utf8)
    sed -i  \
      -e '1s/^\(\xEF\xBB\xBF\)\?/\xEF\xBB\xBF/'   \
      -e 's@<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" 
\[@<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "/dev/null" 
[@' \
      doc/lxc-*.sgml.in
  '';
  # manually building man pages seem
  postBuild = ''
    ( cd doc; for i in lxc-*.sgml; do docbook2man $i; done )
  '';

I'd not trust them too much - that they don't build seem to be a known issue ?
or our docbook2man is too new ?

The code adds some utf-8 boms to .sgml files so that docbook2man knows about an 
encoding.
Also its building the man pages manuall rather than using make ..
Thus docbook2man -w all is replaced by true.

make install still installs those man pages.

Marc Weber
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to