NetBSD Problem Report #48126

From riz@pomegranate.tastylime.net  Thu Aug 15 22:39:44 2013
Return-Path: <riz@pomegranate.tastylime.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 97B0C711A7
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 15 Aug 2013 22:39:44 +0000 (UTC)
Message-Id: <20130815223942.088D237CFD@pomegranate.tastylime.net>
Date: Thu, 15 Aug 2013 15:39:42 -0700 (PDT)
From: riz@NetBSD.org
Reply-To: riz@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgsrc cross-compilation broken for earm
X-Send-Pr-Version: 3.95

>Number:         48126
>Category:       pkg
>Synopsis:       pkgsrc cross-compilation broken for earm
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    riastradh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 15 22:40:00 +0000 2013
>Closed-Date:    Mon Feb 23 22:53:54 +0000 2015
>Last-Modified:  Mon Feb 23 22:55:00 +0000 2015
>Originator:     Jeff Rizzo
>Release:        NetBSD 6.1_RC4
>Organization:

>Environment:


System: NetBSD pomegranate.tastylime.net 6.1_RC4 NetBSD 6.1_RC4 (GENERIC) amd64
Architecture: x86_64
Machine: amd64
>Description:
	Setting up the cross-building stuff as documented in
	pkgsrc/doc/HOWTO-use-crosscompile does not work for earm
	platforms for several reasons:

	- pkgsrc/mk/gnu-config/config.sub needs to be updated

	- the following hardcoded stuff (in mk.conf) was necessary
	MACHINE_ARCH=        earm
	GNU_ARCH.earm=arm
	APPEND_ELF=elf-eabi
	MACHINE_GNU_PLATFORM=arm--netbsdelf-eabi
	NATIVE_MACHINE_GNU_PLATFORM=x86_64--netbsd

>How-To-Repeat:
	try to build packages for evbearm on amd64.
>Fix:

To work around:

        - pkgsrc/mk/gnu-config/config.sub needs to be updated

        - the following hardcoded stuff (in mk.conf) was necessary
        MACHINE_ARCH=        earm
        GNU_ARCH.earm=arm
        APPEND_ELF=elf-eabi
        MACHINE_GNU_PLATFORM=arm--netbsdelf-eabi
        NATIVE_MACHINE_GNU_PLATFORM=x86_64--netbsd

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->riastradh
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Thu, 15 Aug 2013 22:42:54 +0000
Responsible-Changed-Why:
mine


From: Reinoud Zandijk <reinoud@NetBSD.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: Re: pkg/48126
Date: Thu, 6 Feb 2014 21:50:15 +0100

 With some help, i've now patched it to run fine with the following
 modifications:

 I created the mk.conf machine_arch setting to:

 ----------
 # Specify the machine architecture of target packages.
 #
 # XXX This currently can't be set on the command line, which is a
 # bug.
 MACHINE_ARCH=        earmhf
 MACHINE_GNU_ARCH=    armv6
 MACHINE_GNU_PLATFORM= armv6--netbsdelf-eabihf
 ----------

 and patched :

 Index: mk/gnu-config/config.sub
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/gnu-config/config.sub,v
 retrieving revision 1.14
 diff -u -r1.14 config.sub
 --- mk/gnu-config/config.sub    30 Sep 2013 09:34:52 -0000      1.14
 +++ mk/gnu-config/config.sub    6 Feb 2014 17:47:55 -0000
 @@ -124,7 +124,7 @@
  case $maybe_os in
    nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
    linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 -  knetbsd*-gnu* | netbsd*-gnu* | \
 +  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-* | \
    kopensolaris*-gnu* | \
    storm-chaos* | os2-emx* | rtmk-nova*)
      os=-$maybe_os
 @@ -259,7 +259,7 @@
         | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
         | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
         | am33_2.0 \
 -       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 +       | arc | arm | arm[bl]e | arme[lb] | armv[23456] | armv[3456][lb] | avr | avr32 \
          | be32 | be64 \
         | bfin \
         | c4x | clipper \


 ---------

 This build basic packages. There are still other issues with perl etc. but
 those are not related to this PR.

 Reinoud

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48126 CVS commit: pkgsrc/mk/gnu-config
Date: Sat, 14 Feb 2015 05:04:23 +0000

 Module Name:	pkgsrc
 Committed By:	riastradh
 Date:		Sat Feb 14 05:04:23 UTC 2015

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

 Log Message:
 Accommodate an -eabi{,hf} suffix in GNU config.sub.

 XXX Send this upstream...

 This, together with other commits to MACHINE_GNU_PLATFORM issues,
 should fix PR pkg/48126, at long last.


 To generate a diff of this commit:
 cvs rdiff -u -r1.14 -r1.15 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: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	riz@NetBSD.org
Subject: Re: PR/48126 CVS commit: pkgsrc/mk/gnu-config
Date: Sun, 15 Feb 2015 16:43:57 +0100

 On Sat, Feb 14, 2015 at 05:05:01AM +0000, Taylor R Campbell wrote:
 > The following reply was made to PR pkg/48126; it has been noted by GNATS.
 > 
 > From: "Taylor R Campbell" <riastradh@netbsd.org>
 > To: gnats-bugs@gnats.NetBSD.org
 > Cc: 
 > Subject: PR/48126 CVS commit: pkgsrc/mk/gnu-config
 > Date: Sat, 14 Feb 2015 05:04:23 +0000
 > 
 >  Module Name:	pkgsrc
 >  Committed By:	riastradh
 >  Date:		Sat Feb 14 05:04:23 UTC 2015
 >  
 >  Modified Files:
 >  	pkgsrc/mk/gnu-config: config.sub
 >  
 >  Log Message:
 >  Accommodate an -eabi{,hf} suffix in GNU config.sub.
 >  
 >  XXX Send this upstream...

 Please revert this and get upstream to inclue this first. We should not
 have any local modifications in this file.

 Joerg

