Re: Logcheck dependency hell

2009-04-24 Thread Greg Larkin
-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-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Logcheck dependency hell

2009-02-25 Thread n j
Hey Greg,

perhaps you might want to know about this. Sorry for using the list
for unicast mail, but (as seen below) I obviously can't contact you
directly.

Regards,
-- 
Nino


-- Forwarded message --
...
                  The mail system

i...@sourcehosting.net: host mail1.sourcehosting.net[74.205.51.45] said: 550
   Forged Gmail, not sent from your account. (in reply to RCPT TO command)

Final-Recipient: rfc822; i...@sourcehosting.net
Original-Recipient: rfc822;glar...@freebsd.org
Action: failed
Status: 5.0.0
Remote-MTA: dns; mail1.sourcehosting.net
Diagnostic-Code: smtp; 550 Forged Gmail, not sent from your account.
...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Logcheck dependency hell

2009-02-24 Thread n j
Hi Greg,

On Mon, Feb 23, 2009 at 10:13 PM, Greg Larkin glar...@freebsd.org wrote:
 I'm the maintainer of security/logcheck, and I apologize for not
 catching up with my inbox sooner.  I just saw your message, and the same
 issue was reported by someone else a couple of weeks ago.

sorry if the subject (the hell part) has been too harsh, it was just
a figure of speech. Thanks for the work put in the port and the patch
and no need to apologize, the response time is totally acceptable for
the price I pay the port maintainer :-). And as far as free support
goes, I would like to thank Mel for the detailed help and the pointer
to the miscreant (Mk/bsd.port.mk).

 I have it on my list to update the port to avoid using docbook-to-man.

