STAGE: explain man pages

2013-10-09 Thread Anton Shterenlikht
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
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
# 

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?

Anton

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: STAGE: explain man pages

2013-10-09 Thread Paul Schmehl
--On October 9, 2013 8:44:55 PM +0100 Anton Shterenlikht me...@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 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
#

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.

Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: STAGE: explain man pages

2013-10-09 Thread Baptiste Daroussin
On Wed, Oct 09, 2013 at 03:00:33PM -0500, Paul Schmehl wrote:
 --On October 9, 2013 8:44:55 PM +0100 Anton Shterenlikht me...@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


pgp5vZoqMXIVG.pgp
Description: PGP signature


Re: STAGE: explain man pages

2013-10-09 Thread Anton Shterenlikht
From pschmehl_li...@tx.rr.com Wed Oct  9 21:14:48 2013
--On October 9, 2013 8:44:55 PM +0100 Anton Shterenlikht me...@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 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
#

 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.

No, doesn't work:

# 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
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
# 

To be clear, here's the complete Makefile (very simple):

# cat Makefile 
# Created by: Josh Gilliam j...@quick.net
# $FreeBSD: head/textproc/urlview/Makefile 327773 2013-09-20 23:17:30Z bapt $

PORTNAME=   urlview
PORTVERSION=0.9
PORTREVISION=   7
CATEGORIES= textproc www
MASTER_SITES=   ftp://ftp.mutt.org/mutt/contrib/ \
ftp://ftp.cs.tu-berlin.de/pub/net/mail/mutt/contrib/ \
ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/contrib/ \
ftp://ftp.gbnet.net/pub/mutt-international/contrib/ \
ftp://ftp.gwdg.de/pub/unix/mail/mutt/international/contrib/ \
http://seis.bris.ac.uk/~mexas/

MAINTAINER= me...@bris.ac.uk
COMMENT=URL extractor/launcher

GNU_CONFIGURE=  yes
PLIST_FILES=bin/urlview \
etc/urlview.conf.sample

MAN1=   urlview.1

CFLAGS+=-I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -lpcreposix -lpcre

post-patch:
@${REINPLACE_CMD} -e 's,/etc,${STAGEDIR}${PREFIX},' \
-e 's/url_handler.sh/firefox/' \
${WRKSRC}/*

post-install:
${INSTALL_DATA} ${WRKSRC}/sample.urlview \
${STAGEDIR}${PREFIX}/etc/urlview.conf.sample

.include bsd.port.mk
#

Anton

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: STAGE: explain man pages

2013-10-09 Thread Anton Shterenlikht
From baptiste.darous...@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 me...@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?

Many thanks

Anton

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: STAGE: explain man pages

2013-10-09 Thread Anton Shterenlikht
From mexas Wed Oct  9 21:32:05 2013
To: b...@freebsd.org, pschmehl_li...@tx.rr.com
Subject: Re: STAGE: explain man pages
Cc: freebsd-ports@freebsd.org, me...@bris.ac.uk
Reply-To: me...@bris.ac.uk
In-Reply-To: 20131009201145.gd95...@ithaqua.etoilebsd.net

From baptiste.darous...@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 me...@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

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: STAGE: explain man pages

2013-10-09 Thread Baptiste Daroussin
On Wed, Oct 09, 2013 at 09:32:05PM +0100, Anton Shterenlikht wrote:
 From baptiste.darous...@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 me...@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?
 
 Many thanks
 
 Anton
 

As said in make check-orphans the file you need in your plist_file is
man/man1/urlview.1.gz not urlview.1

regards,
Bapt


pgppngV0EK4dQ.pgp
Description: PGP signature