Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music
All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => command , shell script ,tool , crontab => Topic started by: golfreeze on ตุลาคม 11, 2013, 02:43:46 pm
-
ปกติถ้ามีเรื่องการแก้ไข ไฟล์ ด้วยการ patch เพื่อแก้ไข bug ของ application จะมีขั้นตอนดังนี้
################ file patch ##################
diff --git a/libclamav/7z/Types.h b/libclamav/7z/Types.h
index 2a7a693..bec00e2 100644
--- a/libclamav/7z/Types.h
+++ b/libclamav/7z/Types.h
@@ -10,6 +10,8 @@
#include <windows.h>
#endif
+#include <zconf.h>
+
#ifndef EXTERN_C_BEGIN
#ifdef __cplusplus
#define EXTERN_C_BEGIN extern "C" {
@@ -55,7 +57,9 @@ typedef int WRes;
#define RINOK(x) { int __result__ = (x); if (__result__ != 0) return __result__; }
#endif
+/* aCaB -- use Byte defined in zconf.h
typedef unsigned char Byte;
+*/
typedef short Int16;
typedef unsigned short UInt16;
################ file patch ##################
copy patch to file
> patch.txt
#cd /path/to/clamav-0.98
#make clean distclean
#patch -p1 < /path/to/downloaded/patch.txt
#./configure
#make; make install
-
http://www.gossamer-threads.com/lists/clamav/users/59317
-
freshclam -v
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build clamav d