tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RFC: devel/imake fix for MirBSD



Hi,

compiling any imake-using program on MirBSD currently fails. imake tries to execute cc and fails to find it. I do not know why it fails to find the cc in work/.wrapper/bin however. In any case, as the default compiler name on MirBSD is mgcc instead of cc, I created a patch for devel/imake. With this, at least net/vnc compiles correctly.

Is this okay to commit?

--Benny.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/imake/Makefile,v
retrieving revision 1.11
diff -u -d -r1.11 Makefile
--- Makefile    26 Jul 2011 16:05:27 -0000      1.11
+++ Makefile    3 Feb 2012 17:37:09 -0000
@@ -1,6 +1,7 @@
 # $NetBSD: Makefile,v 1.11 2011/07/26 16:05:27 dholland Exp $
 
 DISTNAME=              imake-1.0.3
+PKGREVISION=           1
 CATEGORIES=            x11 devel
 MASTER_SITES=          ${MASTER_SITE_XORG:=util/}
 EXTRACT_SUFX=          .tar.bz2
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/imake/distinfo,v
retrieving revision 1.2
diff -u -d -r1.2 distinfo
--- distinfo    21 May 2010 22:10:12 -0000      1.2
+++ distinfo    3 Feb 2012 17:37:09 -0000
@@ -3,3 +3,4 @@
 SHA1 (imake-1.0.3.tar.bz2) = 625a974dd0fe4c4e9d7ec036fc7b079ec05185f1
 RMD160 (imake-1.0.3.tar.bz2) = 5cbd5f23fc8360a10cb36c367405f5950443349d
 Size (imake-1.0.3.tar.bz2) = 139230 bytes
+SHA1 (patch-imakemdep.h) = 9238bdaa7095056b20d96bd0387474d416c533ba
Index: patches/patch-imakemdep.h
===================================================================
--- /dev/null   Fri Oct 14 04:42:07 2011
+++ patches/patch-imakemdep.h   Thu Oct 13 20:50:42 2011
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- imakemdep.h.orig   Thu Oct 13 18:50:30 2011
++++ imakemdep.h
+@@ -318,6 +318,10 @@ in this Software without prior written a
+ #   if defined(__FreeBSD__)  || defined(__NetBSD__) || defined(__OpenBSD__) 
|| defined(__DragonFly__)
+ #    define USE_CC_E
+ #   endif
++#   ifdef __MirBSD__
++#    define USE_CC_E
++#    define DEFAULT_CC "mgcc"
++#   endif
+ #   if defined(__sgi) && defined(__ANSI_CPP__)
+ #    define USE_CC_E
+ #   endif


Home | Main Index | Thread Index | Old Index