From owner-freebsd-python@FreeBSD.ORG Thu Oct 17 22:08:39 2013 Return-Path: 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 F32262D8; Thu, 17 Oct 2013 22:08:38 +0000 (UTC) (envelope-from mva@FreeBSD.org) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.29.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8646A26AF; Thu, 17 Oct 2013 22:08:38 +0000 (UTC) Received: from [89.183.14.201] (helo=localhost) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1VWvii-0001r8-IQ; Fri, 18 Oct 2013 00:07:04 +0200 Date: Fri, 18 Oct 2013 00:07:03 +0200 From: Marcus von Appen To: Andriy Gapon , python@FreeBSD.org Subject: Re: PYDISTUTILS_AUTOPLIST, stage, man pages Message-ID: <20131017220703.GA24842@medusa.sysfault.org> Mail-Followup-To: Andriy Gapon , python@FreeBSD.org References: <5260203B.6060502@FreeBSD.org> <20131017181944.GA1374@medusa.sysfault.org> <52604530.6040209@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <52604530.6040209@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Df-Sender: MTEyNTc0Mg== X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Marcus von Appen List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 22:08:39 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On, Thu Oct 17, 2013, Andriy Gapon wrote: > on 17/10/2013 21:19 Marcus von Appen said the following: > > On, Thu Oct 17, 2013, Andriy Gapon wrote: > > > >> > >> If it's not obvious from the subject, I would like to ask if it is > >> possible to make PYDISTUTILS_AUTOPLIST cooperate with staging with > >> respect to the manual pages. > >> > >> As you know, the staging code would automatically compress any > >> uncompressed manual pages while their installation to the stage directory > >> is recoded verbatim. So perhaps there could be an extra step of > >> appending ".gz" to manual page entries that don;t have it. > > > > I am missing an example (port or whatever) here. distutils does not > > specifiy manpages on its own, so they are most likely installed by the > > data_files target. Usually, the proper handling would need to be done there > > or within an own bsd.python.mk hook (ewww). So much for the theory. Can you > > please provide an example port that currently has issues with its manpages > > and staging? > > I am not sure if there is such a port currently in the tree, I haven't looked > for one. We are working on a port of obnam and that's where this would be > useful. It indeed installs a few manual pages via data_files: > > data_files=[('share/man/man1', glob.glob('*.1'))] Except for the fact that 'share/' is wrong for FreeBSD (which you know, I guess ;-), I see what you mean. A fix for that might be to check the directory for something matching on man/man[0-9]/*.[0-9] and append it automatically with a .gz in the ${_PYTHONPKGLIST} record file within the add-plist-pymod target in bsd.python.mk Can you upload the port shar somewhere for a test? Cheers Marcus --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlJgX4cACgkQi68/ErJnpkdISgCePrCKhX467sjIdVBr/FnVvk/T 00YAoJssB0Qp5yuT47dHaDNXfQuI3PNP =UTlB -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--