Subject: pkg/26157: pkgsrc/devel/binutils assumes that gperf is being built, which is not the case for some platforms
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <geos@epost.de>
List: pkgsrc-bugs
Date: 07/03/2004 21:37:57
>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:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 03 21:38:00 UTC 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: