NetBSD Problem Report #40624
From www@NetBSD.org Thu Feb 12 14:37:53 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 39F7063C181
for <gnats-bugs@gnats.netbsd.org>; Thu, 12 Feb 2009 14:37:53 +0000 (UTC)
Message-Id: <20090212143753.0A38763C17C@narn.NetBSD.org>
Date: Thu, 12 Feb 2009 14:37:53 +0000 (UTC)
From: erick.crager@gmail.com
Reply-To: erick.crager@gmail.com
To: gnats-bugs@NetBSD.org
Subject: elinks 0.12pre2 fails to build on a Mac G3 running NetBSD 4.0.1/macppc using default options.mk
X-Send-Pr-Version: www-1.0
>Number: 40624
>Category: port-macppc
>Synopsis: elinks 0.12pre2 fails to build on a Mac G3 running NetBSD 4.0.1/macppc using default options.mk
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-macppc-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 12 14:40:01 +0000 2009
>Closed-Date: Fri Feb 13 10:53:29 +0000 2009
>Last-Modified: Fri Feb 13 10:53:29 +0000 2009
>Originator: Erick Crager
>Release: 4.0.1
>Organization:
>Environment:
NetBSD unworthy.home.0 4.0.1 NetBSD 4.0.1 (GENERIC) #0: Tue Oct 7 23:19:46 PDT 2008 builds@wb27:/home/builds/ab/netbsd-4-0-1-RELEASE/macppc/200810080053Z-obj/home/builds/ab/netbsd-4-0-1-RELEASE/src/sys/arch/macppc/compile/GENERIC macppc
>Description:
elinks 0.12pre2 with the default options.mk will not build on macppc because the required package 'see' cannot build on macppc. Here is a selection from the build process to illustrate this problem. The 'see' package is required when javascript support is desired.
===> Building for see-3.0.1376
Making all in include
/usr/bin/make all-recursive
Making all in see
/usr/bin/make all-am
Making all in libsee
/usr/bin/make all-recursive
Making all in .
if /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -I/usr/pkg/include -I/usr/include -MT dtoa.lo -MD -MP -MF ".deps/dtoa.Tpo" -c -o dtoa.lo dtoa.c; then mv -f ".deps/dtoa.Tpo" ".deps/dtoa.Plo"; else rm -f ".deps/dtoa.Tpo"; exit 1; fi
cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/bootstrap/work/wrk/lang/see/work/.buildlink/include -O2 -MT dtoa.lo -MD -MP -MF .deps/dtoa.Tpo -c dtoa.c -fPIC -DPIC -o .libs/dtoa.o
dtoa.c:269:3: error: #error "Exactly one of IEEE_8087, IEEE_MC68k, VAX, or IBM should be defined."
*** Error code 1
>How-To-Repeat:
Have pkgsrc checked out after this:
Updated www/elinks to 0.12rc2 [bjs 2008-11-06]
cd /usr/pkgsrc/www/elinks
sudo make
>Fix:
Since the bad package is required for javascript support, disable javascript support in /usr/pkgsrc/www/elinks/options.mk
$ diff -cB options.mk options.mk-fixed
*** options.mk Thu Feb 12 14:18:46 2009
--- options.mk-fixed Thu Feb 12 14:22:12 2009
***************
*** 1,7 ****
# $NetBSD: options.mk,v 1.9 2008/11/06 08:33:31 bjs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.elinks
! PKG_SUPPORTED_OPTIONS+= bittorrent nntp javascript finger gopher
PKG_SUPPORTED_OPTIONS+= inet6 x11 elinks-exmode expat
PKG_SUPPORTED_OPTIONS+= elinks-html-highlight elinks-root-exec
PKG_SUPPORTED_OPTIONS+= kerberos
--- 1,7 ----
# $NetBSD: options.mk,v 1.9 2008/11/06 08:33:31 bjs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.elinks
! PKG_SUPPORTED_OPTIONS+= bittorrent nntp finger gopher
PKG_SUPPORTED_OPTIONS+= inet6 x11 elinks-exmode expat
PKG_SUPPORTED_OPTIONS+= elinks-html-highlight elinks-root-exec
PKG_SUPPORTED_OPTIONS+= kerberos
***************
*** 9,15 ****
PKG_OPTIONS_GROUP.malloc= boehm-gc elinks-fastmem
PKG_OPTIONS_REQUIRED_GROUPS= tls
PKG_OPTIONS_OPTIONAL_GROUPS= malloc
! PKG_SUGGESTED_OPTIONS= ssl javascript elinks-html-highlight elinks-exmode
PKG_SUGGESTED_OPTIONS+= expat boehm-gc
PKG_OPTIONS_LEGACY_OPTS= spidermonkey:javascript
--- 9,15 ----
PKG_OPTIONS_GROUP.malloc= boehm-gc elinks-fastmem
PKG_OPTIONS_REQUIRED_GROUPS= tls
PKG_OPTIONS_OPTIONAL_GROUPS= malloc
! PKG_SUGGESTED_OPTIONS= ssl elinks-html-highlight elinks-exmode
PKG_SUGGESTED_OPTIONS+= expat boehm-gc
PKG_OPTIONS_LEGACY_OPTS= spidermonkey:javascript
>Release-Note:
>Audit-Trail:
From: Havard Eidnes <he@NetBSD.org>
To: gnats-bugs@NetBSD.org, erick.crager@gmail.com
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-macppc/40624: elinks 0.12pre2 fails to build on a Mac G3
running NetBSD 4.0.1/macppc using default options.mk
Date: Thu, 12 Feb 2009 16:19:12 +0100 (CET)
> elinks 0.12pre2 with the default options.mk will not build on
> macppc because the required package 'see' cannot build on
> macppc. Here is a selection from the build process to
> illustrate this problem. The 'see' package is required when
> javascript support is desired.
Better then to fix the see package, which could be done with this
simple diff (which I'll commit shortly):
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/see/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile 20 Oct 2008 00:45:35 -0000 1.1.1.1
+++ Makefile 12 Feb 2009 15:17:08 -0000
@@ -2,6 +2,7 @@
#
DISTNAME= see-3.0.1376
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://users.tpg.com.au/dle0nard/software/
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/see/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 20 Oct 2008 00:45:35 -0000 1.1.1.1
+++ distinfo 12 Feb 2009 15:17:08 -0000
@@ -3,3 +3,4 @@ $NetBSD: distinfo,v 1.1.1.1 2008/10/20 0
SHA1 (see-3.0.1376.tar.gz) = d803adac6298a0f556d59f501f0376d9196d0821
RMD160 (see-3.0.1376.tar.gz) = 1fb3eb7a796ba96fe68fbc3225bcaafff5692f6f
Size (see-3.0.1376.tar.gz) = 1066852 bytes
+SHA1 (patch-aa) = 00d5260d023bc4f03239aa42eff0ced616a9691f
--- /dev/null 2009-02-12 16:16:36.000000000 +0100
+++ patches/patch-aa 2009-02-12 16:15:55.000000000 +0100
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- libsee/dtoa_config.h.orig 2007-09-14 00:01:42.000000000 +0200
++++ libsee/dtoa_config.h
+@@ -16,7 +16,7 @@
+ # define IEEE_8087
+ #endif
+
+-#if defined(__m68k__) || defined(__sparc__) || defined(__ppc__)
++#if defined(__m68k__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__)
+ # define IEEE_MC68k
+ #endif
+
From: Havard Eidnes <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40624 CVS commit: pkgsrc/lang/see
Date: Thu, 12 Feb 2009 15:24:14 +0000 (UTC)
Module Name: pkgsrc
Committed By: he
Date: Thu Feb 12 15:24:14 UTC 2009
Modified Files:
pkgsrc/lang/see: Makefile distinfo
Added Files:
pkgsrc/lang/see/patches: patch-aa
Log Message:
Update from version 3.0.1376 to 3.0.1376nb1.
Pkgsrc changes:
o Add a patch so that our PowerPC-based ports are properly detected
by the dtoa configuration logic, by also recognizing __powerpc__
to indicate big-endian float format.
This should fix PR#40624.
To generate a diff of this commit:
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/lang/see/Makefile pkgsrc/lang/see/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/lang/see/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->pending-pullups
State-Changed-By: he@NetBSD.org
State-Changed-When: Thu, 12 Feb 2009 16:21:04 +0000
State-Changed-Why:
The lang/see package has been fixed,
and a pull-up request sent for pkgsrc-2008Q4.
The problem has also been reported upstream.
From: "Tyler R. Retzlaff" <rtr@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40624 CVS commit: [pkgsrc-2008Q4] pkgsrc/lang/see
Date: Fri, 13 Feb 2009 09:47:53 +0000 (UTC)
Module Name: pkgsrc
Committed By: rtr
Date: Fri Feb 13 09:47:53 UTC 2009
Modified Files:
pkgsrc/lang/see [pkgsrc-2008Q4]: distinfo
Added Files:
pkgsrc/lang/see/patches [pkgsrc-2008Q4]: patch-aa
Log Message:
pullup ticket #2969 - requested by he
see: add patch for ppc ports
revisions pulled up:
pkgsrc/lang/see/Makefile pkgsrc/lang/see/distinfo 1.2
pkgsrc/lang/see/patches/patch-aa 1.1
Module Name: pkgsrc
Committed By: he
Date: Thu Feb 12 15:24:14 UTC 2009
Modified Files:
pkgsrc/lang/see: Makefile distinfo
Added Files:
pkgsrc/lang/see/patches: patch-aa
Log Message:
Update from version 3.0.1376 to 3.0.1376nb1.
Pkgsrc changes:
o Add a patch so that our PowerPC-based ports are properly detected
by the dtoa configuration logic, by also recognizing __powerpc__
to indicate big-endian float format.
This should fix PR#40624.
To generate a diff of this commit:
cvs rdiff -r1.1.1.1 -r1.1.1.1.2.1 pkgsrc/lang/see/distinfo
cvs rdiff -r0 -r1.1.2.2 pkgsrc/lang/see/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: he@NetBSD.org
State-Changed-When: Fri, 13 Feb 2009 10:53:29 +0000
State-Changed-Why:
The fix has been pulled up to pkgsrc-2008Q4.
>Unformatted:
(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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.