Hello, Trying to apply a patch but it fails with [1]:
Package link: https://github.com/Super-Visions/cacti-plugin-autom8thold/releases
Is spec file missing something ? How can be fixed ? Thanks Glenn
using spec file-> https://build.opensuse.org/package/view_file/home:doiggl/cacti-plugin-autom8...
which has in it:
. Patch0: reportit_v075a.patch . %patch0 -p1 .
[1] Buildlog shows:
[ 45s] + cd autom8 [ 45s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . [ 45s] + echo 'Patch #0 (reportit_v075a.patch):' [ 45s] Patch #0 (reportit_v075a.patch): [ 45s] + /usr/bin/cat /home/abuild/rpmbuild/SOURCES/reportit_v075a.patch [ 45s] + /usr/bin/patch -p1 --fuzz=0 [ 45s] can't find file to patch at input line 4 [ 45s] Perhaps you used the wrong -p or --strip option? [ 45s] The text leading up to this was: [ 45s] -------------------------- [ 45s] |diff -ru v075a/runtime.php custom/runtime.php [ 45s] |--- v075a/runtime.php 2011-12-23 07:33:02.000000000 +0100 [ 45s] |+++ custom/runtime.php 2013-07-12 10:55:54.000000000 +0200 [ 45s] -------------------------- [ 45s] File to patch: [ 45s] Skip this patch? [y] [ 45s] Skipping patch. [ 45s] 4 out of 4 hunks ignored [ 45s] error: Bad exit status from /var/tmp/rpm-tmp.OYi7Dp (%prep)
# First few lines of patch: [reportit_v075a.patch] diff -ru v075a/runtime.php custom/runtime.php --- v075a/runtime.php 2011-12-23 07:33:02.000000000 +0100 +++ custom/runtime.php 2013-07-12 10:55:54.000000000 +0200 @@ -320,6 +320,7 @@
//----- auto clean-up RRDlist ----- autocleanup($report_id); + api_plugin_hook_function('reportit_autocleanup', $report_settings);
patchfile -> https://build.opensuse.org/package/view_file/home:doiggl/cacti-plugin-autom8... full build log -> https://build.opensuse.org/package/live_build_log/home:doiggl/cacti-plugin-a...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 26.02.2015 doiggl@velocitynet.com.au wrote:
How can be fixed ?
[ 45s] can't find file to patch at input line 4
Regards, Johannes - -- Love ist like Pi: Natural, irrational and very important. (unknown)
On Thu, Feb 26, 2015 at 11:55:43PM +1100, doiggl@velocitynet.com.au wrote:
Hello, Trying to apply a patch but it fails with [1]:
Package link: https://github.com/Super-Visions/cacti-plugin-autom8thold/releases
Is spec file missing something ? How can be fixed ? Thanks Glenn
using spec file-> https://build.opensuse.org/package/view_file/home:doiggl/cacti-plugin-autom8...
which has in it:
The patch patches runtime.php which is not in this autom8 tarball at all.
The patch seems for a quite different version of this plugin.
Ciao, Marcus