Subject: pkg/24578: sysutils/fam is broken on Linux because of pkgsrc patches
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 02/27/2004 16:35:16
>Number:         24578
>Category:       pkg
>Synopsis:       sysutils/fam is broken on Linux because of pkgsrc patches
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 27 16:36:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        N/A
>Organization:
>Environment:
Slackware 9.1 (Linux 2.4.22)
>Description:
You can find error log at:

http://pkgsrc.w.lub.pl/fam-linux/fam-error.log

Unpatched configure runs okay:

http://pkgsrc.w.lub.pl/fam-linux/fam.configure-unpatched.log
http://pkgsrc.w.lub.pl/fam-linux/fam.config.log-unpatched
>How-To-Repeat:
Obvious
>Fix:
To get it to work:

bmake clean
mv patches/patch-ax .
bmake patch

-> edit ${WRKSRC}/config.h.in and add "#define HAVE_MNTENT_H 1", remove "#undef HAVE_MNTENT_H"

-> edit ${WRKSRC}/fam/mntent.h and change #include <mntent.h> to #include </usr/include/mntent.h> (to avoid include-file recursion on gcc 3.3)

I think, that the author of the original patches could re-think a bit 
the strategy. I'm not touching them, they already seem complicated. 
configure could test if mntent.h is available as detected
by original unpatched version, then it should "fall" to BSD-accepted 
settings.
>Release-Note:
>Audit-Trail:
>Unformatted: