app-admin/collectd: update patch to unbundle libltdl
authorJason Zaman <perfinion@gentoo.org>
Mon, 4 Jan 2016 10:03:02 +0000 (14:03 +0400)
committerJason Zaman <perfinion@gentoo.org>
Mon, 4 Jan 2016 10:04:35 +0000 (14:04 +0400)
Package-Manager: portage-2.2.26

app-admin/collectd/collectd-5.5.0.ebuild
app-admin/collectd/files/collectd-5.5.0-lt.patch [new file with mode: 0644]

index 012278f2d738fb69e2530f07aca4d7f06639d832..64af3dd795ef7d7825257d34e0f26566e2b04f8d 100644 (file)
@@ -126,8 +126,9 @@ REQUIRED_USE="
        collectd_plugins_python?                ( ${PYTHON_REQUIRED_USE} )"
 
 PATCHES=(
-       "${FILESDIR}/${PN}-5.4.1"-{libocci,lt}.patch
-       "${FILESDIR}/${PN}-4.10.3"-werror.patch
+       "${FILESDIR}/${PN}-5.4.1-libocci.patch"
+       "${FILESDIR}/${PN}-5.5.0-lt.patch"
+       "${FILESDIR}/${PN}-4.10.3-werror.patch"
 )
 
 # @FUNCTION: collectd_plugin_kernel_linux
@@ -220,7 +221,7 @@ pkg_setup() {
 }
 
 src_prepare() {
-       default
+       epatch ${PATCHES[@]}
        epatch_user
 
        # There's some strange prefix handling in the default config file, resulting in
diff --git a/app-admin/collectd/files/collectd-5.5.0-lt.patch b/app-admin/collectd/files/collectd-5.5.0-lt.patch
new file mode 100644 (file)
index 0000000..b14736b
--- /dev/null
@@ -0,0 +1,35 @@
+diff --git Makefile.am Makefile.am
+index 5267123..a7e0d0c 100644
+--- Makefile.am
++++ Makefile.am
+@@ -1,6 +1,4 @@
+-ACLOCAL_AMFLAGS = -I libltdl/m4
+-
+-SUBDIRS = libltdl src bindings .
++SUBDIRS = src bindings .
+
+ INCLUDES = $(LTDLINCL)
+
+--- configure.ac.old   2016-01-04 13:55:39.286846436 +0400
++++ configure.ac       2016-01-04 13:56:07.905362298 +0400
+@@ -2,12 +2,10 @@
+ AC_INIT([collectd],[m4_esyscmd(./version-gen.sh)])
+ AC_CONFIG_SRCDIR(src/)
+ AC_CONFIG_HEADERS(src/config.h)
+-AC_CONFIG_AUX_DIR([libltdl/config])
+ 
+ m4_ifdef([LT_PACKAGE_VERSION],
+       # libtool >= 2.2
+       [
+-       LT_CONFIG_LTDL_DIR([libltdl])
+        LT_INIT([dlopen])
+        LTDL_INIT([convenience])
+        AC_DEFINE(LIBTOOL_VERSION, 2, [Define to used libtool version.])
+@@ -19,7 +17,6 @@
+        AC_SUBST(LTDLINCL)
+        AC_SUBST(LIBLTDL)
+        AC_LIBTOOL_DLOPEN
+-       AC_CONFIG_SUBDIRS(libltdl)
+        AC_DEFINE(LIBTOOL_VERSION, 1, [Define to used libtool version.])
+       ]
+ )