diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
commit | b24bd25253fe093f722ab576d29fdc41d04cb1ee (patch) | |
tree | 0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /app-antivirus/clamav/files | |
parent | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff) |
gentoo resync : 02.08.2019
Diffstat (limited to 'app-antivirus/clamav/files')
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.101.2-libxml2_pkgconfig.patch | 78 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.101.2-tinfo.patch | 31 |
2 files changed, 109 insertions, 0 deletions
diff --git a/app-antivirus/clamav/files/clamav-0.101.2-libxml2_pkgconfig.patch b/app-antivirus/clamav/files/clamav-0.101.2-libxml2_pkgconfig.patch new file mode 100644 index 000000000000..e1f5bb9b338a --- /dev/null +++ b/app-antivirus/clamav/files/clamav-0.101.2-libxml2_pkgconfig.patch @@ -0,0 +1,78 @@ +https://bugs.gentoo.org/661328 + +--- clamav-0.101.2/m4/reorganization/libs/xml.m4 ++++ clamav-0.101.2/m4/reorganization/libs/xml.m4 +@@ -4,55 +4,19 @@ + [AS_HELP_STRING([--disable-xml], [do not include DMG and XAR support])], + want_xml=$enableval, want_xml="auto") + +-XML_HOME="" +-if test "X$want_xml" != "Xno"; then +- AC_MSG_CHECKING([for libxml2 installation]) +- AC_ARG_WITH([xml], +- AS_HELP_STRING([--with-xml@<:@=DIR@:>@], [path to directory containing libxml2 library +- @<:@default=/usr/local or /usr if not found in /usr/local@:>@]), +- [with_xml_val=$withval] +- ) +-fi +- +-AS_IF([test "x$with_xml_val" = "xno"], [XML_HOME=""], +- [test "x$with_xml_val" = "xyes"], [XML_HOME="/usr/local"], +- [XML_HOME="$with_xml_val"]) +- +-AS_IF([test "x$XML_HOME" != "x"], [ +- AS_IF([test ! -x "$XML_HOME/bin/xml2-config"], [XML_HOME=""]) +- ]) +- +-AS_IF([test "x$XML_HOME" = "x" -a "x$with_xml_val" = "xyes"], [ +- AS_IF([test -x "/usr/bin/xml2-config"], [XML_HOME="/usr"]) +- ]) +- +-if test "x$XML_HOME" != "x"; then +- AC_MSG_RESULT([$XML_HOME]) +-else +- AC_MSG_RESULT([not found]) +-fi +- +-found_xml="no" +-XMLCONF_VERSION="" +-XML_CPPFLAGS="" +-XML_LIBS="" +-if test "x$XML_HOME" != "x"; then +- AC_MSG_CHECKING([xml2-config version]) +- XMLCONF_VERSION="`$XML_HOME/bin/xml2-config --version`" +- if test "x%XMLCONF_VERSION" != "x"; then +- AC_MSG_RESULT([$XMLCONF_VERSION]) +- found_xml="yes" +- XML_CPPFLAGS="`$XML_HOME/bin/xml2-config --cflags`" +- XML_LIBS="`$XML_HOME/bin/xml2-config --libs`" +- AS_ECHO("$XML_CPPFLAGS") +- AS_ECHO("$XML_LIBS") +- else +- AC_MSG_ERROR([xml2-config failed]) +- fi +-fi ++PKG_CHECK_MODULES([XML], [libxml-2.0], ++ [found_xml=yes], ++ [ ++ found_xml=no ++ AS_IF([test "x$want_xml" = xyes], ++ [AC_MSG_ERROR([--enable-xml set but cannot find libxml2])] ++ ) ++ ] ++) + + working_xml="no" + if test "X$found_xml" != "Xno"; then ++ XML_HOME=$(${PKG_CONFIG} --variable prefix libxml-2.0) + AC_MSG_CHECKING([for xmlreader.h in $XML_HOME]) + + if test ! -f "$XML_HOME/include/libxml2/libxml/xmlreader.h"; then +@@ -61,6 +25,7 @@ + AC_MSG_RESULT([found]) + save_LIBS="$LIBS" + save_CPPFLAGS="$CPPFLAGS" ++ XML_CPPFLAGS="$XML_CFLAGS" + CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $XML_LIBS" diff --git a/app-antivirus/clamav/files/clamav-0.101.2-tinfo.patch b/app-antivirus/clamav/files/clamav-0.101.2-tinfo.patch new file mode 100644 index 000000000000..66130be41882 --- /dev/null +++ b/app-antivirus/clamav/files/clamav-0.101.2-tinfo.patch @@ -0,0 +1,31 @@ +https://bugs.gentoo.org/670729 + +--- a/m4/reorganization/clamdtop.m4 ++++ b/m4/reorganization/clamdtop.m4 +@@ -4,12 +4,26 @@ + + if test "$enable_clamdtop" != "no"; then + ++PKG_CHECK_MODULES([CURSES], [ncursesw], ++ [CURSES_INCLUDE="<ncurses.h>"; ++ HAVE_LIBNCURSES=yes], ++ HAVE_LIBNCURSES=no]) ++ ++if test "X$HAVE_LIBNCURSES" != "Xyes"; then ++PKG_CHECK_MODULES([CURSES], [ncurses], ++ [CURSES_INCLUDE="<ncurses.h>"; ++ HAVE_LIBNCURSES=yes], ++ HAVE_LIBNCURSES=no]) ++fi ++ ++if test "X$HAVE_LIBNCURSES" != "Xyes"; then + AC_LIB_FIND([ncurses], [ncurses/ncurses.h], + AC_LANG_PROGRAM([#include <ncurses/ncurses.h>], + [initscr(); KEY_RESIZE;]), + [CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES"; + CURSES_INCLUDE="<ncurses/ncurses.h>"], + []) ++fi + + if test "X$HAVE_LIBNCURSES" != "Xyes"; then + HAVE_LIBNCURSES= |