Re: Help needed with man page conversions to asciidoc?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Karel,

Am Di., 23. März 2021 um 10:27 Uhr schrieb Karel Zak <kzak@xxxxxxxxxx>:
>
> On Sat, Mar 20, 2021 at 06:46:24PM +0100, Mario Blättermann wrote:
> > Just found another problem: After applying the Makefile patches [1]
> > and running "autogen.sh" and "configure", the command »make gen-man«
> > fails:
> >
> > [mariob@t450 util-linux-mariobl]$ make gen-man
> > Makefile:15938: warning: overriding recipe for target 'misc-utils/uuidd.8'
> > Makefile:15927: warning: ignoring old recipe for target 'misc-utils/uuidd.8'
> > Makefile:15938: warning: overriding recipe for target 'misc-utils/getopt.1'
> > Makefile:15927: warning: ignoring old recipe for target 'misc-utils/getopt.1'
> >  GEN      lib/terminal-colors.d.5
> > /bin/sh: line 3: lib/terminal-colors.d.5.adoc: Permission denied
> > make: *** [Makefile:15940: lib/terminal-colors.d.5] Error 126
>
> It sounds like $asciidoc_man_cmd is empty. This is my mistake.
>
> > [1] https://github.com/mariobl/util-linux/commit/34455501de74c405b56daa438ee3e839e92fbc17
>
> You also need to define $ASCIIDOCTOR variable in ./configure.ac.
> Please add the patch below. I have probably forgot it in my
> suggestion.
>
>  Karel
>
>
> diff --git a/configure.ac b/configure.ac
> index 7f59604bd..946222676 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -232,6 +232,7 @@ PKG_INSTALLDIR(['${usrlib_execdir}/pkgconfig'])
>
>  GTK_DOC_CHECK([1.10])
>  AC_PATH_PROG([XSLTPROC], [xsltproc])
> +AC_PATH_PROG([ASCIIDOCTOR], [asciidoctor])
>
>  linux_os=no
>  bsd_os=no
>
It works until it reaches the first man page link:

  GEN      lib/terminal-colors.d.5
 GEN      libuuid/man/uuid.3
 GEN      libuuid/man/uuid_clear.3
 GEN      libuuid/man/uuid_compare.3
 GEN      libuuid/man/uuid_copy.3
 GEN      libuuid/man/uuid_generate.3
 GEN      libuuid/man/uuid_is_null.3
 GEN      libuuid/man/uuid_parse.3
 GEN      libuuid/man/uuid_time.3
 GEN      libuuid/man/uuid_unparse.3
 GEN      libuuid/man/uuid_generate_random.3
asciidoctor: FAILED: input file ./libuuid/man/uuid_generate_random.3.adoc is mis
sing

BTW, it also produces HTML versions of the man pages, which are not in
.gitignore. Is it intended to also install HTML versions?

Best Regards,
Mario




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux