unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ndctl: I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl (xmlto?)
@ 2018-05-29 14:56 Pierre Neidhardt
  2018-05-29 19:44 ` Leo Famulari
  2018-05-29 19:56 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Pierre Neidhardt @ 2018-05-29 14:56 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 7955 bytes --]


I'm trying to package ndctl:

--8<---------------cut here---------------start------------->8---
(define-public ndctl
  (package
    (name "ndctl")
    (version "60.3")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/pmem/ndctl")
                    (commit (string-append "v" version))))
              (file-name (string-append name "-" version "-checkout"))
              (sha256
               (base32
                "0w19yh6f9skf5zy4bhdjlrn3wdx5xx9cq8j6h04cmw4nla6zj9ar"))))
    (build-system gnu-build-system)
    (native-inputs
     `(("asciidoc" ,asciidoc)
       ("automake" ,automake)
       ("autocont" ,autoconf)
       ("libtool" ,libtool)
       ("xmlto" ,xmlto)
       ("which" ,which)
       ("pkg-config" ,pkg-config)
       ("docbook-xsl" ,docbook-xsl)
       ("bash-completion" ,bash-completion)))
    (inputs
     `(("json-c" ,json-c)
       ("eudev" ,eudev)
       ("util-linux" ,util-linux)
       ("kmod" ,kmod)))
     (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'autogen
           (lambda _
             (substitute* "autogen.sh"
               (("/bin/sh") (which "sh")))
             (substitute* "git-version-gen"
               (("/bin/sh") (which "sh")))
             (substitute* "git-version"
               (("/bin/bash") (which "bash")))
             (zero? (system* "sh" "autogen.sh")))))))
    (home-page "https://github.com/pmem/ndctl")
    (synopsis "Manage the non-volatile memory device sub-system in the Linux kernel")
    (description
     ;; TODO: Update desc.
     "Utility library for managing the libnvdimm (non-volatile memory device)
sub-system in the Linux kernel.")
    (license license:gpl2+)))
--8<---------------cut here---------------end--------------->8---

It fails to build to documentation:

--8<---------------cut here---------------start------------->8---
starting phase `build'
  GEN      version.m4
make --no-print-directory all-recursive
  GEN      version.m4
Making all in .
  GEN      version.m4
  GEN      rhel/ndctl.spec
  GEN      sles/ndctl.spec
  CC       ccan/str/str.o
  CC       ccan/str/debug.o
  CC       ccan/list/list.o
  CC       util/parse-options.o
  CC       util/usage.o
  CC       util/size.o
  CC       util/main.o
  CC       util/help.o
  CC       util/strbuf.o
  CC       util/wrapper.o
  CC       util/filter.o
  CC       util/bitmap.o
  AR       libccan.a
ar: `u' modifier ignored since `D' is the default (see `U')
  AR       libutil.a
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in daxctl/lib
  CC       ../../util/sysfs.lo
  CC       ../../util/log.lo
  CC       libdaxctl.lo
  GEN      libdaxctl.pc
  CCLD     libdaxctl.la
Making all in ndctl/lib
  CC       nfit.lo
  CC       dimm.lo
  CC       smart.lo
  CC       inject.lo
  CC       intel.lo
  CC       hpe1.lo
  CC       msft.lo
  CC       ars.lo
  CC       firmware.lo
  CC       libndctl.lo
  GEN      libndctl.pc
  CCLD     libndctl.la
Making all in ndctl
  CC       ndctl.o
  CC       create-nfit.o
  CC       namespace.o
  CC       bus.o
  CC       check.o
  CC       region.o
  CC       dimm.o
  CC       ../util/log.o
  CC       list.o
  CC       test.o
  CC       ../util/json.o
  CC       inject-error.o
  CC       inject-smart.o
  CC       util/json-smart.o
  CC       util/json-firmware.o
  CCLD     ndctl
Making all in daxctl
  CC       daxctl.o
  CC       list.o
  CC       ../util/json.o
  CCLD     daxctl
