From 9b60bf839fcc9e92c6006d3d7cd646e2b460d796 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 19 Feb 2009 14:56:48 +0000 Subject: [PATCH] Support %b in printf-like functions as required to compile the FreeBSD kernel. Submitted by: rdivacky --- devel/llvm-devel/Makefile | 1 + .../patch-tools_clang_lib_Sema_SemaChecking.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 devel/llvm-devel/files/patch-tools_clang_lib_Sema_SemaChecking.cpp diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile index 44916db3d9db..50637fa5fc41 100644 --- a/devel/llvm-devel/Makefile +++ b/devel/llvm-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= llvm DISTVERSION= 2.4.snap${SNAPDATE} +PORTREVISION= 1 CATEGORIES= devel lang MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= brooks diff --git a/devel/llvm-devel/files/patch-tools_clang_lib_Sema_SemaChecking.cpp b/devel/llvm-devel/files/patch-tools_clang_lib_Sema_SemaChecking.cpp new file mode 100644 index 000000000000..3a43558971dc --- /dev/null +++ b/devel/llvm-devel/files/patch-tools_clang_lib_Sema_SemaChecking.cpp @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- tools/clang/lib/Sema/SemaChecking.cpp.orig ++++ tools/clang/lib/Sema/SemaChecking.cpp +@@ -643,6 +643,7 @@ + case 'G': + case 'a': + case 'A': ++ case 'b': + case 'c': + case 'C': + case 'S':