From owner-freebsd-python@FreeBSD.ORG  Fri Oct 18 16:36:09 2013
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: python@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id C0118B09
 for <python@freebsd.org>; Fri, 18 Oct 2013 16:36:09 +0000 (UTC)
 (envelope-from mva@FreeBSD.org)
Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de
 [80.67.31.42])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4D5C32FF8
 for <python@freebsd.org>; Fri, 18 Oct 2013 16:36:08 +0000 (UTC)
Received: from [89.183.8.149] (helo=localhost)
 by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256)
 (Exim 4.68) (envelope-from <mva@FreeBSD.org>)
 id 1VXCwj-00063h-1w; Fri, 18 Oct 2013 18:30:41 +0200
Date: Fri, 18 Oct 2013 18:30:40 +0200
From: Marcus von Appen <mva@FreeBSD.org>
To: John Hein <jhein@symmetricom.com>
Subject: Re: PYDISTUTILS_AUTOPLIST, stage, man pages
Message-ID: <20131018163040.GA1374@medusa.sysfault.org>
Mail-Followup-To: John Hein <jhein@symmetricom.com>, python@freebsd.org
References: <5260203B.6060502@FreeBSD.org>
 <20131017181944.GA1374@medusa.sysfault.org>
 <52604530.6040209@FreeBSD.org>
 <20131017220703.GA24842@medusa.sysfault.org>
 <5260CA83.8080503@FreeBSD.org>
 <20131018064409.GA1412@medusa.sysfault.org>
 <5260DA34.8090501@FreeBSD.org>
 <20131018093947.Horde.dMzpGTK02ZW8_6ahbZyciA1@webmail.df.eu>
 <21089.18654.805483.17460@gromit.timing.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb"
Content-Disposition: inline
In-Reply-To: <21089.18654.805483.17460@gromit.timing.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Df-Sender: MTEyNTc0Mg==
Cc: python@freebsd.org
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Marcus von Appen <mva@FreeBSD.org>
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Oct 2013 16:36:09 -0000


--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On, Fri Oct 18, 2013, John Hein wrote:

> Marcus von Appen wrote at 09:39 +0200 on Oct 18, 2013:
>  > Andriy Gapon <avg@freebsd.org>:
>  >
>  > > on 18/10/2013 09:44 Marcus von Appen said the following:
>  > >> Can you give the following change to Mk/bsd.python.mk a try:
>  > >>
>  > >> Index: Mk/bsd.python.mk
>  > >> ===================================================================
>  > >> --- Mk/bsd.python.mk	(revision 330721)
>  > >> +++ Mk/bsd.python.mk	(working copy)
>  > >> @@ -528,7 +528,9 @@
>  > >>  		${SED} '/^\.$$/d' > ${WRKDIR}/.localmtree
>  > >>  	@${ECHO_CMD} "${_RELSITELIBDIR}" >> ${WRKDIR}/.localmtree
>  > >>  	@${ECHO_CMD} "${_RELLIBDIR}" >> ${WRKDIR}/.localmtree
>  > >> -	@${SED} 's|^${PREFIX}/||' ${_PYTHONPKGLIST} | ${SORT} >> ${TMPPLIST}
>  > >> +	@${SED} -e 's|^${PREFIX}/||' \
>  > >> +		-e 's|^\(man/man[0-9]\)/\(.*.[0-9]\)|\1/\2${MANEXT}|' \
>  > >> +		${_PYTHONPKGLIST} | ${SORT} >> ${TMPPLIST}
>  > >>  	@${SED} -e 's|^${PREFIX}/\(.*\)/\(.*\)|\1|' ${_PYTHONPKGLIST} | \
>  > >>  		${AWK} '{ num = split($$0, a, "/"); res=""; \
>  > >>  					for(i = 1; i <= num; ++i) { \
>  > >>
>  > >> It adds the .gz to every man/manX/*.X, if it is defined (depending on
>  > >> the NO_MANCOMPRESS setting).
>  > >
>  > > Woo-hoo, thanks a lot!  The patch worked perfectly for me.
>  > > From pkg info -l py27-obnam-1.5:
>  > >         /usr/local/man/man1/obnam-benchmark.1.gz
>  > >         /usr/local/man/man1/obnam-viewprof.1.gz
>  > >         /usr/local/man/man1/obnam.1.gz
>  >
>  > Excellent! I'll commit it later on.
>
>
> Maybe you should escape the '.' before the [0-9] (like below).
>
> Also if ${_PYTHONPKGLIST} already has entries with, then the patch
> above will append another ${MANEXT}.  Maybe adding '$' (also below)
> will be better.

Thanks, I committed it that way.

>
> Is it worth trying to handle man{l,n}?  They are defined in
> BSD.local.dist, but I don't know of any ports that use them anymore?

I do not know of any - as long as there are no specific requests for
those, I'd ignore those both directories.

Cheers
Marcus

--VS++wcV0S1rZb1Fb
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iEYEARECAAYFAlJhYjAACgkQi68/ErJnpkeEsgCbBF2mobjZpGOXhHuE6JBymXgn
rMkAoMOpzZgj1OTot2GMwD6OZubw02iD
=lrQv
-----END PGP SIGNATURE-----

--VS++wcV0S1rZb1Fb--