I've been looking to do the same and came across docbook2x
(http://docbook2x.sourceforge.net/) which seems to be just
perl-dependent - perhaps that might be used instead of the
docbook-to-man. However, it's not in the ports tree and the
development seems to be stalled (last release March 2007).
http://www.linux.org/docs/ldp/howto/DocBook-Install/using.html#AEN600
shows how to install and use it, though.

 In the mean, please apply the attached patch to your Makefile, and it
 will prevent all of those deps from getting included in the build.

I haven't had the time yet to test it, but as soon as I get to
installing logcheck with your patch, I'll let you know the results.

 Also, please cc the port maintainer when reporting a port-related bug to
 freebsd-questions@, since not all of them follow the list. The easy way

Well, I'm not really what you'd call a port-guru to easily claim
dependency a bug and bother the maintainer, especially since I
couldn't find an easy way to locate what pulls that dependency to file
a useful bug report, but I'll follow your advice in the future.

Regards,
-- 
Nino
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Logcheck dependency hell

2009-02-23 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris Cowart wrote:
 n j wrote:
 could anyone help me what command should I use to find out which
 logcheck-required port _exactly_ is trying to install half of the X
 libraries?
 
 The Makefile says:
 
 | BUILD_DEPENDS=  docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
 | RUN_DEPENDS=lockfile:${PORTSDIR}/mail/procmail \
 | bash:${PORTSDIR}/shells/bash
 
 So I'll bet some money that it's docbook. 
 
 Does it improve if you add these to /etc/make.conf:
 
 | NO_GUI=YES
 | WITHOUT_GUI=YES
 | WITHOUT_X11=YES
 | WITHOUT_XPM=YES
 

Hi n j,

I'm the maintainer of security/logcheck, and I apologize for not
catching up with my inbox sooner.  I just saw your message, and the same
issue was reported by someone else a couple of weeks ago.

I have it on my list to update the port to avoid using docbook-to-man.
In the mean, please apply the attached patch to your Makefile, and it
will prevent all of those deps from getting included in the build.

Also, please cc the port maintainer when reporting a port-related bug to
freebsd-questions@, since not all of them follow the list.  The easy way
to obtain the maintainer's email address is:

make -V MAINTAINER

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

iD8DBQFJoxF60sRouByUApARAmkKAJ4jihHFR1haHsuYNUdn3Iq3d41JZQCgyXdl
6r3KDcKx1mpCoEoweqk7fWU=
=rPkt
-END PGP SIGNATURE-
Index: Makefile
===
RCS file: /home/pcvs/ports/security/logcheck/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile11 Sep 2008 00:30:08 -  1.23
+++ Makefile11 Feb 2009 15:41:28 -
@@ -15,7 +15,7 @@
 MAINTAINER=glar...@freebsd.org
 COMMENT=   Auditing tool for system logs on Unix boxes
 
-BUILD_DEPENDS= docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
+# BUILD_DEPENDS=   docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
 RUN_DEPENDS=   lockfile:${PORTSDIR}/mail/procmail \
bash:${PORTSDIR}/shells/bash
 
@@ -44,10 +44,10 @@
 do-build:
${REINPLACE_CMD} -e 's!/var/log/syslog!/var/log/messages!' \
${WRKSRC}/etc/logcheck.logfiles
-   ${REINPLACE_CMD} -e 's!/etc/logcheck!${ETCDIR}!' \
-   -e 
's!/usr/share/doc/logcheck-database/README.logcheck-database.gz!${DOCSDIR}/README.logcheck-database!'
 \
-   ${WRKSRC}/docs/logcheck.sgml
-   docbook-to-man ${WRKSRC}/docs/logcheck.sgml  ${WRKSRC}/docs/logcheck.8
+#  ${REINPLACE_CMD} -e 's!/etc/logcheck!${ETCDIR}!' \
+#  -e 
's!/usr/share/doc/logcheck-database/README.logcheck-database.gz!${DOCSDIR}/README.logcheck-database!'
 \
+#  ${WRKSRC}/docs/logcheck.sgml
+#  docbook-to-man ${WRKSRC}/docs/logcheck.sgml  ${WRKSRC}/docs/logcheck.8
 
 do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/logcheck ${PREFIX}/sbin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Logcheck dependency hell

2009-02-17 Thread n j
 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Logcheck dependency hell

2009-02-17 Thread n j
(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.

The point is, I really don't have a clue where docbook-to-man pulls
that xorg-libraries dependency from. I'd appreciate any pointers in
the proper direction...

P.S. On a rambling note, it seems docbook-to-man is used just to
convert the sgml help files to man format. Installing half of the xorg
libraries for a bit of text processing seems like a big overkill given
that logcheck being installed is practically a shell script. In fact,
I pulled the source directly and tried to compile it myself, but
FreeBSD is missing liblockfile library to properly build it (probably
the reason port has the dependency on procmail/lock).

Thanks,
-- 
Nino
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Logcheck dependency hell

2009-02-17 Thread Mel
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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Logcheck dependency hell

2009-02-16 Thread Mel
On Thursday 12 February 2009 03:22:04 n j wrote:
 Hello,

 could anyone help me what command should I use to find out which
 logcheck-required port _exactly_ is trying to install half of the X
 libraries?

 The logcheck port lists the following build depends (output of
 pretty-print-build-depends-list):

# finddep.php security/logcheck x11/xorg-libraries
/usr/ports/textproc/docbook-to-man: /usr/local/libdata/xorg/libraries 
= /usr/ports/x11/xorg-libraries

Script below sig.

-- 
Mel

#!/usr/local/bin/php -q
?php
// vim: ts=4 sw=4 nobackup noet
//define('DEBUG', 1);
function usage()
{
$me = $argv[0];
echo(Usage: $me origin dep\n);
echo(\tFind which dependancy lists dep in origin\n);
exit(1);
}

function chkdep($val, $check)
{
if( !is_dir($val) )
{
fprintf(STDERR, No such dir: %s/%s\n, $GLOBALS['PORTSDIR'],
$val
);
return;
}
chdir($val);
$_deps = preg_split('/\s/',
shell_exec(/usr/bin/make -V LIB_DEPENDS -V RUN_DEPENDS -V 
BUILD_DEPENDS)
);
foreach($_deps AS $_dep)
{
list($pkgname, $origin) = explode(':', $_dep);
if( preg_match('/^\s*$/', $origin) )
continue;
if( in_array($origin, $GLOBALS['CHECKED']) )
continue;
if( $origin == $GLOBALS['PORTSDIR'] . '/' . $check )
echo($val: $pkgname = $origin\n);
else
{
if( defined('DEBUG') )
{
fprintf(STDERR, %s != %s/%s\n, $origin, 
$GLOBALS['PORTSDIR'],
$check
);
}
$GLOBALS['CHECKED'][] = $origin;
chkdep($origin, $check);
}
}
}
if( $argc  3 )
usage();

$PORTSDIR=('' != getenv('PORTSDIR') ) ? getenv('PORTSDIR') : '/usr/ports';
$pkg = $argv[1];
$dep = $argv[2];
if(!file_exists($PORTSDIR/$pkg/Makefile) )
{
fprintf(STDERR, Orphaned port: $pkg\n);
exit(2);
}
$CHECKED=array();
chkdep($PORTSDIR . '/' . $pkg, $dep);
?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Logcheck dependency hell

2009-02-13 Thread Chris Cowart
n j wrote:
 could anyone help me what command should I use to find out which
 logcheck-required port _exactly_ is trying to install half of the X
 libraries?

The Makefile says:

| BUILD_DEPENDS=  docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
| RUN_DEPENDS=lockfile:${PORTSDIR}/mail/procmail \
| bash:${PORTSDIR}/shells/bash

So I'll bet some money that it's docbook. 

Does it improve if you add these to /etc/make.conf:

| NO_GUI=YES
| WITHOUT_GUI=YES
| WITHOUT_X11=YES
| WITHOUT_XPM=YES

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgpQaocuzRcOT.pgp
Description: PGP signature


Logcheck dependency hell

2009-02-12 Thread n j
Hello,

could anyone help me what command should I use to find out which
logcheck-required port _exactly_ is trying to install half of the X
libraries?

The logcheck port lists the following build depends (output of
pretty-print-build-depends-list):

This port requires package(s) compositeproto-0.4 damageproto-1.1.0_2
dmxproto-2.2.2 docbook-1.4 docbook-4.1_3 docbook-4.2 docbook-4.3
docbook-4.4 docbook-4.5 docbook-5.0_1 docbook-sk-4.1.2_4
docbook-to-man-1.0_1 docbook-xml-4.2_1 docbook-xml-4.3 docbook-xml-4.4
docbook-xml-4.5 e2fsprogs-libuuid-1.41.4_1 expat-2.0.1 fixesproto-4.0
fontcacheproto-0.1.2 fontconfig-2.6.0,1 fontsproto-2.0.2
freetype2-2.3.7 inputproto-1.5.0 iso8879-1986_2 jade-1.2.1_9
kbproto-1.0.3 libFS-1.0.1 libICE-1.0.4_1,1 libSM-1.1.0,1
libX11-1.1.99.2,1 libXScrnSaver-1.1.3 libXTrap-1.0.0 libXau-1.0.4
libXaw-1.0.5_1,1 libXcomposite-0.4.0,1 libXcursor-1.1.9_1
libXdamage-1.1.1 libXdmcp-1.0.2_1 libXevie-1.0.2 libXext-1.0.5,1
libXfixes-4.0.3_1 libXfont-1.3.4,1 libXfontcache-1.0.4 libXft-2.1.13
libXi-1.2.0,1 libXinerama-1.0.3,1 libXmu-1.0.4,1 libXp-1.0.0,1
libXpm-3.5.7 libXrandr-1.2.3 libXrender-0.9.4_1 libXres-1.0.3_3
libXt-1.0.5_1 libXtst-1.0.3_1 libXv-1.0.4,1 libXvMC-1.0.4_1
libXxf86dga-1.0.2 libXxf86misc-1.0.1 libXxf86vm-1.0.2 libdmx-1.0.2_1
libfontenc-1.0.4 liboldX-1.0.1 libpthread-stubs-0.1 libxcb-1.1.93
libxkbfile-1.0.5 libxkbui-1.0.2_1 perl-5.8.9 pixman-0.13.2
pkg-config-0.23_1 printproto-1.0.4 python25-2.5.2_3 randrproto-1.2.1
recordproto-1.13.2 renderproto-0.9.3 scrnsaverproto-1.1.0
trapproto-3.4.3 videoproto-2.2.2 xcb-proto-1.3 xextproto-7.0.5
xf86dgaproto-2.0.3 xf86miscproto-0.9.2 xf86vidmodeproto-2.2.2
xineramaproto-1.1.2 xmlcatmgr-2.2 xmlcharent-0.3_2 xorg-libraries-7.4
xproto-7.0.14 xtrans-1.2.3 to build.

However, I really doubt that something as simple as logcheck really
needs all of these dependencies and I can't trace it far enough to see
which dependency is pulling all these X libs. How can I trace this
dependency hell? Is logcheck really this heavy or is the port that
bad?

Thanks for any input,
-- 
Nino
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org