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.
patches failure
Moderators: Developers, Moderators
Solaris 10 cacti patch installation
To patch cacti on Solaris 10, you must install GNU Patch. This package is part of Solaris 10 and is named SUNWgpch.
Then, you apply patches using gpatch instead of patch and voila !
-Pete
Code: Select all
# pkgadd -d . SUNWgpch
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
Who is online
Users browsing this forum: No registered users and 1 guest