Mailinglist Archive: opensuse-packaging (102 mails)

< Previous Next >
[opensuse-packaging] Trying to apply a patch but it fails - reportit_v075a.patch .
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/cacti-plugin-autom8.spec?expand=1

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/reportit_v075a.patch?expand=1
full build log ->
https://build.opensuse.org/package/live_build_log/home:doiggl/cacti-plugin-autom8/openSUSE_13.1/x86_64
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation