NetBSD Problem Report #56665
From www@netbsd.org Mon Jan 24 08:43:53 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 943001A923D
for <gnats-bugs@gnats.NetBSD.org>; Mon, 24 Jan 2022 08:43:53 +0000 (UTC)
Message-Id: <20220124084352.3E7481A923E@mollari.NetBSD.org>
Date: Mon, 24 Jan 2022 08:43:52 +0000 (UTC)
From: youremailsarecrap@gmail.com
Reply-To: youremailsarecrap@gmail.com
To: gnats-bugs@NetBSD.org
Subject: BISON_REQD has no effect
X-Send-Pr-Version: www-1.0
>Number: 56665
>Category: pkg
>Synopsis: BISON_REQD has no effect
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 24 08:45:00 +0000 2022
>Closed-Date: Wed Sep 06 11:07:02 +0000 2023
>Last-Modified: Wed Sep 06 11:07:02 +0000 2023
>Originator: Niclas Rosenvik
>Release: pkgsrc-current from 2022 jan 5
>Organization:
>Environment:
NetBSD localhost 9.2 NetBSD 9.2 (CAN_KERNEL) #0: Mon Dec 13 17:36:42 CET 2021 niclas@localhost:/usr/src/sys/arch/amd64/compile/CAN_KERNEL amd64
>Description:
When creating a package that uses bison as a tool with USE_TOOLS+=bison
and BISON_REQD=3.0 pkgsrc outputs the line:
=> Tool dependency bison>=1.0: found bison-3.8.2
When setting GMAKE_REQD=3.0 for gmake the output is
=> Tool dependency gmake>=3.0: found gmake-4.3
This is as it should be.
BISON_REQD can even be set to 4.0 a version newer than the one released and used in pkgsrc and the the build just continues with the same output line as above. My conclusion is that BISON_REQD has no effect and that something is wrong in pkgsrc/mk/tools/bison.mk .
>How-To-Repeat:
Do the steps in the full description.
>Fix:
>Release-Note:
>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/56665: BISON_REQD has no effect
Date: Thu, 21 Apr 2022 03:10:55 +0000
On Mon, Jan 24, 2022 at 08:45:00AM +0000, youremailsarecrap@gmail.com wrote:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
o_O
> When creating a package that uses bison as a tool with USE_TOOLS+=bison
> and BISON_REQD=3.0 pkgsrc outputs the line:
> => Tool dependency bison>=1.0: found bison-3.8.2
Given that bison.mk sets
BISON_REQD?= 1.875
probably something else is clobbering it.
That doesn't appear to be anything in pkgsrc; there's no such
reference to it in mk/ and only one package sets it itself, and that
to 3.3.
Check your mk.conf and other local bits I guess?
--
David A. Holland
dholland@netbsd.org
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 15 May 2022 04:42:37 +0000
State-Changed-Why:
A suggestion was made.
From: Niclas Rosenvik <youremailsarecrap@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/56665: BISON_REQD has no effect
Date: Wed, 6 Sep 2023 13:03:41 +0200
--00000000000009c8610604aea198
Content-Type: text/plain; charset="UTF-8"
I have been looking a little into this and found that mk/tools/replace.mk has
the line "TOOL_DEPENDS+= bison>=1.0:../../devel/bison" in the bison
section. gmake has GMAKE_REQD instead of 1.0 which explains why the version
displayed for gmake is correct. BISON_REQD has an effect in that if a
sufficient version is not installed bison from pkgsrc is used and that is
usually of the latest version. So this can be closed.
--00000000000009c8610604aea198
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"auto">I have been looking a little into this a=
nd found that mk/tools/<a href=3D"http://replace.mk" rel=3D"noreferrer nore=
ferrer noreferrer" target=3D"_blank">replace.mk</a>=C2=A0has the line "=
;TOOL_DEPENDS+=3D bison>=3D1.0:../../devel/bison" in the bison sect=
ion. gmake has GMAKE_REQD instead of 1.0 which explains why the version dis=
played for gmake is correct. BISON_REQD has an effect in that if a sufficie=
nt version is not installed bison from pkgsrc is used and that is usually o=
f the latest version. So this can be closed. <br></div>
</div>
--00000000000009c8610604aea198--
State-Changed-From-To: feedback->closed
State-Changed-By: nros@NetBSD.org
State-Changed-When: Wed, 06 Sep 2023 11:07:02 +0000
State-Changed-Why:
Closed since this was a non issue
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.