NetBSD Problem Report #34728

From dauphin@enst.fr  Fri Oct  6 08:46:30 2006
Return-Path: <dauphin@enst.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 4FBC163B8C9
	for <gnats-bugs@gnats.netbsd.org>; Fri,  6 Oct 2006 08:46:30 +0000 (UTC)
Message-Id: <1160124387.5969@bi.enst.fr>
Date: Fri, 6 Oct 2006 10:46:27 +0200
From: "Gilles Dauphin" <dauphin@enst.fr>
To: "gnats bugs" <gnats-bugs@NetBSD.org>
Subject: scons blender SUNPRO vs gcc ar
X-Send-Pr-Version: gtk-send-pr 0.4.5 
X-GNATS-Notify:

>Number:         34728
>Category:       pkg
>Synopsis:       scons blender SUNPRO vs gcc ar
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 06 08:50:00 +0000 2006
>Last-Modified:  Sun Oct 08 22:05:30 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


blander use scons to configure
the file scons-0.96.1/engine/SCons/Tool/sunar.py is wrong for gcc


>How-To-Repeat:


bmake in blender


>Fix:


This first fix is maybe correct for scons with SUNPRO and gcc:

--- engine/SCons/Tool/sunar.py.orig     Mon Aug 23 16:56:13 2004
+++ engine/SCons/Tool/sunar.py  Fri Oct  6 10:31:03 2006
@@ -42,14 +42,9 @@
     """Add Builders and construction variables for ar to an Environment."""
     SCons.Tool.createStaticLibBuilder(env)

-    if env.Detect('CC'):
-        env['AR']          = 'CC'
-        env['ARFLAGS']     = SCons.Util.CLVar('-xar')
-        env['ARCOM']       = '$AR $ARFLAGS -o $TARGET $SOURCES'
-    else:
-        env['AR']          = 'ar'
-        env['ARFLAGS']     = SCons.Util.CLVar('r')
-        env['ARCOM']       = '$AR $ARFLAGS $TARGET $SOURCES'
+    env['AR']          = 'ar'
+    env['ARFLAGS']     = SCons.Util.CLVar('r')
+    env['ARCOM']       = '$AR $ARFLAGS $TARGET $SOURCES'

     env['SHLINK']      = '$LINK'
     env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -G')



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sun, 08 Oct 2006 22:05:30 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.


>Unformatted:

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.