Subject: pkg/26268: USE_BUILTIN.readline==yes when IS_BUILTIN.readline==no
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <danw@NetBSD.org>
List: pkgsrc-bugs
Date: 07/12/2004 22:52:45
>Number:         26268
>Category:       pkg
>Synopsis:       USE_BUILTIN.readline==yes when IS_BUILTIN.readline==no
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 13 01:17:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dan Winship
>Release:        current pkgsrc
>Organization:
>Environment:
Darwin frotz.local 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC  Power Macintosh powerpc

>Description:
Darwin has a libedit which does not include readline support.
devel/readline/builtin.mk correctly sets IS_BUILTIN.readline to "no", because
there's no readline.h, but then it sets USE_BUILTIN.readline to "yes" anyway
(at line 91). This causes readline to not be built, and so the package depending
on it will fail (or at least, fail to use readline)

>How-To-Repeat:
Try to build, eg, lang/hugs on OS X. Note the warning about "readline not found,
ignoring --with-readline"

>Fix:
I think the whole INCOMPAT_READLINE thing is confused. It should just be
looking at IS_BUILTIN.readline. But I don't have a SunOS box to test against

>Release-Note:
>Audit-Trail:
>Unformatted: