diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-10-25 11:29:36 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-10-25 11:29:36 +0000 |
commit | 4c0765af98c26648f24d148c1dcef2a792aaec45 (patch) | |
tree | 87192ea7f4d035da8144be7195e8c46f4050feb1 /app-i18n/zhcon/files | |
parent | - (diff) | |
download | gentoo-2-4c0765af98c26648f24d148c1dcef2a792aaec45.tar.gz gentoo-2-4c0765af98c26648f24d148c1dcef2a792aaec45.tar.bz2 gentoo-2-4c0765af98c26648f24d148c1dcef2a792aaec45.zip |
Add patches by Zhang Le for fixing bug #240024 (fix curses/gpm search, fix amd64, fix building with new linux-headers).
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64)
Diffstat (limited to 'app-i18n/zhcon/files')
-rw-r--r-- | app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch | 76 | ||||
-rw-r--r-- | app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch | 18 | ||||
-rw-r--r-- | app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch | 77 | ||||
-rw-r--r-- | app-i18n/zhcon/files/zhcon-0.2.6-curses.patch | 22 |
4 files changed, 117 insertions, 76 deletions
diff --git a/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch b/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch index 182c80b8dd1d..b0485b97e9e7 100644 --- a/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch +++ b/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch @@ -13,24 +13,6 @@ diff -Nur zhcon-0.2.5.orig/doc/Makefile.am zhcon-0.2.5/doc/Makefile.am uninstall-local: - -rm -f $(mandir)/man1/zhcon.1 + -rm -f $(DESTDIR)$(mandir)/man1/zhcon.1 -diff -Nur zhcon-0.2.5.orig/doc/Makefile.in zhcon-0.2.5/doc/Makefile.in ---- zhcon-0.2.5.orig/doc/Makefile.in 2006-06-21 18:02:23.000000000 +0800 -+++ zhcon-0.2.5/doc/Makefile.in 2006-06-21 18:13:30.000000000 +0800 -@@ -326,11 +326,11 @@ - - - install-data-local: -- $(mkinstalldirs) $(mandir)/man1/ -- $(INSTALL_DATA) $(top_builddir)/doc/zhcon.1 $(mandir)/man1/zhcon.1 -+ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1/ -+ $(INSTALL_DATA) $(top_builddir)/doc/zhcon.1 $(DESTDIR)$(mandir)/man1/zhcon.1 - - uninstall-local: -- -rm -f $(mandir)/man1/zhcon.1 -+ -rm -f $(DESTDIR)$(mandir)/man1/zhcon.1 - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: diff -Nur zhcon-0.2.5.orig/font/Makefile.am zhcon-0.2.5/font/Makefile.am --- zhcon-0.2.5.orig/font/Makefile.am 2006-06-21 18:02:23.000000000 +0800 +++ zhcon-0.2.5/font/Makefile.am 2006-06-21 18:14:30.000000000 +0800 @@ -46,24 +28,6 @@ diff -Nur zhcon-0.2.5.orig/font/Makefile.am zhcon-0.2.5/font/Makefile.am uninstall-local: - -rm -f $(libdir)/zhcon/font/*.bpsf + -rm -f $(DESTDIR)$(libdir)/zhcon/font/*.bpsf -diff -Nur zhcon-0.2.5.orig/font/Makefile.in zhcon-0.2.5/font/Makefile.in ---- zhcon-0.2.5.orig/font/Makefile.in 2006-06-21 18:02:23.000000000 +0800 -+++ zhcon-0.2.5/font/Makefile.in 2006-06-21 18:15:02.000000000 +0800 -@@ -321,11 +321,11 @@ - - - install-data-local: -- $(mkinstalldirs) $(libdir)/zhcon/font/ -- $(INSTALL_DATA) $(srcdir)/*.bpsf $(libdir)/zhcon/font/ -+ $(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/font/ -+ $(INSTALL_DATA) $(srcdir)/*.bpsf $(DESTDIR)$(libdir)/zhcon/font/ - - uninstall-local: -- -rm -f $(libdir)/zhcon/font/*.bpsf -+ -rm -f $(DESTDIR)$(libdir)/zhcon/font/*.bpsf - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: diff -Nur zhcon-0.2.5.orig/input/Makefile.am zhcon-0.2.5/input/Makefile.am --- zhcon-0.2.5.orig/input/Makefile.am 2006-06-21 18:02:23.000000000 +0800 +++ zhcon-0.2.5/input/Makefile.am 2006-06-21 18:15:35.000000000 +0800 @@ -79,24 +43,6 @@ diff -Nur zhcon-0.2.5.orig/input/Makefile.am zhcon-0.2.5/input/Makefile.am uninstall-local: - -rm -f $(libdir)/zhcon/input/*.mb + -rm -f $(DESTDIR)$(libdir)/zhcon/input/*.mb -diff -Nur zhcon-0.2.5.orig/input/Makefile.in zhcon-0.2.5/input/Makefile.in ---- zhcon-0.2.5.orig/input/Makefile.in 2006-06-21 18:02:23.000000000 +0800 -+++ zhcon-0.2.5/input/Makefile.in 2006-06-21 18:16:02.000000000 +0800 -@@ -321,11 +321,11 @@ - - - install-data-local: -- $(mkinstalldirs) $(libdir)/zhcon/input/ -- $(INSTALL_DATA) $(srcdir)/*.mb $(libdir)/zhcon/input/ -+ $(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/input/ -+ $(INSTALL_DATA) $(srcdir)/*.mb $(DESTDIR)$(libdir)/zhcon/input/ - - uninstall-local: -- -rm -f $(libdir)/zhcon/input/*.mb -+ -rm -f $(DESTDIR)$(libdir)/zhcon/input/*.mb - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: diff -Nur zhcon-0.2.5.orig/src/Makefile.am zhcon-0.2.5/src/Makefile.am --- zhcon-0.2.5.orig/src/Makefile.am 2006-06-21 18:02:23.000000000 +0800 +++ zhcon-0.2.5/src/Makefile.am 2006-06-22 08:35:42.000000000 +0800 @@ -119,25 +65,3 @@ diff -Nur zhcon-0.2.5.orig/src/Makefile.am zhcon-0.2.5/src/Makefile.am # set the include path found by configure INCLUDES= $(all_includes) -diff -Nur zhcon-0.2.5.orig/src/Makefile.in zhcon-0.2.5/src/Makefile.in ---- zhcon-0.2.5.orig/src/Makefile.in 2006-06-21 18:02:23.000000000 +0800 -+++ zhcon-0.2.5/src/Makefile.in 2006-06-22 08:36:05.000000000 +0800 -@@ -602,14 +602,14 @@ - - - install-exec-local: -- chmod 4755 $(bindir)/zhcon -+ chmod 4755 $(DESTDIR)$(bindir)/zhcon - - install-data-local: -- $(mkinstalldirs) $(prefix)/etc -- $(INSTALL_DATA) $(srcdir)/zhcon.conf $(prefix)/etc/zhcon.conf -+ $(mkinstalldirs) $(DESTDIR)/etc -+ $(INSTALL_DATA) $(srcdir)/zhcon.conf $(DESTDIR)/etc/zhcon.conf - - uninstall-local: -- -rm -f $(prefix)/etc/zhcon.conf -+ -rm -f $(DESTDIR)/etc/zhcon.conf - - # the library search path. - #zhcon_LDFLAGS = $(all_libraries) -L/usr/lib/unicon diff --git a/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch b/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch new file mode 100644 index 000000000000..67d5b961a070 --- /dev/null +++ b/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch @@ -0,0 +1,18 @@ +diff --git a/src/display/lrmi.c b/src/display/lrmi.c +index 85c6fe6..5c74260 100644 +--- a/src/display/lrmi.c ++++ b/src/display/lrmi.c +@@ -33,6 +33,13 @@ This software has NO WARRANTY. Use it at your own risk. + + #include "lrmi.h" + ++#if defined(__linux__) && !defined(TF_MASK) ++ #define TF_MASK X86_EFLAGS_TF ++ #define IF_MASK X86_EFLAGS_IF ++ #define VIF_MASK X86_EFLAGS_VIF ++ #define IOPL_MASK X86_EFLAGS_IOPL ++#endif ++ + #define REAL_MEM_BASE ((void *)0x10000) + #define REAL_MEM_SIZE 0x10000 + #define REAL_MEM_BLOCKS 0x100 diff --git a/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch b/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch new file mode 100644 index 000000000000..58da5e99766a --- /dev/null +++ b/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch @@ -0,0 +1,77 @@ +diff --git a/src/winime.cpp b/src/winime.cpp +index 0c52393..85729a3 100644 +--- a/src/winime.cpp ++++ b/src/winime.cpp +@@ -56,10 +56,10 @@ mCandilistBufLen(0) + + memcpy(&mHead, mpBuf, sizeof(mHead)); + int len = strlen(mHead.mCodeSet); +- mpIndex1 = (char **) (mpBuf + sizeof(mHead)); +- mpIndex2 = (char **) (mpBuf + sizeof(mHead) + len * sizeof(char *)); +- mpText = mpBuf + sizeof(mHead) + len * sizeof(char *) + +- len * len * sizeof(char *); ++ mpIndex1 = (int *) (mpBuf + sizeof(mHead)); ++ mpIndex2 = (int *) (mpBuf + sizeof(mHead) + len * sizeof(int)); ++ mpText = mpBuf + sizeof(mHead) + len * sizeof(int) + ++ len * len * sizeof(int); + } + + WinIme::~WinIme() { +@@ -246,32 +246,33 @@ int WinIme::Search(char c) { + // p = *t; + } + else +- p = mpIndex1[Index(c)]; ++ p = (char *)mpIndex1[Index(c)]; + + if (p == (char *) 0xffffffff) + found = false; +- p = (unsigned int) p + mpText; ++ p = (unsigned long) p + mpText; + } //2nd level index + else if (mNum == 1) { + int l = strlen(mHead.mCodeSet); + if (c == mHead.mWildChar) { + char **t; + t = +- find_if(mpIndex2 + Index(mInput[0]) * l, +- mpIndex2 + (Index(mInput[0]) + 1) * l, ++ find_if((char **)(mpIndex2 + Index(mInput[0]) * l), ++ (char **)(mpIndex2 + (Index(mInput[0]) + 1) * l), + bind2nd(not_equal_to < char *>(), + (char *) 0xffffffff)); +- if (t == mpIndex2 + (Index(mInput[0]) + 1) * l) ++ if (t == ((char **)mpIndex2) + (Index(mInput[0]) + 1) * l) + p = (char *) 0xffffffff; + else + p = *t; +- } else +- p = mpIndex2[Index(mInput[0]) * l + Index(c)]; ++ } else { ++ int dd = Index(mInput[0]) * l + Index(c); ++ p = (char *)(mpIndex2[Index(mInput[0]) * l + Index(c)]); ++ } + + if (p == (char *) 0xffffffff) + found = false; +- +- p = (unsigned int) p + mpText; ++ p = (unsigned long) p + mpText; + } else if (mNum < mHead.mMaxCodes) { + p = mpOffset[mNum - 1]; + if (p == (char *) 0xffffffff) +diff --git a/src/winime.h b/src/winime.h +index c2f51ab..816a270 100644 +--- a/src/winime.h ++++ b/src/winime.h +@@ -83,8 +83,8 @@ class WinIme { + char* mpOffset[12]; + int mFd; + char* mpBuf; +- char** mpIndex1; +- char** mpIndex2; ++ int *mpIndex1; ++ int *mpIndex2; + char* mpText; + char* mpCur; //current search position + unsigned int mBufSize; diff --git a/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch b/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch new file mode 100644 index 000000000000..200014e1d717 --- /dev/null +++ b/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch @@ -0,0 +1,22 @@ +diff --git a/configure.in b/configure.in +index 63172e4..6c2afcc 100644 +--- a/configure.in ++++ b/configure.in +@@ -132,7 +132,7 @@ fi + AC_SUBST(ZHCON_LOCALE_DIR) + + AC_CHECK_LIB(util, forkpty) +-AC_CHECK_LIB(curses, main) ++AC_SEARCH_LIBS([tgetent], [cursesw curses ncursesw ncurses], [break;]) + + dnl for freebsd + dnl AC_CHECK_LIB(c, i386_set_ioperm) +@@ -172,7 +172,7 @@ dnl Checks for gpm + dnl----------------------------------------------------------------------- + usegpm="yes" + AC_CHECK_HEADERS(gpm.h,,usegpm="no") +-AC_CHECK_LIB(gpm,main,,usegpm="no") ++AC_CHECK_LIB(gpm,Gpm_Open,,usegpm="no") + + dnl----------------------------------------------------------------------- + dnl Checks for libggi |