From owner-freebsd-ports@FreeBSD.ORG Thu Jun 18 00:31:30 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F562106566B for ; Thu, 18 Jun 2009 00:31:30 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 29FB58FC19 for ; Thu, 18 Jun 2009 00:31:29 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MH5XH-000AUv-Na; Wed, 17 Jun 2009 20:31:29 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 14C7A300FEF9; Wed, 17 Jun 2009 20:31:23 -0400 (EDT) Message-ID: <4A398AD8.6020202@FreeBSD.org> Date: Wed, 17 Jun 2009 20:31:20 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-ports@freebsd.org, corky1951@comcast.net References: <20090617181248.GA96132@comcast.net> <4A395100.7060509@FreeBSD.org> <20090617234839.GB96132@comcast.net> In-Reply-To: <20090617234839.GB96132@comcast.net> X-Enigmail-Version: 0.95.7 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.6 (/) Cc: Subject: Re: avoiding build dependency on docbook, etc. in new port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 00:31:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Charlie Kester wrote: > On Wed 17 Jun 2009 at 13:24:32 PDT Greg Larkin wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Charlie Kester wrote: >>> I'm porting some software that has a build dependency on docbook2man in >>> order to generate its manpages from .docbook files. >>> >>> Testing the port in tinderbox takes a long time, most of it because of >>> the need to build the docbook infrastructure. It seems a shame to use >>> all that CPU time and install all those packages just to get ready to >>> convert some manpages. >>> What's the preferred approach in cases like this? Should I keep the >>> build dependency on docbook2man et al, or should I put pregenerated >>> copies of the manpages in the files directory of the port? >> >> Hi Charlie, >> >> I feel your pain! I don't think there's any problem pre-generating the >> man page and keeping it in the port's files/ directory. > > Actually, this is a suite of tools and there are eleven manpages. > >> >> On the other hand, I recently went through this experience and went a >> different route. YMMV! >> >> I took over maintainership for security/logcheck a while back, and it >> used docbook2man to create its one (!) man page. After a while, I got >> some requests to strip out that dependency. A user was kind enough to >> point me to docbook2X: http://docbook2x.sourceforge.net/ >> >> This is a much lighter-weight tool for converting docbook to manual >> pages, among other functions. I eventually added it to the ports tree >> and updated the logcheck port to use it. > > Now I'm confused. When I used pkg_info to find out what package had > installed docbook2man on my system, it said it was part of > docbook2X-0.8.8_2. It was after I added textproc/docbook2X as a build > dependency that I started seeing a bunch of docbook stuff getting > installed in my tinderbox. > Hi Charlie, My apologies - when you said that TB had to build a lot of packages to support docbook2man, I assumed that you were talking about the textproc/docbook-to-man port, not the actual docbook2man executable provided by textproc/docbook2X. Originally, textproc/docbook-to-man required 100+ dependencies to build. It's a much smaller number now, due to some recent changes in the xorg infrastructure: http://www.freebsd.org/cgi/cvsweb.cgi/ports/textproc/docbook-to-man/Makefile#rev1.15 You can see the difference here: fbsd70# cd /usr/ports/textproc/docbook-to-man && make USE_XLIB=yes all-depends-list | wc -l 114 fbsd70# cd /usr/ports/textproc/docbook-to-man && make all-depends-list | wc -l 28 fbsd70# USE_XLIB=yes used to be implied by USE_IMAKE=yes, but not any longer. Anyway, docbook2X has even fewer deps: fbsd70# cd /usr/ports/textproc/docbook2X && make all-depends-list | wc -l 20 fbsd70# To me, that doesn't seem like a lot compared to the 100+ I was dealing with before. But if it's still too many to deal with, Gabor's suggestion might be better. Cheers, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKOYrY0sRouByUApARAlAUAKCY3JcCYDLnBeQAqtp9EbqVBmwf6gCgiiqH /SYoQjGRUr8fqrruW+incQg= =nPVF -----END PGP SIGNATURE-----