summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2008-05-04 14:35:58 +0000
committerAndrej Kacian <ticho@gentoo.org>2008-05-04 14:35:58 +0000
commit771bc9fbde1711942c5b57fb86ad1c844ab02a9b (patch)
tree1ca91c8db56990bcb340bee7a5140354e9a21438 /app-antivirus
parentUse berlios mirrors:// wrt #218657 (diff)
downloadgentoo-2-771bc9fbde1711942c5b57fb86ad1c844ab02a9b.tar.gz
gentoo-2-771bc9fbde1711942c5b57fb86ad1c844ab02a9b.tar.bz2
gentoo-2-771bc9fbde1711942c5b57fb86ad1c844ab02a9b.zip
Supply lib-ld.m4 file, originally provided by gettext, for non-nls users - autoconf needs it. Bug #218892, thanks to Natanael Copa.
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-antivirus')
-rw-r--r--app-antivirus/clamav/ChangeLog7
-rw-r--r--app-antivirus/clamav/clamav-0.93.ebuild19
-rw-r--r--app-antivirus/clamav/files/lib-ld.m4110
3 files changed, 126 insertions, 10 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog
index 9e865851155d..95a7ad0c8fc0 100644
--- a/app-antivirus/clamav/ChangeLog
+++ b/app-antivirus/clamav/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-antivirus/clamav
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.287 2008/04/21 19:10:58 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.288 2008/05/04 14:35:58 ticho Exp $
+
+ 04 May 2008; Andrej Kacian <ticho@gentoo.org> +files/lib-ld.m4,
+ clamav-0.93.ebuild:
+ Supply lib-ld.m4 file, originally provided by gettext, for non-nls users -
+ autoconf needs it. Bug #218892, thanks to Natanael Copa.
21 Apr 2008; Markus Meier <maekke@gentoo.org> clamav-0.93.ebuild:
amd64 stable, security bug #213762
diff --git a/app-antivirus/clamav/clamav-0.93.ebuild b/app-antivirus/clamav/clamav-0.93.ebuild
index e8b45b8b2148..d68c59c756a9 100644
--- a/app-antivirus/clamav/clamav-0.93.ebuild
+++ b/app-antivirus/clamav/clamav-0.93.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.93.ebuild,v 1.5 2008/04/21 19:10:58 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.93.ebuild,v 1.6 2008/05/04 14:35:58 ticho Exp $
inherit autotools eutils flag-o-matic fixheadtails multilib
@@ -44,6 +44,11 @@ src_unpack() {
cd "${S}"
epatch "${FILESDIR}"/${P}-buildfix.patch
epatch "${FILESDIR}"/${P}-nls.patch
+
+ # If nls flag is disabled, gettext may not be available, but eautoreconf
+ # needs this file (bug #218892).
+ use nls || cp "${FILESDIR}"/lib-ld.m4 m4/
+
AT_M4DIR="m4" eautoreconf
}
@@ -132,13 +137,9 @@ pkg_postinst() {
elog "read /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
echo
fi
- ewarn "WARNING: In 0.92.1, the logic in the scanner limits have been reworked. This"
- ewarn "results in different command line options to clamscan, different config"
- ewarn "options to clamd and, overall, a different behaviour."
- echo
- ewarn "The soname for libclamav has changed in clamav-0.92."
- ewarn "If you have upgraded from that or earlier version, it is recommended to run:"
- ewarn "\trevdep-rebuild --library libclamav.so.2"
- ewarn "This will fix linking errors caused by this change."
+ ewarn "The soname for libclamav has changed in clamav-0.93."
+ ewarn "If you have upgraded from that or earlier version, it is"
+ ewarn "recommended to run revdep-rebuild, in order to fix anything"
+ ewarn "that links against libclamav.so library."
echo
}
diff --git a/app-antivirus/clamav/files/lib-ld.m4 b/app-antivirus/clamav/files/lib-ld.m4
new file mode 100644
index 000000000000..96c4e2c3396c
--- /dev/null
+++ b/app-antivirus/clamav/files/lib-ld.m4
@@ -0,0 +1,110 @@
+# lib-ld.m4 serial 3 (gettext-0.13)
+dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl Subroutines of libtool.m4,
+dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
+dnl with libtool.m4.
+
+dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
+AC_DEFUN([AC_LIB_PROG_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ acl_cv_prog_gnu_ld=yes ;;
+*)
+ acl_cv_prog_gnu_ld=no ;;
+esac])
+with_gnu_ld=$acl_cv_prog_gnu_ld
+])
+
+dnl From libtool-1.4. Sets the variable LD.
+AC_DEFUN([AC_LIB_PROG_LD],
+[AC_ARG_WITH(gnu-ld,
+[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
+test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ AC_MSG_CHECKING([for ld used by GCC])
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [[\\/]* | [A-Za-z]:[\\/]*)]
+ [re_direlt='/[^/][^/]*/\.\./']
+ # Canonicalize the path of ld
+ ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ AC_MSG_CHECKING([for GNU ld])
+else
+ AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(acl_cv_path_LD,
+[if test -z "$LD"; then
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ acl_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some GNU ld's only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break ;;
+ *)
+ test "$with_gnu_ld" != yes && break ;;
+ esac
+ fi
+ done
+ IFS="$ac_save_ifs"
+else
+ acl_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$acl_cv_path_LD"
+if test -n "$LD"; then
+ AC_MSG_RESULT($LD)
+else
+ AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+AC_LIB_PROG_LD_GNU
+])