Making all in Documentation/ndctl
  GEN      asciidoc.conf
  GEN      ndctl.xml
  GEN      ndctl-wait-scrub.xml
  GEN      ndctl-start-scrub.xml
  GEN      ndctl-zero-labels.xml
  GEN      ndctl-read-labels.xml
  GEN      ndctl-write-labels.xml
  GEN      ndctl-init-labels.xml
  GEN      ndctl-check-labels.xml
  GEN      ndctl-enable-region.xml
  GEN      ndctl-disable-region.xml
  GEN      ndctl-enable-dimm.xml
  GEN      ndctl-disable-dimm.xml
  GEN      ndctl-enable-namespace.xml
  GEN      ndctl-disable-namespace.xml
  GEN      ndctl-create-namespace.xml
  GEN      ndctl-destroy-namespace.xml
  GEN      ndctl-check-namespace.xml
  GEN      ndctl-inject-error.xml
  GEN      ndctl-inject-smart.xml
  GEN      ndctl-update-firmware.xml
  GEN      ndctl-list.xml
  GEN      ndctl.1
  GEN      ndctl-wait-scrub.1
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /tmp/guix-build-ndctl-60.3.drv-0/xmlto-xsl.BtfqIT line 4 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[2]: *** [Makefile:591: ndctl.1] Error 5
make[2]: *** Waiting for unfinished jobs....
  GEN      ndctl-start-scrub.1
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /tmp/guix-build-ndctl-60.3.drv-0/xmlto-xsl.qLWSqR line 4 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[2]: *** [Makefile:591: ndctl-wait-scrub.1] Error 5
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /tmp/guix-build-ndctl-60.3.drv-0/xmlto-xsl.1OgxRr line 4 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[2]: *** [Makefile:591: ndctl-start-scrub.1] Error 5
rm ndctl-check-labels.xml ndctl-init-labels.xml ndctl-list.xml ndctl-wait-scrub.xml ndctl-enable-dimm.xml ndctl-zero-labels.xml ndctl-check-namespace.xml ndctl-inject-error.xml ndctl-write-labels.xml ndctl-inject-smart.xml ndctl-enable-namespace.xml ndctl-read-labels.xml ndctl-destroy-namespace.xml ndctl.xml ndctl-disable-region.xml ndctl-disable-namespace.xml ndctl-start-scrub.xml ndctl-disable-dimm.xml ndctl-create-namespace.xml ndctl-enable-region.xml ndctl-update-firmware.xml
make[1]: *** [Makefile:742: all-recursive] Error 1
make: *** [Makefile:526: all] Error 2
phase `build' failed after 7.4 seconds
note: keeping build directory `/tmp/guix-build-ndctl-60.3.drv-10'
builder for `/gnu/store/h37pwmlshy70a382wb9f7riis03v1cgy-ndctl-60.3.drv' failed with exit code 1
@ build-failed /gnu/store/h37pwmlshy70a382wb9f7riis03v1cgy-ndctl-60.3.drv - 1 builder for `/gnu/store/h37pwmlshy70a382wb9f7riis03v1cgy-ndctl-60.3.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/h37pwmlshy70a382wb9f7riis03v1cgy-ndctl-60.3.drv' failed
--8<---------------cut here---------------end--------------->8---

I cannot find a reference to

	http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

in the source code. (Or did I miss it?)

The "asciidoc" Guix package is patched so that it uses local docbook-xsl
instead of fetching the imports from the Internet.

xmlto, however, has the following file:

	/gnu/store/6932n73qc695c43fhqm1w213z65n7b7k-xmlto-0.0.28/share/xmlto/format/docbook/man

which content is

--8<---------------cut here---------------start------------->8---
case "$1" in
stylesheet)
  if [ "$VERBOSE" -ge 1 ]
  then
    echo >&2 "Convert to troff"
  fi
  echo "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
  ;;
post-process)
  [ -e "$XSLT_PROCESSED" ] && rm "$XSLT_PROCESSED"
  ${GCP_PATH:-cp} -R -P -p -- * "$OUTPUT_DIR" 2>/dev/null
  ;;
esac
--8<---------------cut here---------------end--------------->8---

I think that "echo" line should be patched just like docbook.  What do
you think?

--
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-03 20:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-29 14:56 ndctl: I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl (xmlto?) Pierre Neidhardt
2018-05-29 19:44 ` Leo Famulari
2018-05-29 19:56 ` Ludovic Courtès
2018-05-30 10:06   ` Pierre Neidhardt
2018-06-03 20:42     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).