SHA256
1
0
forked from pool/collectd
collectd/collectd-fix_broken_perl-5.10.patch
Lars Vogdt c5eb679480 Accepting request 493297 from home:benoit_monin:branches:server:monitoring
- update to version 5.7.1
- refresh patches:
  * collectd-fix_broken_perl-5.10.patch
  * collectd-split_README.patch
  * collectd-version.patch
- drop patch collectd-5.5.2-exec-no-output.diff: fixed upstream
- remove plugin write_riemann: not built anymore
- add new plugins chrony, cpusleep, hugepages, notify_nagios
- add lua-devel as BuildRequires and create a sub-package for the lua plugin
- add gpsd-devel as BuildRequires and create a sub-package for the gps plugin

OBS-URL: https://build.opensuse.org/request/show/493297
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/collectd?expand=0&rev=142
2017-05-17 22:05:22 +00:00

17 lines
452 B
Diff

--- src/perl.c.orig
+++ src/perl.c
@@ -2504,7 +2504,12 @@ static int perl_config_loadplugin(pTHX_
log_debug("perl_config: Loading Perl plugin \"%s\"", value);
load_module(PERL_LOADMOD_NOIMPORT, newSVpv(module_name, strlen(module_name)),
- Nullsv);
+#if PERL_VERSION >= 10
+ newSViv(0)
+#else
+ Nullsv
+#endif
+ );
return 0;
} /* static int perl_config_loadplugin (oconfig_item_it *) */