NetBSD Problem Report #26157

Received: (qmail 13312 invoked by uid 605); 3 Jul 2004 21:37:59 -0000
Message-Id: <20040703213757.6AD3C11161@narn.netbsd.org>
Date: Sat,  3 Jul 2004 21:37:57 +0000 (UTC)
From: geos@epost.de
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: georg.schwarz@freenet.de
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgsrc/devel/binutils assumes that gperf is being built, which is not the case for some platforms
X-Send-Pr-Version: www-1.0

>Number:         26157
>Category:       pkg
>Synopsis:       pkgsrc/devel/binutils assumes that gperf is being built, which is not the case for some platforms
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    darwin-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 03 21:38:00 +0000 2004
>Closed-Date:    Sat Oct 07 19:01:55 +0000 2006
>Last-Modified:  Sat Oct 07 19:01:55 +0000 2006
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
pkgsrc/devel/binutils assumes that gperf is being built, which is not the case for some platforms. According to binutils' configure this should be the case on any MIPS machine (except for Linux systems), particularly on irix5 and irix6, or AIX running on PPC or RS6000 as well as on Darwin (the latter probably missing also a few other items such as gas).
>How-To-Repeat:

>Fix:
The following two patches fix the problem (at least for IRIX), similarly to net/ntp4:

*** PLIST.common.orig   Sat Jul  3 19:53:03 2004
--- PLIST.common        Sat Jul  3 19:55:17 2004
***************
*** 7,44 ****
  ${MACHINE_GNU_PLATFORM}/bin/strip
  ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/binutils.mo
! ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/de/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/binutils.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gas.mo
! ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/binutils.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gas.mo
! ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/opcodes.mo
! ${PKGLOCALEDIR}/locale/id/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/id/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/binutils.mo
! ${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/ro/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/binutils.mo
! ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/binutils.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gas.mo
! ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/bfd.mo
--- 7,44 ----
  ${MACHINE_GNU_PLATFORM}/bin/strip
  ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/binutils.mo
! ${NO_GPROF}${PKGLOCALEDIR}/locale/da/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/de/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/binutils.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gas.mo
! ${NO_GPROF}${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/binutils.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gas.mo
! ${NO_GPROF}${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/opcodes.mo
! ${NO_GPROF}${PKGLOCALEDIR}/locale/id/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/id/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/binutils.mo
! ${NO_GPROF}${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/ro/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/binutils.mo
! ${NO_GPROF}${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/bfd.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/binutils.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gas.mo
! ${NO_GPROF}${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gprof.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/ld.mo
  ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/opcodes.mo
  ${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/bfd.mo
***************
*** 47,53 ****
  bin/ar
  bin/as
  bin/c++filt
! bin/gprof
  bin/ld
  bin/nm
  bin/objcopy
--- 47,53 ----
  bin/ar
  bin/as
  bin/c++filt
! ${NO_GPROF}bin/gprof
  bin/ld
  bin/nm
  bin/objcopy
***************
*** 72,78 ****
  man/man1/as.1
  man/man1/c++filt.1
  man/man1/dlltool.1
! man/man1/gprof.1
  man/man1/ld.1
  man/man1/nlmconv.1
  man/man1/nm.1
--- 72,78 ----
  man/man1/as.1
  man/man1/c++filt.1
  man/man1/dlltool.1
! ${NO_GPROF}man/man1/gprof.1
  man/man1/ld.1
  man/man1/nlmconv.1
  man/man1/nm.1

*** Makefile.orig       Sat Jul  3 19:55:29 2004
--- Makefile    Sat Jul  3 20:24:31 2004
***************
*** 26,32 ****
  PLIST_SRC+=   ${WRKDIR}/PLIST_DYNAMIC
  PLIST_SRC+=   ${PKGDIR}/PLIST.common_end

! INFO_FILES=   as.info bfd.info binutils.info gprof.info ld.info

  # Prevent the need to run texi2pod.pl and pod2man hence
  # the need for perl as build dependency.
--- 26,44 ----
  PLIST_SRC+=   ${WRKDIR}/PLIST_DYNAMIC
  PLIST_SRC+=   ${PKGDIR}/PLIST.common_end

! INFO_FILES=   as.info bfd.info binutils.info ld.info
! 
! # figure out whether gprof will be built or not
! #
! .include "../../mk/bsd.prefs.mk"
! .if ${OPSYS} == "IRIX"
! NO_GPROF=     "@comment " # comment out in PLIST.common
! .else
! NO_GPROF=     ""
! INFO_FILES+=  gprof.info
! .endif
! 
! PLIST_SUBST+= NO_GPROF=${NO_GPROF}

  # Prevent the need to run texi2pod.pl and pod2man hence
  # the need for perl as build dependency.


>Release-Note:
>Audit-Trail:

From: Georg Schwarz <geos@epost.de>
To: gnats-bugs@NetBSD.org
Cc:  
Subject: Re: pkg/26157: pkgsrc/devel/binutils assumes that gprof is being built,
 which is not the case for some platforms
Date: Sat, 3 Jul 2004 23:56:02 +0200 (CEST)

 Sorry, I meant gprof, not gperf, of course.

 -- 
 Georg Schwarz    http://home.pages.de/~schwarz/
  geos@epost.de     +49 177 8811442

Responsible-Changed-From-To: pkg-manager->irix-pkg-people 
Responsible-Changed-By: recht 
Responsible-Changed-When: Sun Jul 4 13:35:28 UTC 2004 
Responsible-Changed-Why:  
over to irix-pkg-people 
Responsible-Changed-From-To: irix-pkg-people->darwin-pkg-people 
Responsible-Changed-By: jschauma 
Responsible-Changed-When: Sun Jul 4 17:16:47 UTC 2004 
Responsible-Changed-Why:  

Patch applied for IRIX, but Darwin folks should check and verify 
which parts are not build under Darwin and adjust as necessary. 


From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26157 CVS commit: pkgsrc/devel/binutils
Date: Sun,  4 Jul 2004 17:16:32 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jschauma
 Date:		Sun Jul  4 17:16:32 UTC 2004

 Modified Files:
 	pkgsrc/devel/binutils: Makefile PLIST.common

 Log Message:
 Apply patch provided by Georg Schwarz in PR pkg/26157:
 binutils does not build gprof on all platforms.


 To generate a diff of this commit:
 cvs rdiff -r1.20 -r1.21 pkgsrc/devel/binutils/Makefile
 cvs rdiff -r1.6 -r1.7 pkgsrc/devel/binutils/PLIST.common

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

State-Changed-From-To: open->closed
State-Changed-By: schwarz@netbsd.org
State-Changed-When: Sat, 07 Oct 2006 19:01:55 +0000
State-Changed-Why:
devel/binutils is marked not to install on Darwin anyway


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.