NetBSD Problem Report #18627

Received: (qmail 14756 invoked by uid 605); 12 Oct 2002 06:09:37 -0000
Message-Id: <20021012060935.8862D1D19B@otaku.Xtrmntr.org>
Date: Sat, 12 Oct 2002 08:09:35 +0200 (CEST)
From: Lubomir Sedlacik <salo@Xtrmntr.org>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: salo@Xtrmntr.org
To: gnats-bugs@gnats.netbsd.org
Subject: lang/gcc PLIST.SunOS inconsistency (etc/${PKGNAME}.mk)
X-Send-Pr-Version: 3.95

>Number:         18627
>Category:       pkg
>Synopsis:       lang/gcc PLIST.SunOS inconsistency (etc/${PKGNAME}.mk)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 12 06:10:00 +0000 2002
>Closed-Date:    Mon Oct 21 06:32:51 +0000 2002
>Last-Modified:  Mon Oct 21 06:32:51 +0000 2002
>Originator:     Lubomir Sedlacik
>Release:        NetBSD 1.6
>Organization:
>Environment:
>Description:

there is an inconsistency in lang/gcc/PLIST.SunOS, the etc/${PKGNAME}.mk file
is not installed on Solaris due to conditional in Makefile.

>How-To-Repeat:

try to install lang/gcc on Solaris

>Fix:

there are two ways of fixing this.  it depends on whether we want to provide
this file even for Solaris (as PLIST.SunOS indicates) or not (as Makefile
indicates).

variant A:

Index: PLIST.SunOS
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gcc/PLIST.SunOS,v
retrieving revision 1.7
diff -u -r1.7 PLIST.SunOS
--- PLIST.SunOS	5 Oct 2002 20:54:52 -0000	1.7
+++ PLIST.SunOS	12 Oct 2002 05:58:20 -0000
@@ -14,7 +14,6 @@
 bin/gcov
 bin/jcf-dump
 bin/jv-scan
-etc/${PKGNAME}.mk
 include/g++-3/PlotFile.h
 include/g++-3/SFile.h
 include/g++-3/algo.h


variant B:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gcc/Makefile,v
retrieving revision 1.47
diff -u -r1.47 Makefile
--- Makefile	27 Sep 2002 12:28:15 -0000	1.47
+++ Makefile	12 Oct 2002 06:03:09 -0000
@@ -74,16 +74,14 @@
 post-build:
 	@${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc.mk > ${WRKDIR}/gcc.mk

+post-install:
 .if (${OPSYS} == SunOS)
 #
 # remove empty file and directories that show up when one does:
 #	make install; make deinstall; make install
 #
-post-install:
 	-cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
 .else
-post-install:
-	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/etc/${PKGNAME}.mk
 .  if exists(/usr/include/g++/FlexLexer.h)
 	${LN} -fs /usr/include/g++/FlexLexer.h				\
 		${GCC_PREFIX}/include/g++-3/FlexLexer.h
@@ -98,6 +96,7 @@
 		| ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g"	\
 		>> ${PLIST_SRC}
 .endif
+	${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/etc/${PKGNAME}.mk

 .include "../../mk/texinfo.mk"
 .include "../../mk/bsd.pkg.install.mk"
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jlam 
State-Changed-When: Sun Oct 20 13:40:22 PDT 2002 
State-Changed-Why:  
From the commit log for lang/gcc/Makefile: 
---------------------------- 
revision 1.48 
date: 2002/10/20 20:40:11;  author: jlam;  state: Exp;  lines: +2 -1 
Install ${PREFIX}/etc/${PKGNAME}.mk on SunOS, too.  From pkg/18627 by 
Lubomir Sedlacik. 
---------------------------- 
Please let me know if this fixes your problem.  Thanks! 

From: Lubomir Sedlacik <salo@Xtrmntr.org>
To: jlam@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/18627
Date: Mon, 21 Oct 2002 07:38:36 +0200

 hi,

 On Sun, Oct 20, 2002 at 08:41:16PM -0000, jlam@netbsd.org wrote:
 > State-Changed-From-To: open->feedback
 > ----------------------------
 > Please let me know if this fixes your problem.  Thanks!

 yes, this fixes the minor problem (generating wrong PLIST). the more
 serious one is still left there, see pkg/18309 for more details.


 thanks,
 regards,

 --=20
 -- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
  --
 --                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
  --
 --                                       Microsoft proprietary formats   X =
  --
 -- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
  --
 -- Key Fingerprint: 75B2 2B96 CD75 0385 1C49  39B8 8B08 C30E 54BC 7263     =
  --
State-Changed-From-To: feedback->closed 
State-Changed-By: jlam 
State-Changed-When: Sun Oct 20 23:32:13 PDT 2002 
State-Changed-Why:  
PR author confirms this problem is fixed, though pkg/18309 detail further 
problems with building lang/gcc on Solaris. 
>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.