Skip to content

Commit

Permalink
app-admin/collectd: update patch to unbundle libltdl
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
perfinion committed Jan 4, 2016
1 parent 994fd29 commit 255bbef
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app-admin/collectd/collectd-5.5.0.ebuild
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
35 changes: 35 additions & 0 deletions app-admin/collectd/files/collectd-5.5.0-lt.patch
@@ -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.])
]
)

0 comments on commit 255bbef

Please sign in to comment.