STAGE: explain man pages
Baptiste Daroussin
bapt at FreeBSD.org
Wed Oct 9 20:11:52 UTC 2013
On Wed, Oct 09, 2013 at 03:00:33PM -0500, Paul Schmehl wrote:
> --On October 9, 2013 8:44:55 PM +0100 Anton Shterenlikht <mexas at bris.ac.uk>
> wrote:
>
> > I'm getting:
> >
> ># make stage
> > ===> Staging for urlview-0.9_7
> > ===> Generating temporary packing list
> > /bin/sh ./mkinstalldirs
> > /usr/ports/textproc/urlview/work/stage/usr/local/bin install -s -o
> > root -g wheel -m 555 urlview
> > /usr/ports/textproc/urlview/work/stage/usr/local/bin/urlview install -o
> > root -g wheel -m 444 urlview.man /usr/local/man/man1/urlview.1
This is buggy ^^ you probably want to patch the upstream Makefile to respect
DESTDIR as it does for all other files it installs.
What you want is to change line 321 of Makefile.in to add $(DESTDIR) yes with
parenthesis before $(mandir) as they already do in install-binPROGRAMS
And upstream will also want that patch as that makes their installation system
consistent
> > -o root -g wheel -m 444
> > /usr/ports/textproc/urlview/work/urlview-0.9/sample.urlview
> > /usr/ports/textproc/urlview/work/stage/usr/local/etc/urlview.conf.sample
> > ====> Compressing man pages
> >#
> >
> > Note that the man page is not installed on stage.
> >
> > The Makefile has:
> >
> > PLIST_FILES= bin/urlview \
> > etc/urlview.conf.sample \
> > urlview.1
> >
> > The last file is the man page.
> >
> > What am I doing wrong?
> >
>
> You don't need to install or uninstall man pages. They're done
> automatically.
>
> In the Makefile, use MANx= name of man pages
> e.g MAN1= urlview.1
>
> Remove the manpage from the pkg-plist file.
>
Wrong. Not with stage, see:
https://wiki.freebsd.org/ports/StageDir
and
http://blogs.freebsdish.org/portmgr/2013/10/03/staging/
the MANx macros never took care of installing the manpages btw.
regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20131009/8c4b3816/attachment.sig>
More information about the freebsd-ports
mailing list