summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-09 12:46:04 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-09 12:46:04 +0000
commitea6f7b2c3241cc40d337dc13223841fd54539eeb (patch)
tree3b64a70bffeece00d06f122c14d8ab56481d1821 /app-i18n/zhcon
parentAdd patch to build with GCC 4.3. Thanks to Steve Warren in bug #222561. (diff)
downloadhistorical-ea6f7b2c3241cc40d337dc13223841fd54539eeb.tar.gz
historical-ea6f7b2c3241cc40d337dc13223841fd54539eeb.tar.bz2
historical-ea6f7b2c3241cc40d337dc13223841fd54539eeb.zip
Add patch to build with GCC 4.3. Thanks to Peter Alfredsen (loki_val) in bug #219769.
Package-Manager: portage-2.1.5.4
Diffstat (limited to 'app-i18n/zhcon')
-rw-r--r--app-i18n/zhcon/ChangeLog7
-rw-r--r--app-i18n/zhcon/Manifest15
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch185
-rw-r--r--app-i18n/zhcon/zhcon-0.2.6.ebuild6
4 files changed, 207 insertions, 6 deletions
diff --git a/app-i18n/zhcon/ChangeLog b/app-i18n/zhcon/ChangeLog
index b59513a2d531..5e1125ded164 100644
--- a/app-i18n/zhcon/ChangeLog
+++ b/app-i18n/zhcon/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-i18n/zhcon
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/zhcon/ChangeLog,v 1.11 2008/02/08 14:45:51 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/zhcon/ChangeLog,v 1.12 2008/06/09 12:46:04 flameeyes Exp $
+
+ 09 Jun 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +files/zhcon-0.2.6+gcc-4.3.patch, zhcon-0.2.6.ebuild:
+ Add patch to build with GCC 4.3. Thanks to Peter Alfredsen (loki_val) in
+ bug #219769.
08 Feb 2008; Robin H. Johnson <robbat2@gentoo.org> metadata.xml:
Fix metadata.
diff --git a/app-i18n/zhcon/Manifest b/app-i18n/zhcon/Manifest
index e84487f538b8..516abc548760 100644
--- a/app-i18n/zhcon/Manifest
+++ b/app-i18n/zhcon/Manifest
@@ -1,8 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX zhcon-0.2.5.make-fix.patch 5527 RMD160 7a0a489bd6bf0278f42db87f45df74f9a8aeae61 SHA1 541104a7efe3f87872a4008b99f99a21b269b5e8 SHA256 5863ac3ddc62c82cb732c94d565d3f03b528082461f1e71f3d96452ce994fb3a
+AUX zhcon-0.2.6+gcc-4.3.patch 5808 RMD160 486be46a85c08ac9b000bfd318b5a5a741dad655 SHA1 a023af19544257790f04470b85a1d0a42f126e70 SHA256 376503635df1d7d420d3979535db8b41ceeaf3c53643d2cf5ca0582bb5ebc068
AUX zhcon-0.2.6.configure.in.patch 392 RMD160 8c221f9afeb13a0138b01744c7317e386c00223b SHA1 2fa7870749a0bc3d96574daf0982b298c4f44d4f SHA256 d2e745898117b9821f955f1b270dc346d50963b00f36bb740e17bb434adf5c25
AUX zhcon-0.2.6.sysconfdir.patch 876 RMD160 9ba739cdeede33d0baf51e8ca6002af34e548925 SHA1 4bb3c6f6141892b92e4fd1ca526c8eee14e60632 SHA256 a3ed1ff674cf65145cee27ead683b6da969d529a566e136b21367bc31f863319
DIST zhcon-0.2.5-to-0.2.6.diff.gz 2881 RMD160 b461e19f79c7a904d79f889106418eefee433d1c SHA1 524e82d1bf362101df777d31d81f2b9c035d5881 SHA256 c9da3f7290f7d74f3ca4f0d78c00c73c0100bcca5eba5d08c629ddc6c7ced9e1
DIST zhcon-0.2.5.tar.gz 5011644 RMD160 d72650f5f08eaedca55006c4cd96e45b1890abc4 SHA1 5e76471e75e8eefa72b29fcc05042d9539140f69 SHA256 4ce4dc1395b6f6a920d44aac069a284bff76df4019ac4164850d263538465d59
-EBUILD zhcon-0.2.6.ebuild 1003 RMD160 b51604c914fad9e717eef2effafc95fe93bd830b SHA1 74b7aa8c9ee7c661b32aae800f4b8bc5bad327be SHA256 5e3c7afdef863bcb10f040ffb08a25e942bf9573bdb7f77317b6bab7a9aa3b3b
-MISC ChangeLog 1960 RMD160 50fad9c439074cc2a4488e6e1cc832d33d4a1828 SHA1 516baa177cbb235504172d8ddf0d2c2db2ab1cfb SHA256 aa6eb6d899047e02af2107d046e99efd8fde77ec03e41d391a7f497a2773386e
+EBUILD zhcon-0.2.6.ebuild 1021 RMD160 c8822dbb56907478ee07d59c4fe23bd5c9ae9994 SHA1 1aa611d2618b10176f3e9f794561284a585c4997 SHA256 0f8d3be72f775c9ea8f94c759ac0ca6b899d5f02ff4939b5285472479f6046fb
+MISC ChangeLog 2162 RMD160 868648f6c60f6bf20b1d127b3c99cbbd2eff23ac SHA1 8686a6b310cfb24a346c2799bc174132fe3e2ff9 SHA256 cfa6de73aca5acea7895d07588109fdc1c2a82c0d0b2b1717f575f692c2002fb
MISC metadata.xml 750 RMD160 beb031eb331d160e5d6447372763cd12f8e9ad18 SHA1 43d5cada96eddcc17fa6f28aec05018881ff1a90 SHA256 2ac7b724d74307141da102e0cfc8e3eb75688340c0360beb05f1a3e8739b85c5
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkhNJhIACgkQAiZjviIA2XjcvgCcDcqDlh5rBbGNLnsXADGhpdLq
+gzMAoOtqew3EEdLE1ZFzyBy0l+ke7jAw
+=CKwL
+-----END PGP SIGNATURE-----
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch b/app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch
new file mode 100644
index 000000000000..beece66b1da8
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch
@@ -0,0 +1,185 @@
+diff -NrU5 zhcon-0.2.6.orig/src/basefont.cpp zhcon-0.2.6/src/basefont.cpp
+--- zhcon-0.2.6.orig/src/basefont.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/basefont.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -27,10 +27,12 @@
+ #include "global.h"
+ #include "debug.h"
+ #include "hzdecoder.h"
+ #include "basefont.h"
+
++#include <cstring>
++
+ BaseFont::BaseFont(string & fn, int w, int h)
+ :mFd(0)
+ ,mpBuf(0)
+ ,mWidth(w)
+ ,mHeight(h) {
+diff -NrU5 zhcon-0.2.6.orig/src/display/fblinear4.cpp zhcon-0.2.6/src/display/fblinear4.cpp
+--- zhcon-0.2.6.orig/src/display/fblinear4.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/display/fblinear4.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -20,10 +20,12 @@
+ #include <assert.h>
+ #include <endian.h>
+ #include "global.h"
+ #include "fblinear4.h"
+
++#include <cstring>
++
+ __u16 FBLinear4::nibbletab_cfb4[] = {
+ #if BYTE_ORDER == LITTLE_ENDIAN
+ 0x0000,0xf000,0x0f00,0xff00,
+ 0x00f0,0xf0f0,0x0ff0,0xfff0,
+ 0x000f,0xf00f,0x0f0f,0xff0f,
+diff -NrU5 zhcon-0.2.6.orig/src/display/fblinear8.cpp zhcon-0.2.6/src/display/fblinear8.cpp
+--- zhcon-0.2.6.orig/src/display/fblinear8.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/display/fblinear8.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -20,10 +20,12 @@
+ #include <assert.h>
+ #include <endian.h>
+ #include "global.h"
+ #include "fblinear8.h"
+
++#include <cstring>
++
+ __u32 FBLinear8::nibbletab_cfb8[] = {
+ #if BYTE_ORDER == LITTLE_ENDIAN
+ 0x00000000,0xff000000,0x00ff0000,0xffff0000,
+ 0x0000ff00,0xff00ff00,0x00ffff00,0xffffff00,
+ 0x000000ff,0xff0000ff,0x00ff00ff,0xffff00ff,
+diff -NrU5 zhcon-0.2.6.orig/src/display/fbvgaplanes.cpp zhcon-0.2.6/src/display/fbvgaplanes.cpp
+--- zhcon-0.2.6.orig/src/display/fbvgaplanes.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/display/fbvgaplanes.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -36,10 +36,12 @@
+ : "a" ((char) value),
+ "d" ((unsigned short) port));
+ }
+ #endif
+
++#include <cstring>
++
+ /* based on kernel
+ * Force strict CPU ordering.
+ * And yes, this is required on UP too when we're talking
+ * to devices.
+ *
+diff -NrU5 zhcon-0.2.6.orig/src/display/vgadev.cpp zhcon-0.2.6/src/display/vgadev.cpp
+--- zhcon-0.2.6.orig/src/display/vgadev.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/display/vgadev.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -35,10 +35,12 @@
+ #include <cassert>
+ #include "debug.h"
+ #include "vgadev.h"
+ #include "lrmi.h"
+
++#include <cstring>
++
+ #define GRAPH_BASE 0xA0000
+ #define GRAPH_ADDR 0x3ce
+ #define GRAPH_DATA 0x3cf
+
+ char *VGADev::mpBuf = NULL;
+diff -NrU5 zhcon-0.2.6.orig/src/graphdev.cpp zhcon-0.2.6/src/graphdev.cpp
+--- zhcon-0.2.6.orig/src/graphdev.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/graphdev.cpp 2008-04-29 23:16:14.000000000 +0200
+@@ -24,20 +24,23 @@
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
+ #include <assert.h>
+ #include <iostream>
++#include <cstdlib>
+ #include "debug.h"
+
+ #include "display/fbdev.h"
+ #include "display/vgadev.h"
+ #if defined(linux) || defined(__FreeBSD__)
+ #ifdef HAVE_GGI_LIB
+ #include "display/libggi.h"
+ #endif
+ #endif
+
++#include <cstring>
++
+ using namespace std;
+ // mmap framebuffer address
+ GraphDev *GraphDev::mpGraphDev = NULL;
+
+ // font
+diff -NrU5 zhcon-0.2.6.orig/src/inputclient.cpp zhcon-0.2.6/src/inputclient.cpp
+--- zhcon-0.2.6.orig/src/inputclient.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/inputclient.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -14,10 +14,12 @@
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
++#include <cstdlib>
++
+ #include "inputclient.h"
+
+ Console* InputClient::mpCon = NULL;
+ InputClient::InputClient()
+ : mVisible(false),
+diff -NrU5 zhcon-0.2.6.orig/src/inputmanager.cpp zhcon-0.2.6/src/inputmanager.cpp
+--- zhcon-0.2.6.orig/src/inputmanager.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/inputmanager.cpp 2008-04-29 23:19:01.000000000 +0200
+@@ -22,10 +22,11 @@
+ using namespace std;
+
+ #include <unistd.h>
+ #include <sys/time.h>
+ #include <string>
++#include <cstdlib>
+
+ #include "global.h"
+ #include "debug.h"
+ #include "keymap.h"
+ #include "console.h"
+diff -NrU5 zhcon-0.2.6.orig/src/inputmanager.h zhcon-0.2.6/src/inputmanager.h
+--- zhcon-0.2.6.orig/src/inputmanager.h 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/inputmanager.h 2008-04-29 23:15:37.000000000 +0200
+@@ -24,10 +24,11 @@
+ *@author ejoy
+ */
+ using namespace std;
+ #include <cassert>
+ #include <vector>
++#include <sys/types.h>
+
+ #include "mouse.h"
+ #if defined(__FreeBSD__)
+ #include <sys/kbio.h>
+ #endif
+diff -NrU5 zhcon-0.2.6.orig/src/window.cpp zhcon-0.2.6/src/window.cpp
+--- zhcon-0.2.6.orig/src/window.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/window.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -22,10 +22,12 @@
+ #include <algorithm>
+ #include "global.h"
+ #include "debug.h"
+ #include "window.h"
+
++#include <cstring>
++
+ //static members for all the windows
+ Window* Window::mpConsole = NULL;
+ char* Window::mpOverlaps = NULL;
+
+ Window::Window(int x1, int y1, int x2, int y2, int type)
+diff -NrU5 zhcon-0.2.6.orig/src/zhcon.cpp zhcon-0.2.6/src/zhcon.cpp
+--- zhcon-0.2.6.orig/src/zhcon.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/zhcon.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -81,10 +81,12 @@
+ #ifndef NDEBUG
+ #include "debug.h"
+ ofstream debug("debug");
+ #endif
+
++#include <cstring>
++
+ Zhcon* Zhcon::mpZhcon = NULL;
+ int Zhcon::mTtyPid = 0;
+ Zhcon::STATE Zhcon::mState = STOP;
+
+ void Zhcon::SignalVtLeave(int signo) {
diff --git a/app-i18n/zhcon/zhcon-0.2.6.ebuild b/app-i18n/zhcon/zhcon-0.2.6.ebuild
index 5143b1370095..5ee5de99ecd8 100644
--- a/app-i18n/zhcon/zhcon-0.2.6.ebuild
+++ b/app-i18n/zhcon/zhcon-0.2.6.ebuild
@@ -1,9 +1,8 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/zhcon/zhcon-0.2.6.ebuild,v 1.2 2006/10/24 08:49:30 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/zhcon/zhcon-0.2.6.ebuild,v 1.3 2008/06/09 12:46:04 flameeyes Exp $
WANT_AUTOMAKE="1.9"
-WANT_AUTOCONF="latest"
inherit eutils autotools
@@ -27,6 +26,7 @@ src_unpack() {
epatch "${FILESDIR}"/zhcon-0.2.5.make-fix.patch
epatch "${FILESDIR}"/${P}.sysconfdir.patch
epatch "${FILESDIR}"/${P}.configure.in.patch
+ epatch "${FILESDIR}"/${P}+gcc-4.3.patch
eautoreconf
}