NetBSD Problem Report #38195
From martin@duskware.de Fri Mar 7 18:49:25 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id A21EF63B88C
for <gnats-bugs@gnats.netbsd.org>; Fri, 7 Mar 2008 18:49:25 +0000 (UTC)
Message-Id: <20080307122513.95B3763B88C@narn.NetBSD.org>
Date: Fri, 7 Mar 2008 12:25:13 +0000 (UTC)
From: sd4dfg2@hotmail.com
Reply-To: sd4dfg2@hotmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: Can't build pkgsrc/shells/tcsh on Solaris
X-Send-Pr-Version: www-1.0
>Number: 38195
>Category: pkg
>Synopsis: Can't build pkgsrc/shells/tcsh on Solaris
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 07 18:50:00 +0000 2008
>Closed-Date: Tue Mar 11 12:05:57 +0000 2008
>Last-Modified: Sun Mar 16 16:50:16 +0000 2008
>Originator: Rob Quinn
>Release: pkgsrc current, Solaris 8,9,10
>Organization:
>Environment:
>Description:
#bmake
=> Bootstrap dependency digest>=20010302: found digest-20070803
=> Checksum SHA1 OK for tcsh-6.15.00.tar.gz
=> Checksum RMD160 OK for tcsh-6.15.00.tar.gz
===> Installing dependencies for tcsh-6.15.00nb1
=> Build dependency gcc3-c>=3.3.6: found gcc3-c-3.3.6
===> Overriding tools for tcsh-6.15.00nb1
===> Extracting for tcsh-6.15.00nb1
===> Patching for tcsh-6.15.00nb1
=> Applying pkgsrc patches for tcsh-6.15.00nb1
===> Creating toolchain wrappers for tcsh-6.15.00nb1
===> Configuring for tcsh-6.15.00nb1
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris.2
checking cached host tuple... ok
configure: error: Tcsh can't guess the configuration file name
for `sparc-sun-solaris.2' systems.
Check tcsh's `Ported' file for manual configuration instructions.
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/shells/tcsh
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/shells/tcsh
>How-To-Repeat:
>Fix:
When I run configure by hand it finds a config:
sar-reston:/usr/obj/pkg/shells/tcsh/work/tcsh-6.15.00 #./configure
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking cached host tuple... ok
Tcsh will use configuration file `sol26'.
checking for gcc... gcc
checking for C compiler default output file name... a.out
>Release-Note:
>Audit-Trail:
From: OBATA Akio <obache@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: sd4dfg2@hotmail.com
Subject: Re: pkg/38195: Can't build pkgsrc/shells/tcsh on Solaris
Date: Sat, 08 Mar 2008 16:54:14 +0900
Does following patch fixes the problem?
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/shells/tcsh/Makefile,v
retrieving revision 1.62
diff -u -r1.62 Makefile
--- Makefile 2 Mar 2008 07:08:39 -0000 1.62
+++ Makefile 8 Mar 2008 07:49:26 -0000
@@ -26,8 +26,7 @@
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
-OS_VER_cmd= ${ECHO} ${OS_VERSION} | ${SED} -e 's|5\.|2.|'
-LOWER_OPSYS= solaris${OS_VER_cmd:sh}
+LOWER_OPSYS_VERSUFFIX= ${OS_VERSION:S/5./2./}
.endif
PKG_SHELL?= bin/tcsh
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/38915 CVS commit: pkgsrc/shells/tcsh
Date: Tue, 11 Mar 2008 11:57:46 +0000 (UTC)
Module Name: pkgsrc
Committed By: obache
Date: Tue Mar 11 11:57:46 UTC 2008
Modified Files:
pkgsrc/shells/tcsh: Makefile
Log Message:
Change hack of MACHINE_GNU_PLATFORM for Solaris to catch up framework's change?
Fixes PR 38915.
To generate a diff of this commit:
cvs rdiff -r1.62 -r1.63 pkgsrc/shells/tcsh/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
[note: above was inserted after the fact because the PR number was
wrong and gnats misfiled it.]
State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Tue, 11 Mar 2008 12:05:57 +0000
State-Changed-Why:
Patch commited. Thanks for the PR and feedback!
>Unformatted:
(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.