[oe-commits] Roman I Khimov : clamav: introduce version 0.96.1

git version control git at git.openembedded.org
Thu Jun 10 18:58:24 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 674f92812e50bfb43c30dbac84dc5416f4790557
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=674f92812e50bfb43c30dbac84dc5416f4790557

Author: Roman I Khimov <khimov at altell.ru>
Date:   Fri May 21 16:02:05 2010 +0400

clamav: introduce version 0.96.1

This one has llvm built-in and since llvm itself is handled natively
with cmake autoreconf goes mad about missing configure.ac or .in. Thus
this oe_runconf hook. I hope this will be handled by upstream sooner
or later.

Signed-off-by: Roman I Khimov <khimov at altell.ru>

---

 .../clamav-0.96.1/fix-llvm-cross-configure.patch   |   13 +++++++++++++
 recipes/clamav/clamav_0.96.1.bb                    |   20 ++++++++++++++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/recipes/clamav/clamav-0.96.1/fix-llvm-cross-configure.patch b/recipes/clamav/clamav-0.96.1/fix-llvm-cross-configure.patch
new file mode 100644
index 0000000..17cfb2b
--- /dev/null
+++ b/recipes/clamav/clamav-0.96.1/fix-llvm-cross-configure.patch
@@ -0,0 +1,13 @@
+Index: clamav-0.96.1/libclamav/c++/llvm/configure
+===================================================================
+--- clamav-0.96.1.orig/libclamav/c++/llvm/configure	2010-05-21 15:09:40.000000000 +0400
++++ clamav-0.96.1/libclamav/c++/llvm/configure	2010-05-21 15:11:09.000000000 +0400
+@@ -4502,7 +4502,7 @@
+      fi
+   fi
+   test -z "$BUILD_CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
+-  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
++  ac_build_link='${BUILD_CC-cc} -o conftest $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+   rm -f conftest*
+   echo 'int main () { return 0; }' > conftest.$ac_ext
+   ac_cv_build_exeext=
diff --git a/recipes/clamav/clamav_0.96.1.bb b/recipes/clamav/clamav_0.96.1.bb
new file mode 100644
index 0000000..bf1aa1c
--- /dev/null
+++ b/recipes/clamav/clamav_0.96.1.bb
@@ -0,0 +1,20 @@
+require clamav.inc
+
+SRC_URI += " file://fix-llvm-cross-configure.patch;patch=1"
+
+SRC_URI[clamav-0.96.1.md5sum] = "38e7870db6e9ad0e569518499a6f3651"
+SRC_URI[clamav-0.96.1.sha256sum] = "413dd25907059068da2a367d2b330fbc37d5d2764eb3b047214ce754a9ca74ea"
+
+PR = "${INC_PR}.0"
+
+EXTRA_OECONF_append_libc-uclibc = " --disable-llvm"
+
+# Autoreconf breaks on llvm with
+# gnu-configize: `configure.ac' or `configure.in' is required
+#
+# Works good enough without autoreconf
+do_configure() {
+	oe_runconf
+}
+
+FILES_${PN}_append = " ${bindir}/clambc"
\ No newline at end of file





More information about the Openembedded-commits mailing list