From: Alistair Crooks <agc@pkgsrc.org>
To: Joerg Sonnenberger <joerg@britannica.bec.de>
Cc: gnats-bugs@NetBSD.org, riastradh@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org, riz@NetBSD.org
Subject: Re: PR/48126 CVS commit: pkgsrc/mk/gnu-config
Date: Mon, 16 Feb 2015 03:15:40 +0100

 On Sun, Feb 15, 2015 at 04:43:57PM +0100, Joerg Sonnenberger wrote:
 > On Sat, Feb 14, 2015 at 05:05:01AM +0000, Taylor R Campbell wrote:
 > > The following reply was made to PR pkg/48126; it has been noted by GNATS.
 > > 
 > > From: "Taylor R Campbell" <riastradh@netbsd.org>
 > > To: gnats-bugs@gnats.NetBSD.org
 > > Cc: 
 > > Subject: PR/48126 CVS commit: pkgsrc/mk/gnu-config
 > > Date: Sat, 14 Feb 2015 05:04:23 +0000
 > > 
 > >  Module Name:	pkgsrc
 > >  Committed By:	riastradh
 > >  Date:		Sat Feb 14 05:04:23 UTC 2015
 > >  
 > >  Modified Files:
 > >  	pkgsrc/mk/gnu-config: config.sub
 > >  
 > >  Log Message:
 > >  Accommodate an -eabi{,hf} suffix in GNU config.sub.
 > >  
 > >  XXX Send this upstream...
 > 
 > Please revert this and get upstream to inclue this first. We should not
 > have any local modifications in this file.

 Actually, the reason we included these files in pkgsrc/mk is precisely
 so that we could make changes locally, without having to worry about
 upstream making the changesiin a timely manner for us.  Case in point
 was NetBSD/sh5 at the time, I believe.

 I don't see why we should rely on upstream for a pristine copy of
 this, as long as the changes themselves are sent upstream.

 Regards,
 Alistair

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	riz@NetBSD.org
Subject: Re: PR/48126 CVS commit: pkgsrc/mk/gnu-config
Date: Mon, 16 Feb 2015 11:57:55 +0100

 On Mon, Feb 16, 2015 at 02:20:00AM +0000, Alistair Crooks wrote:
 >  > Please revert this and get upstream to inclue this first. We should not
 >  > have any local modifications in this file.
 >  
 >  Actually, the reason we included these files in pkgsrc/mk is precisely
 >  so that we could make changes locally, without having to worry about
 >  upstream making the changesiin a timely manner for us.  Case in point
 >  was NetBSD/sh5 at the time, I believe.
 >  
 >  I don't see why we should rely on upstream for a pristine copy of
 >  this, as long as the changes themselves are sent upstream.

 It's a huge pain to diff the files on updates, so "ensure upstream has
 it" is by far the easiest approach to ensure that the next update will
 have the changes.

 Joerg

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/48126 CVS commit: pkgsrc/mk/gnu-config
Date: Mon, 16 Feb 2015 16:31:25 +0000

 On Mon, Feb 16, 2015 at 11:00:01AM +0000, Joerg Sonnenberger wrote:
  >  On Mon, Feb 16, 2015 at 02:20:00AM +0000, Alistair Crooks wrote:
  >  >  > Please revert this and get upstream to inclue this first. We should not
  >  >  > have any local modifications in this file.
  >  >  
  >  >  Actually, the reason we included these files in pkgsrc/mk is precisely
  >  >  so that we could make changes locally, without having to worry about
  >  >  upstream making the changesiin a timely manner for us.  Case in point
  >  >  was NetBSD/sh5 at the time, I believe.
  >  >  
  >  >  I don't see why we should rely on upstream for a pristine copy of
  >  >  this, as long as the changes themselves are sent upstream.
  >  
  >  It's a huge pain to diff the files on updates, so "ensure upstream has
  >  it" is by far the easiest approach to ensure that the next update will
  >  have the changes.

 How is it different from any other merge?

 -- 
 David A. Holland
 dholland@netbsd.org

From: Taylor R Campbell <riastradh@NetBSD.org>
To: Joerg Sonnenberger <joerg@britannica.bec.de>
Cc: gnats-bugs@NetBSD.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org, riz@NetBSD.org
Subject: Re: PR/48126 CVS commit: pkgsrc/mk/gnu-config
Date: Wed, 18 Feb 2015 14:34:53 +0000

 I submitted it upstream on Sunday:

 https://lists.gnu.org/archive/html/config-patches/2015-02/msg00006.html

 No response yet.

State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Mon, 23 Feb 2015 22:53:54 +0000
State-Changed-Why:
fixed


From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48126 CVS commit: pkgsrc/mk/gnu-config
Date: Mon, 23 Feb 2015 22:52:50 +0000

 Module Name:	pkgsrc
 Committed By:	riastradh
 Date:		Mon Feb 23 22:52:50 UTC 2015

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

 Log Message:
 Update config.guess and config.sub from GNU config.git on Savannah.

 Requested by joerg.  Noteworthy change: support for NetBSD/earm with
 -eabi(hf) suffix in MACHINE_GNU_PLATFORM, properly fixing PR 48126.

 XXX Maybe we should put these files on a vendor branch to make
 merging updates with local changes easier.


 To generate a diff of this commit:
 cvs rdiff -u -r1.15 -r1.16 pkgsrc/mk/gnu-config/config.guess \
     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.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.