apply a patch which is a diff file

Hi All

I although I know how to keep a unix system up and running I actually don't know how to apply the patch for gzip :(

Its a diff file. Can someone give me the right syntax or point me to the documentation (I looked around at docs.sun.com but didn't find it)

Thanks a lot

LuCa

[313 byte] By [abcde-tje] at [2007-11-26 11:05:29]
# 1

are you refering to this patch:

http://www.gzip.org/gzip-1.2.4b.patch

If you have a compiler installed (such as gcc or cc)

You can apply this patch if you download the entire gzip source from

ftp://wuarchive.wustl.edu/mirrors/gnu/gzip/gzip-1.2.4.tar

then apply the patch using gpatch -p0 < patch file

.. and compile your own' gzip using:

./configure

make

make install

.7/M

mAbrante at 2007-7-7 3:19:39 > top of Java-index,General,Maintenance...
# 2
thanks a lot!I installed the binary, can this be fixed with a patch as well ?If not, than I'm still very happy with your solution!LuCaps I refered to the gzip patch on this site: http://www.sunfreeware.com/indexsparc10.html
abcdetje at 2007-7-7 3:19:39 > top of Java-index,General,Maintenance...
# 3
That's not a patch. That's a complete package that has had the patch applied.(Unless you're looking at something else on the page. The link you gave was to the entire suite of software for Solaris10/SPARC on sunfreeware).-- Darren
Darren_Dunham at 2007-7-7 3:19:39 > top of Java-index,General,Maintenance...
# 4
hmm, you're right, now I see that they actually applied the patch. So the 'diff' file is not a patch ?Anyway, do you know some good docuementation about patching, I feel a little bit stupid knowing nothing about it!Thanks a lotLuCa
abcdetje at 2007-7-7 3:19:39 > top of Java-index,General,Maintenance...
# 5
diff files is a patch for the source, not a binary patch which replace a package.. .7/M.
mAbrante at 2007-7-7 3:19:39 > top of Java-index,General,Maintenance...
# 6
> Anyway, do you know some good docuementation about> patching, I feel a little bit stupid knowing nothing> about it!What kind of documentation? There's the man pages for 'pkgadd' and friends. That's normally all I'm looking at.-- Darren
Darren_Dunham at 2007-7-7 3:19:39 > top of Java-index,General,Maintenance...
# 7
using patches looks very easy know, and I also see some tutorials on how to make them :)Thnx a lotLuCa
abcdetje at 2007-7-7 3:19:40 > top of Java-index,General,Maintenance...