Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 2009 13:18:12 -0900
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        n j <nino80@gmail.com>
Subject:   Re: Logcheck dependency hell
Message-ID:  <200902171318.12223.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <92bcbda50902171051w750eff59ufce55506ac89b902@mail.gmail.com>
References:  <92bcbda50902120422x7c73808dy650d6918054af9f4@mail.gmail.com> <200902161118.56864.fbsd.questions@rachie.is-a-geek.net> <92bcbda50902171051w750eff59ufce55506ac89b902@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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


-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902171318.12223.fbsd.questions>