[PATCH:libXi] Make shadow man pages generated by asciidoc work with Solaris man
Peter Hutterer
peter.hutterer at who-t.net
Wed Sep 21 16:21:13 PDT 2011
On Fri, Sep 16, 2011 at 09:00:19PM -0700, Alan Coopersmith wrote:
> Solaris man requires .so entries in man pages include the man section
> directory, not just the man page filename, even when it's in the same
> directory, so use sed to add it in.
>
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
> man/Makefile.am | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/man/Makefile.am b/man/Makefile.am
> index d4c37b3..28211a1 100644
> --- a/man/Makefile.am
> +++ b/man/Makefile.am
> @@ -159,6 +159,9 @@ MAN_SUBSTS += -e 's/libmansuffix/$(LIB_MAN_SUFFIX)/g'
> MAN_SUBSTS += -e 's/\[FIXME: source\]/$(XORG_MAN_PAGE)/'
> MAN_SUBSTS += -e 's/\[FIXME: manual\]/XINPUT FUNCTIONS/'
>
> +# asciidoc generates shadow page references without the man section directory
> +MAN_SUBSTS += -e 's/^\.so X/.so man$(LIB_MAN_SUFFIX)\/X/'
> +
> SUFFIXES = .man .$(LIB_MAN_SUFFIX)
> .man.$(LIB_MAN_SUFFIX):
> $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
> --
> 1.7.3.2
I've gone ahead and merged this patch for now. It has the desired effect on
my machine and until we figure out what's going on at least the behaviour is
fixed. Once we know what exactly is causing this, we can revert the patch.
Cheers,
Peter
More information about the xorg-devel
mailing list