NetBSD Problem Report #54708

From www@netbsd.org  Wed Nov 20 02:43:35 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 A26D37A182
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 20 Nov 2019 02:43:35 +0000 (UTC)
Message-Id: <20191120024334.AE8497A1B4@mollari.NetBSD.org>
Date: Wed, 20 Nov 2019 02:43:34 +0000 (UTC)
From: gerberb@zenez.com
Reply-To: gerberb@zenez.com
To: gnats-bugs@NetBSD.org
Subject: Malformed conditional in bsd.prefs.mk
X-Send-Pr-Version: www-1.0

>Number:         54708
>Category:       pkg
>Synopsis:       Malformed conditional in bsd.prefs.mk
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jperkin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 20 02:45:01 +0000 2019
>Closed-Date:    Sun Jan 05 20:49:02 +0000 2020
>Last-Modified:  Sun Jan 05 20:49:02 +0000 2020
>Originator:     Boyd Lynn Gerber
>Release:        https://github.com/NetBSD/pkgsrc trunk
>Organization:
ZENEZ
>Environment:
SCO_SV blg5ddev 3.2 5.0.7 i386 SCO Unix
>Description:
Undate bsd.prefs.mk to the latest on trunk on 19 Nov 2019

 bmake
bmake: "mk/mk/bsd.prefs.mk" line 721: Malformed conditional (${PKGSRC_MKPIE:tl} == "yes" &&  ${MKPIE_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_MKPIE:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 731: Malformed conditional (${PKGSRC_MKREPRO:tl} == "yes" &&  ${MKREPRO_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_MKREPRO:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 742: Malformed conditional (${PKGSRC_USE_FORTIFY:tl} != "no" &&  ${FORTIFY_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_FORTIFY:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 753: Malformed conditional (${PKGSRC_USE_RELRO:tl} != "no" &&  ${RELRO_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_RELRO:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 765: Malformed conditional (${PKGSRC_USE_SSP:tl} != "no" &&  ${SSP_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_SSP:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 776: Malformed conditional (${PKGSRC_USE_STACK_CHECK:tl} != "no" &&  ${STACK_CHECK_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_STACK_CHECK:Uno} == "yes")
bmake: Fatal errors encountered -- cannot continue
bmake: stopped in /u/build/pkgsrc

>How-To-Repeat:
copied from a machine with the latest git pull from https://github.com/NetBSD/pkgsrc trunk

cd to the pkgsrc directory,

# bmake
bmake: "mk/mk/bsd.prefs.mk" line 721: Malformed conditional (${PKGSRC_MKPIE:tl} == "yes" &&  ${MKPIE_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_MKPIE:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 731: Malformed conditional (${PKGSRC_MKREPRO:tl} == "yes" &&  ${MKREPRO_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_MKREPRO:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 742: Malformed conditional (${PKGSRC_USE_FORTIFY:tl} != "no" &&  ${FORTIFY_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_FORTIFY:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 753: Malformed conditional (${PKGSRC_USE_RELRO:tl} != "no" &&  ${RELRO_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_RELRO:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 765: Malformed conditional (${PKGSRC_USE_SSP:tl} != "no" &&  ${SSP_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_SSP:Uno} == "yes")
bmake: "mk/mk/bsd.prefs.mk" line 776: Malformed conditional (${PKGSRC_USE_STACK_CHECK:tl} != "no" &&  ${STACK_CHECK_SUPPORTED:Uyes:tl} == "yes" &&  ${_OPSYS_SUPPORTS_STACK_CHECK:Uno} == "yes")
bmake: Fatal errors encountered -- cannot continue
bmake: stopped in /u/build/pkgsrc
failed


>Fix:
Not sure

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jperkin
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Wed, 20 Nov 2019 09:37:39 +0000
Responsible-Changed-Why:
Jonathan, could you take a look please? You last edited this section
in bsd.prefs.mk. Although I strongly suspect a local issue.


From: Jonathan Perkin <jperkin@joyent.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
	bsiegert@NetBSD.org, gerberb@zenez.com
Subject: Re: pkg/54708 (Malformed conditional in bsd.prefs.mk)
Date: Wed, 20 Nov 2019 09:54:11 +0000

 * On 2019-11-20 at 09:37 GMT, bsiegert@NetBSD.org wrote:

 > Synopsis: Malformed conditional in bsd.prefs.mk
 > 
 > Responsible-Changed-From-To: pkg-manager->jperkin
 > Responsible-Changed-By: bsiegert@NetBSD.org
 > Responsible-Changed-When: Wed, 20 Nov 2019 09:37:39 +0000
 > Responsible-Changed-Why:
 > Jonathan, could you take a look please? You last edited this section
 > in bsd.prefs.mk. Although I strongly suspect a local issue.

 Definitely a local issue, note the paths:

   bmake: "mk/mk/bsd.prefs.mk" ...
   bmake: stopped in /u/build/pkgsrc

 I'm not sure what was intended here, but mk/mk/bsd.prefs.mk is
 certainly incorrect.

 -- 
 Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com

State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Wed, 20 Nov 2019 10:13:52 +0000
State-Changed-Why:
Can you provide more information? What's with these mk/mk/bsd.prefs.mk paths?
Does the issue also occur when you do a clean bootstrap from the checked-out sources?


From: Boyd Lynn Gerber <gerberb@zenez.com>
To: gnats-bugs@netbsd.org
Cc: Boyd Lynn Gerber <gerberb@zenez.com>
Subject: Re: pkg/54708 (Malformed conditional in bsd.prefs.mk)
Date: Wed, 20 Nov 2019 07:45:03 -0700

 On Wednesday 2019-11-20 10:13, bsiegert@NetBSD.org wrote:

 > Synopsis: Malformed conditional in bsd.prefs.mk
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: bsiegert@NetBSD.org
 > State-Changed-When: Wed, 20 Nov 2019 10:13:52 +0000
 > State-Changed-Why:
 > Can you provide more information? What's with these mk/mk/bsd.prefs.mk paths?
 > Does the issue also occur when you do a clean bootstrap from the checked-out sources?

 I did the other after coping just the new file. Here is whay I get after 
 a fresh bootstrap


 ===> bootstrap command: ./bootstrap --prefer-pkgsrc yes
 ===> bootstrap started: Wed Nov 20 07:29:47 MST 2019
 Working directory is: /u/build/pkgsrc-xinuos/bootstrap/work
 ...

 ===> Installing packages
 ===> running: (cd /u/build/pkgsrc-xinuos/pkgtools/bootstrap-mk-files && 
 /u/build/pkgsrc-xinuos/bootstrap/work/bin/bmake  MAKE_JOBS=1 USE_DESTDIR=no 
 -DPKG_PRESERVE MAKECONF=/u/build/pkgsrc-xinuos/bootstrap/work/mk.conf install)
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 721: Malformed conditional 
 (${PKGSRC_MKPIE:tl} == "yes" &&  ${MKPIE_SUPPORTED:Uyes:tl} == "yes" && 
 ${_OPSYS_SUPPORTS_MKPIE:Uno} == "yes")
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 731: Malformed conditional 
 (${PKGSRC_MKREPRO:tl} == "yes" &&  ${MKREPRO_SUPPORTED:Uyes:tl} == "yes" && 
 ${_OPSYS_SUPPORTS_MKREPRO:Uno} == "yes")
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 742: Malformed conditional 
 (${PKGSRC_USE_FORTIFY:tl} != "no" &&  ${FORTIFY_SUPPORTED:Uyes:tl} == "yes" && 
 ${_OPSYS_SUPPORTS_FORTIFY:Uno} == "yes")
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 753: Malformed conditional 
 (${PKGSRC_USE_RELRO:tl} != "no" &&  ${RELRO_SUPPORTED:Uyes:tl} == "yes" && 
 ${_OPSYS_SUPPORTS_RELRO:Uno} == "yes")
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 765: Malformed conditional 
 (${PKGSRC_USE_SSP:tl} != "no" &&  ${SSP_SUPPORTED:Uyes:tl} == "yes" && 
 ${_OPSYS_SUPPORTS_SSP:Uno} == "yes")
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 776: Malformed conditional 
 (${PKGSRC_USE_STACK_CHECK:tl} != "no" &&  ${STACK_CHECK_SUPPORTED:Uyes:tl} == "yes" && 
 ${_OPSYS_SUPPORTS_STACK_CHECK:Uno} == "yes")
 bmake: Fatal errors encountered -- cannot continue
 bmake: stopped in /u/build/pkgsrc-xinuos/pkgtools/bootstrap-mk-files
 ===> exited with status 1

 Regards,

 -- 
 Boyd Gerber <gerberb@zenez.com> 801 849-0213
 ZENEZ   1042 East Fort Union #135, Midvale Utah  84047

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@netbsd.org
Cc: jperkin@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	gerberb@zenez.com
Subject: Re: pkg/54708 (Malformed conditional in bsd.prefs.mk)
Date: Thu, 21 Nov 2019 20:08:13 +0100

 On Wed, Nov 20, 2019 at 07:10:01PM +0000, Boyd Lynn Gerber wrote:
 >  ===> running: (cd /u/build/pkgsrc-xinuos/pkgtools/bootstrap-mk-files && 
 >  /u/build/pkgsrc-xinuos/bootstrap/work/bin/bmake  MAKE_JOBS=1 USE_DESTDIR=no 

 USE_DESTDIR=no is completely unsupported.

 Joerg

From: Boyd Lynn Gerber <gerberb@zenez.com>
To: gnats-bugs@gnats.netbsd.org
Cc: jperkin@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, 
    Boyd Lynn Gerber <gerberb@zenez.com>
Subject: Re: pkg/54708 (Malformed conditional in bsd.prefs.mk)
Date: Sun, 5 Jan 2020 10:42:26 -0700

 Hello,

 A newer release fixed the issue

 This may be closed.

 Regards,
 -- 
 Boyd

 On Wednesday 2019-11-20 19:10, Boyd Lynn Gerber wrote:

 > The following reply was made to PR pkg/54708; it has been noted by GNATS.
 >
 > From: Boyd Lynn Gerber <gerberb@zenez.com>
 > To: gnats-bugs@netbsd.org
 > Cc: Boyd Lynn Gerber <gerberb@zenez.com>
 > Subject: Re: pkg/54708 (Malformed conditional in bsd.prefs.mk)
 > Date: Wed, 20 Nov 2019 07:45:03 -0700
 >
 > On Wednesday 2019-11-20 10:13, bsiegert@NetBSD.org wrote:
 >
 > > Synopsis: Malformed conditional in bsd.prefs.mk
 > >
 > > State-Changed-From-To: open->feedback
 > > State-Changed-By: bsiegert@NetBSD.org
 > > State-Changed-When: Wed, 20 Nov 2019 10:13:52 +0000
 > > State-Changed-Why:
 > > Can you provide more information? What's with these mk/mk/bsd.prefs.mk paths?
 > > Does the issue also occur when you do a clean bootstrap from the checked-out sources?
 >
 > I did the other after coping just the new file. Here is whay I get after
 > a fresh bootstrap
 >
 >
 > ===> bootstrap command: ./bootstrap --prefer-pkgsrc yes
 > ===> bootstrap started: Wed Nov 20 07:29:47 MST 2019
 > Working directory is: /u/build/pkgsrc-xinuos/bootstrap/work
 > ...
 >
 > ===> Installing packages
 > ===> running: (cd /u/build/pkgsrc-xinuos/pkgtools/bootstrap-mk-files &&
 > /u/build/pkgsrc-xinuos/bootstrap/work/bin/bmake  MAKE_JOBS=1 USE_DESTDIR=no
 > -DPKG_PRESERVE MAKECONF=/u/build/pkgsrc-xinuos/bootstrap/work/mk.conf install)
 > bmake: "../../mk/../../mk/bsd.prefs.mk" line 721: Malformed conditional
 > (${PKGSRC_MKPIE:tl} == "yes" &&  ${MKPIE_SUPPORTED:Uyes:tl} == "yes" &&
 > ${_OPSYS_SUPPORTS_MKPIE:Uno} == "yes")
 > bmake: "../../mk/../../mk/bsd.prefs.mk" line 731: Malformed conditional
 > (${PKGSRC_MKREPRO:tl} == "yes" &&  ${MKREPRO_SUPPORTED:Uyes:tl} == "yes" &&
 > ${_OPSYS_SUPPORTS_MKREPRO:Uno} == "yes")
 > bmake: "../../mk/../../mk/bsd.prefs.mk" line 742: Malformed conditional
 > (${PKGSRC_USE_FORTIFY:tl} != "no" &&  ${FORTIFY_SUPPORTED:Uyes:tl} == "yes" &&
 > ${_OPSYS_SUPPORTS_FORTIFY:Uno} == "yes")
 > bmake: "../../mk/../../mk/bsd.prefs.mk" line 753: Malformed conditional
 > (${PKGSRC_USE_RELRO:tl} != "no" &&  ${RELRO_SUPPORTED:Uyes:tl} == "yes" &&
 > ${_OPSYS_SUPPORTS_RELRO:Uno} == "yes")
 > bmake: "../../mk/../../mk/bsd.prefs.mk" line 765: Malformed conditional
 > (${PKGSRC_USE_SSP:tl} != "no" &&  ${SSP_SUPPORTED:Uyes:tl} == "yes" &&
 > ${_OPSYS_SUPPORTS_SSP:Uno} == "yes")
 > bmake: "../../mk/../../mk/bsd.prefs.mk" line 776: Malformed conditional
 > (${PKGSRC_USE_STACK_CHECK:tl} != "no" &&  ${STACK_CHECK_SUPPORTED:Uyes:tl} == "yes" &&
 > ${_OPSYS_SUPPORTS_STACK_CHECK:Uno} == "yes")
 > bmake: Fatal errors encountered -- cannot continue
 > bmake: stopped in /u/build/pkgsrc-xinuos/pkgtools/bootstrap-mk-files
 > ===> exited with status 1
 >
 > Regards,
 >
 > --
 > Boyd Gerber <gerberb@zenez.com> 801 849-0213
 > ZENEZ   1042 East Fort Union #135, Midvale Utah  84047
 >
 >

 -- 
 Boyd Gerber <gerberb@zenez.com> 801 849-0213
 ZENEZ   1042 East Fort Union #135, Midvale Utah  84047

State-Changed-From-To: feedback->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Sun, 05 Jan 2020 20:49:02 +0000
State-Changed-Why:
Probably a local problem.

Thank you Boyd for the PR and feedback and Benny and
Jonathan for comments!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.