clang vs ports

op@opn ports> cat 20120526111938-kdebase3-clang.diff


--- ./kdebase-3.5.10/kicker/applets/launcher/easyvector.h.orig  2012-05-26 11:11:24.000000000 +0200
+++ ./kdebase-3.5.10/kicker/applets/launcher/easyvector.h       2012-05-26 11:12:38.000000000 +0200
@@ -87,7 +87,7 @@
 template < class VALUE, bool CHECKINDEX >
 void EasyVector< VALUE, CHECKINDEX >::eraseAt(Index index)
 {   _checkIndex(index);
-    erase(this->begin()+index);
+    this->erase(this->begin()+index);
 }


@@ -108,7 +108,7 @@
         this->push_back(value);
         return;
     }
-    insert(this->begin()+index,value);
+    this->insert(this->begin()+index,value);
 }


@@ -116,7 +116,7 @@
 void EasyVector< VALUE, CHECKINDEX >::insertAt(EasyVector< VALUE, CHECKINDEX >::Index index,const EasyVector< VALUE, CHECKINDEX > &v)
 {   index=_convertInsertIndex(index);
     _checkInsertIndex(index);
-    insert(this->begin()+index,v.begin(),v.end());
+    this->insert(this->begin()+index,v.begin(),v.end());
 }


op@opn ports> cat 2012052716XXXX-bsd.xorg.mk.diff


--- bsd.xorg.mk.orig    2012-05-27 16:31:19.000000000 +0200
+++ bsd.xorg.mk 2012-05-27 16:50:19.000000000 +0200
@@ -27,6 +27,13 @@
 # proto - install .pc file, no dependencies, needed only at build time for most of them
 # xserver - there's only one atm, I guess everything can fit into the port itself

+# XXX OP - workaround to build xorg with clang
+OP_WA_CPP_VER!= cc --version
+.if ${OP_WA_CPP_VER:Mclang}
+RAWCPP?= /usr/bin/gcpp
+CONFIGURE_ARGS+= RAWCPP=${RAWCPP}
+.endif
+
 .if defined(XORG_CAT)
 # Default variables, common to all new modular xorg ports.
 .if !defined(USE_TGZ)

ez utobbi tobb portot is eltor, kozben FreeBSD-s arcok is nekialltak a problema megoldasanak: https://trillian.chruetertee.ch/svn/ports/trunk

Hozzászólások

Ez a this-> odatétel miért is kellett? Miért nem megy ez clang-gal, ha g++-szal igen?