patches failure

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
cryptmod
Posts: 6
Joined: Thu Feb 11, 2010 5:52 am

patches failure

Post by cryptmod »

I am on Solaris 10 (Sparc) every patch I have tried to apply to cacti failed, so I installed the GNU patch v2.6 instead. I still get errors:

Applying cacti-plugin-0.8.7e-PA-v2.5.diff is requesting for file to patch (see below) as you can see I am within the cacti dir as documented

patch -p1 -N < cli_add_graph.patch
Looks like a unified context diff.
Ignoring previously applied (or reversed) patch.
Hunk #1 ignored at line 569.
1 out of 1 hunks ignored: saving rejects to cli/add_graphs.php.rej
==

patch -p1 -N < snmp_invalid_response.patch
Looks like a unified context diff.
Hunk #1 failed at line 174.
Hunk #2 failed at line 27.
2 out of 2 hunks failed: saving rejects to include/global_arrays.php.rej
done

==
/usr/local/apache2/htdocs/cacti# patch -p1 -N < template_duplication.patch
Looks like a unified context diff.
File to patch: include/global.php
Hunk #1 failed at line 0.
1 out of 1 hunks failed: saving rejects to include/global.php.rej
The next patch looks like a unified context diff.
Hunk #1 failed at line 90.
1 out of 1 hunks failed: saving rejects to include/global.php.rej
The next patch looks like a unified context diff.
Hunk #1 failed at line 811.
Hunk #2 failed at line 819.
2 out of 2 hunks failed: saving rejects to include/global.php.rej
The next patch looks like a unified context diff.
Hunk #1 failed at line 36.
Hunk #2 failed at line 115.
Hunk #3 failed at line 914.
3 out of 3 hunks failed: saving rejects to include/global.php.rej
The next patch looks like a unified context diff.
Hunk #1 failed at line 346.
Hunk #2 failed at line 436.
2 out of 2 hunks failed: saving rejects to include/global.php.rej
done
===

/usr/local/apache2/htdocs/cacti# patch -p1 < cacti-plugin-0.8.7e-PA-v2.5.diff
Looks like a unified context diff.
File to patch:

?????

Any ideas.
dieselboy
Cacti User
Posts: 135
Joined: Wed May 27, 2009 5:10 pm

Post by dieselboy »

I'm not very familiar with cacti or linux.. I tried patches but they just didnt seem to work for me. Instead I used the new file and copied it to overwrite the old, and modified the file if necessary. I found this a lot easier.
User avatar
pierrem
Posts: 2
Joined: Tue Oct 13, 2009 3:39 pm

Solaris 10 cacti patch installation

Post by pierrem »

To patch cacti on Solaris 10, you must install GNU Patch. This package is part of Solaris 10 and is named SUNWgpch.

Code: Select all

# pkgadd -d . SUNWgpch
Then, you apply patches using gpatch instead of patch and voila !

Code: Select all

# cd $cacti_dir
# gpatch -p1 -N < cli_add_graph.patch
# gpatch -p1 -N < cross_site_fix.patch
# gpatch -p1 -N < fix_icmp_on_windows_iis_servers.patch
# gpatch -p1 -N < snmp_invalid_response.patch
# gpatch -p1 -N < sql_injection_template_export.patch
# gpatch -p1 -N < template_duplication.patch
-Pete
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests