NetBSD Problem Report #48424

From duck@shangtai.net  Thu Dec  5 01:03:03 2013
Return-Path: <duck@shangtai.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E83E4A644F
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  5 Dec 2013 01:03:03 +0000 (UTC)
Message-Id: <20131204232953.8F400A75CC@knightrider.shangtai.net>
Date: Thu,  5 Dec 2013 01:29:53 +0200 (EET)
From: duck@shangtai.net
Reply-To: duck@shangtai.net
To: gnats-bugs@gnats.NetBSD.org
Subject: -Wp,-MD wrapper needed for MIPSPro
X-Send-Pr-Version: 3.95

>Number:         48424
>Category:       pkg
>Synopsis:       -Wp,-MD wrapper needed for MIPSPro
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    irix-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 05 01:05:00 +0000 2013
>Closed-Date:    Tue Nov 20 09:21:52 +0000 2018
>Last-Modified:  Tue Nov 20 09:25:00 +0000 2018
>Originator:     duck@shangtai.net
>Release:        pkgsrc-2013Q3
>Organization:
>Environment:
System: IRIX64 halo 6.5 6.5.29m 01090133 IP30
Architecture: mips
Machine: IP30
>Description:
While compiling libwww I found that it tries to pass -Wp,-MD,somedepfile to
the compiler, this gets just passed through and causes mipspro to think
it should compile somedepfile (-MD is not a valid option and does not accept
an argument) which does not exist and the build breaks.
>How-To-Repeat:
Try to build libwww on IRIX with MIPSPro (7.4.4)
>Fix:
The following patch will solve the issue. Note: this does create a depfile, and
some other pkg may incorrectly assume that the depfile is in a gnu-like format
and potentially break. I have not come across such a pkg.

Index: transform-mipspro-cc
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/transform-mipspro-cc,v
retrieving revision 1.11
diff -u -r1.11 transform-mipspro-cc
--- transform-mipspro-cc        15 Jun 2007 15:34:31 -0000      1.11
+++ transform-mipspro-cc        4 Dec 2013 23:28:40 -0000
@@ -68,6 +68,7 @@
 -R*            ) transform_to "-Wl,-rpath,${arg#-R}" ;;
 -Wl,-R*                ) transform_to "-Wl,-rpath,${arg#-Wl,-R}" ;;

+-Wp,-MD,*      ) transform_to "-Wp,-MDupdate,${arg#-Wp,-MD,}" ;;
 # The MIPSpro compiler accepts these -W* directives, so just pass them
 # on through.
 -W[ablfpR]*,*  ) transform_pass ;;

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 10 Dec 2013 10:34:09 +0000
Responsible-Changed-Why:
Problem on IRIX with PIPSPro.


State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 20 Nov 2018 09:21:52 +0000
State-Changed-Why:
Applied, sorry for the delay. Thanks for the patc.



From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48424 CVS commit: pkgsrc/mk/wrapper
Date: Tue, 20 Nov 2018 09:21:23 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Tue Nov 20 09:21:23 UTC 2018

 Modified Files:
 	pkgsrc/mk/wrapper: transform-mipspro-cc

 Log Message:
 Add a rule for -Wp,-MD, which isn't provided by MIPSPro.
 MDupdate is the equivalent.

 From duck in PR pkg/48424.


 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 pkgsrc/mk/wrapper/transform-mipspro-cc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.