diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-04-18 15:21:06 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-04-18 15:21:55 +0200 |
commit | 44f6b2b9fe4d37845cc918cbec4949d6248ec5df (patch) | |
tree | b3283a9f939149f6140ce93a65b299b9613b0026 /sys-block/nbd | |
parent | dev-perl/Class-Load: arm stable wrt bug #652538 (diff) | |
download | gentoo-44f6b2b9fe4d37845cc918cbec4949d6248ec5df.tar.gz gentoo-44f6b2b9fe4d37845cc918cbec4949d6248ec5df.tar.bz2 gentoo-44f6b2b9fe4d37845cc918cbec4949d6248ec5df.zip |
sys-block/nbd: Removed automagic patch which was added to upstream.
Package-Manager: Portage-2.3.30, Repoman-2.3.9
Diffstat (limited to 'sys-block/nbd')
-rw-r--r-- | sys-block/nbd/files/nbd-3.17-automagic.patch | 84 | ||||
-rw-r--r-- | sys-block/nbd/nbd-9999.ebuild | 4 |
2 files changed, 0 insertions, 88 deletions
diff --git a/sys-block/nbd/files/nbd-3.17-automagic.patch b/sys-block/nbd/files/nbd-3.17-automagic.patch deleted file mode 100644 index 4ece53596da4..000000000000 --- a/sys-block/nbd/files/nbd-3.17-automagic.patch +++ /dev/null @@ -1,84 +0,0 @@ -From 55c225b53c24b0ae93f49d5f004291da8c265870 Mon Sep 17 00:00:00 2001 -From: Lars Wendler <polynomial-c@gentoo.org> -Date: Mon, 9 Apr 2018 11:26:06 +0200 -Subject: [PATCH] Don't make gnutls and libnl automagic - -Introduce --without-gnutls and --without-libnl configure options so that -users can disable gnutls/libnl even if the packages are available on the -system. The default is unchanged from before this patch. If no ---with(out)-* option has been given on the command line, the macro looks -for presence and uses the packages if found. ---- - configure.ac | 47 ++++++++++++++++++++++++++++++++++++++--------- - 1 file changed, 38 insertions(+), 9 deletions(-) - -diff --git a/configure.ac b/configure.ac -index cdb4af3..4b76007 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -212,10 +212,25 @@ dnl ;; - dnl esac - dnl fi - --PKG_CHECK_MODULES(GnuTLS, [gnutls >= 2.12.0],[HAVE_GNUTLS=1],[HAVE_GNUTLS=0]) --if test x$HAVE_GNUTLS = x1; then -- AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if you have a GnuTLS version of 2.12 or above]) -+AC_ARG_WITH([gnutls], -+ [AS_HELP_STRING([--without-gnutls], -+ [do not use gnutls])], -+ [], -+ [with_gnutls=check] -+) -+if test "x$with_gnutls" != "xno"; then -+ PKG_CHECK_MODULES(GnuTLS, [gnutls >= 2.12.0], -+ [HAVE_GNUTLS=1 -+ AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if you have a GnuTLS version of 2.12 or above])], -+ [if test "x$with_gnutls" = "xyes"; then -+ AC_MSG_ERROR([--with-gnutls given but cannot find gnutls]) -+ else -+ HAVE_GNUTLS=0 -+ AC_DEFINE(HAVE_GNUTLS, 0) -+ fi] -+ ) - else -+ HAVE_GNUTLS=0 - AC_DEFINE(HAVE_GNUTLS, 0) - fi - AM_CONDITIONAL([GNUTLS], [test "x$HAVE_GNUTLS" = "x1"]) -@@ -294,13 +309,27 @@ AC_PREPROC_IFELSE( - [AC_MSG_RESULT([yes]); NEED_BSD_SOURCE=1]) - AC_DEFINE([NEED_BSD_SOURCE], $NEED_BSD_SOURCE, [Define to 1 if _BSD_SOURCE needs to be defined before certain inclusions]) - --PKG_CHECK_MODULES(LIBNL3, libnl-genl-3.0 >= 3.1, [have_libnl3=yes], [have_libnl3=no]) --if test "${have_libnl3}" = "yes" --then -- AC_DEFINE(HAVE_NETLINK, 1, [Define to 1 if we have netlink support]) -- CFLAGS+=" $LIBNL3_CFLAGS" -- LIBS+=" $LIBNL3_LIBS" -+AC_ARG_WITH([libnl], -+ [AS_HELP_STRING([--without-libnl], -+ [do not use libnl])], -+ [], -+ [with_libnl=check] -+) -+if test "x$with_libnl" != "xno"; then -+ PKG_CHECK_MODULES(LIBNL3, libnl-genl-3.0 >= 3.1, -+ [HAVE_NETLINK=1 -+ AC_DEFINE(HAVE_NETLINK, 1, [Define to 1 if we have netlink support]) -+ CFLAGS+=" $LIBNL3_CFLAGS" -+ LIBS+=" $LIBNL3_LIBS"], -+ [if test "x$with_libnl" = "xyes"; then -+ AC_MSG_ERROR([--with-libnl given but cannot find libnl]) -+ else -+ HAVE_NETLINK=0 -+ AC_DEFINE(HAVE_NETLINK, 0) -+ fi] -+ ) - else -+ HAVE_NETLINK=0 - AC_DEFINE(HAVE_NETLINK, 0, [Define to 1 if we have netlink support]) - fi - --- -2.17.0 - diff --git a/sys-block/nbd/nbd-9999.ebuild b/sys-block/nbd/nbd-9999.ebuild index 0eeb9622e50d..c02131c2e628 100644 --- a/sys-block/nbd/nbd-9999.ebuild +++ b/sys-block/nbd/nbd-9999.ebuild @@ -33,10 +33,6 @@ if [[ "${PV}" = 9999 ]] ; then " fi -PATCHES=( - "${FILESDIR}/${PN}-3.17-automagic.patch" -) - src_prepare() { default if [[ "${PV}" = 9999 ]] ; then |