[opensuse-packaging] Trying to apply a patch but it fails - reportit_v075a.patch .
![](https://seccdn.libravatar.org/avatar/29b81b0b98e8ef7ad3358a1a78734f79.jpg?s=120&d=mm&r=g)
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... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/995333432565ad6e9ab0505464619fcb.jpg?s=120&d=mm&r=g)
-----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) -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlTvI7sACgkQzi3gQ/xETbKVywCgle5nJTwwNybGHHTzTGr74f0P gokAn2h1XLoXOkQxpdRqtSELRtC8cb33 =OHu8 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/bff0c215e01f23fcee6fe49e65fae458.jpg?s=120&d=mm&r=g)
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 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
doiggl@velocitynet.com.au
-
Johannes Kastl
-
Marcus Meissner