NetBSD Problem Report #42705

From kre@munnari.OZ.AU  Sat Jan 30 11:30:48 2010
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 73A1363B886
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 30 Jan 2010 11:30:48 +0000 (UTC)
Message-Id: <201001301130.o0UBUfR8009481@jade.coe.psu.ac.th>
Date: Sat, 30 Jan 2010 18:30:41 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: time/gtodo-applet build causes make to dump core on NetBSD 4.0 (i386) (+FIX)
X-Send-Pr-Version: 3.95

>Number:         42705
>Category:       pkg
>Synopsis:       time/gtodo-applet build causes make to dump core on NetBSD 4.0 (i386) (+FIX)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 30 11:35:00 +0000 2010
>Originator:     Robert Elz
>Release:        NetBSD 4.0 / i386   (pkgsrc -current 2010-01-30)
>Organization:
	Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE (JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 kre@jade.coe.psu.ac.th:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
	NetBSD 4.0's make command contains a bug dealing with long
	input lines - this is long fixed in more recent versions of
	NetBSD, but is not fixed in any released version of NetBSD 4
	(which is still supposed to be supported by pkgsrc).

	time/gtodo-applet triggers that bug - and so needs to use
	a different version of make to build

>How-To-Repeat:
	I use pkg_comp with NetBSD 4.0 release sets installed
	(the use of NetBSD 4.0 (or 4.0.1) is critical to experience
	this problem, you won't see it on NetBSD 5 or later - even
	someone running NetBSD 4_STABLE from CVS probably won't see it).

	I have libkver to simulate a NetBSD 4.0 environment fully
	(but that's not important for this issue) - and I use
	pkgsrc modular xorg (X11_TYPE=modular) rather than installing
	the x* sets (totally irrelevant to this problem).

	With that environment, attempting to build time/gtodo-applet
	results in ...

===> Installing for gtodo-applet-0.1nb18
=> Generating pre-install file lists
Making install in src
[1]   Segmentation fault (core dumped) (cd ${subdir} &&...
*** Error code 1

Stop.
make: stopped in /pkg_comp/obj/pkgsrc/time/gtodo-applet/4x/gtodo-applet-0.1

	The core dump is from make.

>Fix:
	Assuming the change requested in PR pkg/42704 has been applied,
	the following patch "fixes" time/gtodo-applet, so that it builds
	correctly.

	A better fix would probably add the USE_TOOLS+= bmake line only
	for NetBSD 4.0 (it would be harmless everywhere, I believe, but does
	add additional overhead - though if you're installing gnome related
	stuff, you'd be used to LOTS of overhead already!)

	If the update in pkg/42704 is not accepted, changing "bmake" to
	"gmake" in the patch will probably work, but I have not verified
	that (it has worked previously - for other packages with the same
	problem.)

Index: Makefile
===================================================================
RCS file: /cvsroot/NetBSD/pkgsrc/time/gtodo-applet/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- Makefile	18 Jan 2010 09:59:28 -0000	1.28
+++ Makefile	30 Jan 2010 10:52:23 -0000
@@ -15,6 +15,7 @@
 DEPENDS+=		gtodo>=0.14:../../time/gtodo

 USE_TOOLS+=		pkg-config
+USE_TOOLS+=		bmake
 GNU_CONFIGURE=		YES
 USE_LIBTOOL=		YES

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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.