From owner-freebsd-questions@FreeBSD.ORG Sat Apr 25 02:40:35 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 962CF106566C for ; Sat, 25 Apr 2009 02:40:35 +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 6E0C78FC19 for ; Sat, 25 Apr 2009 02:40:35 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=Gregory-Larkins-Computer.local) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LxXSY-0009cn-Lz; Fri, 24 Apr 2009 22:17:48 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by Gregory-Larkins-Computer.local (Postfix) with ESMTP id 6C80F2D9A622; Fri, 24 Apr 2009 22:17:42 -0400 (EDT) Message-ID: <49F272C4.8020806@FreeBSD.org> Date: Fri, 24 Apr 2009 22:17:40 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Mel , n j , ccowart@rescomp.berkeley.edu References: <92bcbda50902120422x7c73808dy650d6918054af9f4@mail.gmail.com> <200902161118.56864.fbsd.questions@rachie.is-a-geek.net> <92bcbda50902171051w750eff59ufce55506ac89b902@mail.gmail.com> <200902171318.12223.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200902171318.12223.fbsd.questions@rachie.is-a-geek.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.8 (/) Cc: freebsd-questions@freebsd.org Subject: Re: Logcheck dependency hell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Apr 2009 02:40:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mel wrote: > On Tuesday 17 February 2009 09:51:10 n j wrote: >> (sorry for the previous mail) >> >>> The Makefile says: >>> ... >>> So I'll bet some money that it's docbook. >> Correct. >> >>> Does it improve if you add these to /etc/make.conf: >>> ... >> No, the result is exactly the same. >> >>> # finddep.php security/logcheck x11/xorg-libraries >>> /usr/ports/textproc/docbook-to-man: /usr/local/libdata/xorg/libraries >>> => /usr/ports/x11/xorg-libraries >> Mel, thanks for the script. What bothers me, however, is that I've >> checked the Makefile and didn't find any reference to xorg/x11 >> libraries - the only dependencies listed in textproc/docbook-to-man >> are: >> >> RUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/jade >> (no xorg-libraries dependency there) >> RUN_DEPENDS+= >> ${LOCALBASE}/share/sgml/docbook:${PORTSDIR}/textproc/docbook >> >> Even worse, >> >> egrep -ri "(xorg|x11)" * >> >> in /usr/ports/textproc/docbook-to-man returns zero matches. > > It's hiding: > # make -C textproc/docbook-to-man -V BUILD_DEPENDS > imake:/usr/ports/devel/imake /usr/local/libdata/xorg/libraries:/usr/ports/x11/xorg-libraries > > Hint: always check make's interpretation of a var with -V. This is instigated > by: > USE_IMAKE= yes > > As per Mk/bsd.port.mk: > .if defined(USE_IMAKE) > BUILD_DEPENDS+= imake:${X_IMAKE_PORT} > .endif > > And here comes xorg-libs: > .if defined(USE_IMAKE) && !defined(USE_X_PREFIX) && !defined(USE_XORG) > USE_X_PREFIX= yes > .endif > > USE_X_PREFIX now defined: > .if defined(USE_X_PREFIX) > USE_XLIB= yes > .endif > > USE_XLIB now defined: > .if defined(USE_XLIB) > . if defined(USE_LINUX) > RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1: > ${PORTSDIR}/x11/linux-xorg-libs > . else > BUILD_DEPENDS+= ${X11BASE}/libdata/xorg/libraries:${X_LIBRARIES_PORT} > RUN_DEPENDS+= ${X11BASE}/libdata/xorg/libraries:${X_LIBRARIES_PORT} > . endif > .endif > > Hi everyone, It took me a little while to get it done, but I added docbook2X to the FreeBSD ports tree yesterday: http://www.freshports.org/textproc/docbook2X/ I then changed the dependency in security/logcheck from textproc/docbook-to-man to textproc/docbook2X. This reduces the number of recursive dependencies by almost 100, so it should be a lot quicker to install the tool now. http://www.freebsd.org/cgi/getmsg.cgi?fetch=880901+0+current/cvs-ports Feedback welcome, 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 iD8DBQFJ8nLE0sRouByUApARArAbAJ4rxd/btTkCgZzfwuOfvp1kAe/CnwCglEyW nHRL6AbpITM8hG46iAJEFU8= =fqy3 -----END PGP SIGNATURE-----