NetBSD Problem Report #53825

From www@NetBSD.org  Tue Jan  1 21:40:40 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 41DCE7A0F8
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  1 Jan 2019 21:40:40 +0000 (UTC)
Message-Id: <20190101214039.527907A233@mollari.NetBSD.org>
Date: Tue,  1 Jan 2019 21:40:39 +0000 (UTC)
From: uwe@NetBSD.org
Reply-To: uwe@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: mk/gnu-config/config.sub doesn't recognisze SuperH any more
X-Send-Pr-Version: www-1.0

>Number:         53825
>Category:       pkg
>Synopsis:       mk/gnu-config/config.sub doesn't recognisze SuperH any more
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 01 21:45:01 +0000 2019
>Closed-Date:    Sat Jan 12 09:52:02 +0000 2019
>Last-Modified:  Sat Jan 12 09:52:02 +0000 2019
>Originator:     Valery Ushakov
>Release:        pkgsrc-2018Q4
>Organization:
>Environment:
NetBSD felix 8.99.12 NetBSD 8.99.12 (FELIX) #0: Sun Mar  4 03:58:59 MSK 2018  uwe@sampo:/home/uwe/work/netbsd/cvs/src/sys/arch/landisk/compile/FELIX landisk

>Description:
$ make package
===> Checking for vulnerabilities in cwrappers-20180325
===> Configuring for cwrappers-20180325
=> Configuring and building libnbcompat
checking build system type... Invalid configuration `shl-unknown-netbsdelf8.99': machine `shl-unknown' not recognized
configure: error: /bin/sh ./config.sub shl-unknown-netbsdelf8.99 failed
*** Error code 1

>How-To-Repeat:
Try to build a package on NetBSD/landisk

>Fix:
This seems to have been broken in revision 1.20

$ sh config.sub.~1.19~ shl-unknown-netbsdelf8.99 
shl-unknown-netbsdelf8.99
$ sh config.sub.~1.20~ shl-unknown-netbsdelf8.99 
Invalid configuration `shl-unknown-netbsdelf8.99': machine `shl-unknown' not recognized


It looks like the new code to normalize CPU that was not in 1.19 needs
to be taught about "shl".

>Release-Note:

>Audit-Trail:
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53825 CVS commit: pkgsrc/mk/gnu-config
Date: Wed, 2 Jan 2019 15:31:36 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Wed Jan  2 15:31:36 UTC 2019

 Modified Files:
 	pkgsrc/mk/gnu-config: config.sub

 Log Message:
 Match 32-bit SuperH CPUs in the same way that GCC does.

 PR pkg/53825


 To generate a diff of this commit:
 cvs rdiff -u -r1.21 -r1.22 pkgsrc/mk/gnu-config/config.sub

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53825 CVS commit: pkgsrc/mk/gnu-config
Date: Wed, 2 Jan 2019 15:41:13 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Wed Jan  2 15:41:13 UTC 2019

 Modified Files:
 	pkgsrc/mk/gnu-config: config.sub

 Log Message:
 Really mirror GCC now, including the wildcard.

 Thanks joerg for the heads up

 PR pkg/53825


 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 pkgsrc/mk/gnu-config/config.sub

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 02 Jan 2019 19:39:33 +0000
State-Changed-Why:
Requesting confirmation for pullup and for upstreaming


From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: maya@NetBSD.org
Subject: Re: pkg/53825 (mk/gnu-config/config.sub doesn't recognisze SuperH
 any more)
Date: Thu, 3 Jan 2019 02:57:31 +0300

 Revision 1.24 seems to work (on the quarterly branch), thanks.

 ===> Creating toolchain wrappers for cwrappers-20180325
 ===> Configuring for cwrappers-20180325
 => Configuring and building libnbcompat
 checking build system type... shl-unknown-netbsdelf8.99
 checking host system type... shle--netbsdelf
 checking for shle--netbsdelf-gcc... gcc
 [...]

 -uwe

From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53825 CVS commit: [pkgsrc-2018Q4] pkgsrc/mk/gnu-config
Date: Fri, 11 Jan 2019 19:05:12 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Fri Jan 11 19:05:12 UTC 2019

 Modified Files:
 	pkgsrc/mk/gnu-config [pkgsrc-2018Q4]: config.sub

 Log Message:
 Pullup ticket #5887 - requested by maya
 mk: SuperH build fix

 Revisions pulled up:
 - mk/gnu-config/config.sub                                      1.22-1.24

 ---
    Module Name:    pkgsrc
    Committed By:   maya
    Date:           Wed Jan  2 15:31:36 UTC 2019

    Modified Files:
            pkgsrc/mk/gnu-config: config.sub

    Log Message:
    Match 32-bit SuperH CPUs in the same way that GCC does.

    PR pkg/53825

 ---
    Module Name:    pkgsrc
    Committed By:   maya
    Date:           Wed Jan  2 15:41:13 UTC 2019

    Modified Files:
            pkgsrc/mk/gnu-config: config.sub

    Log Message:
    Really mirror GCC now, including the wildcard.

    Thanks joerg for the heads up

    PR pkg/53825

 ---
    Module Name:    pkgsrc
    Committed By:   maya
    Date:           Wed Jan  2 15:45:27 UTC 2019

    Modified Files:
            pkgsrc/mk/gnu-config: config.sub

    Log Message:
    Revert accidental change.


 To generate a diff of this commit:
 cvs rdiff -u -r1.21 -r1.21.2.1 pkgsrc/mk/gnu-config/config.sub

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 12 Jan 2019 09:52:02 +0000
State-Changed-Why:
Patch committed, pulled up, and submitter says the issue is fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.