STAGE: explain man pages
Anton Shterenlikht
mexas at bris.ac.uk
Wed Oct 9 20:38:00 UTC 2013
>From mexas Wed Oct 9 21:32:05 2013
>To: bapt at FreeBSD.org, pschmehl_lists at tx.rr.com
>Subject: Re: STAGE: explain man pages
>Cc: freebsd-ports at freebsd.org, mexas at bris.ac.uk
>Reply-To: mexas at bris.ac.uk
>In-Reply-To: <20131009201145.GD95601 at ithaqua.etoilebsd.net>
>
>>From baptiste.daroussin at gmail.com Wed Oct 9 21:14:50 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.u=
>>k>=20
>>> wrote:
>>>=20
>>> > I'm getting:
>>> >
>>> ># make stage
>>> > =3D=3D=3D> Staging for urlview-0.9_7
>>> > =3D=3D=3D> 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 wi=
>>th
>>parenthesis before $(mandir) as they already do in install-binPROGRAMS
>>
>>And upstream will also want that patch as that makes their installation sys=
>>tem
>>consistent
>
>ok, cool!
>
>So now I get:
>
>===> 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/ports/textproc/urlview/work/stage/usr/local/man/man1/urlview.1
>install -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
>#
>
>But then:
>
># make makeplist
>bin/urlview
>etc/urlview.conf.sample
>man/man1/urlview.1.gz
># make check-orphans
>man/man1/urlview.1.gz
># make package
>===> Building package for urlview-0.9_7
>pkg-static: lstat(/usr/ports/textproc/urlview/work/stage/usr/local/urlview.1): No such file or directory
>*** Error code 1
>
>Stop.
>make: stopped in /usr/ports/textproc/urlview
>#
>
>What is wrong here?
I think I got it: I need to give the
full name of the man page, as it
appears in makeplist output:
PLIST_FILES= bin/urlview \
etc/urlview.conf.sample \
man/man1/urlview.1.gz
Then:
===> 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/ports/textproc/urlview/work/stage/usr/local/man/man1/urlview.1
install -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
# make makeplist
bin/urlview
etc/urlview.conf.sample
man/man1/urlview.1.gz
# make check-orphans
# make package
===> Building package for urlview-0.9_7
Service unavailable#
Ok, that is good.
And what does "Service unavailable" mean?
Thanks
Anton
More information about the freebsd-ports
mailing list