diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-09 20:05:12 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-09 20:05:12 +0000 |
commit | fee86aa0c23caeb53768f92f2fe9afbc393849be (patch) | |
tree | 322dc526d412f087aaae2be370f576d854b14125 /net-im/licq | |
parent | Fix building with GLIBC 2.10+ wrt #273979. (diff) | |
download | historical-fee86aa0c23caeb53768f92f2fe9afbc393849be.tar.gz historical-fee86aa0c23caeb53768f92f2fe9afbc393849be.tar.bz2 historical-fee86aa0c23caeb53768f92f2fe9afbc393849be.zip |
Fix building with GLIBC 2.10+ wrt #280640.
Package-Manager: portage-2.2_rc36/cvs/Linux x86_64
Diffstat (limited to 'net-im/licq')
-rw-r--r-- | net-im/licq/ChangeLog | 6 | ||||
-rw-r--r-- | net-im/licq/Manifest | 15 | ||||
-rw-r--r-- | net-im/licq/files/licq-1.3.6-glibc-2.10.patch | 167 | ||||
-rw-r--r-- | net-im/licq/licq-1.3.6.ebuild | 7 |
4 files changed, 179 insertions, 16 deletions
diff --git a/net-im/licq/ChangeLog b/net-im/licq/ChangeLog index ac33b1d14fb3..47ed7ddb8d1d 100644 --- a/net-im/licq/ChangeLog +++ b/net-im/licq/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-im/licq # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/licq/ChangeLog,v 1.105 2009/07/31 22:07:57 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/licq/ChangeLog,v 1.106 2009/08/09 20:05:12 ssuominen Exp $ + + 09 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> licq-1.3.6.ebuild, + +files/licq-1.3.6-glibc-2.10.patch: + Fix building with GLIBC 2.10+ wrt #280640. 31 Jul 2009; <chainsaw@gentoo.org> ChangeLog: Marked stable on AMD64 as requested by Olivier Crete <tester@gentoo.org> diff --git a/net-im/licq/Manifest b/net-im/licq/Manifest index a08b14089644..359e2005a4e4 100644 --- a/net-im/licq/Manifest +++ b/net-im/licq/Manifest @@ -1,20 +1,11 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 1.3.0-suse_bool.patch 191 RMD160 0b8b913f192328485f213c9d7cf12575158c4584 SHA1 4112dd355aea01b9c5c8f89d9ed2681eb616c4d7 SHA256 e061f929c965d28724cc2ff5ad7a859035331e24c52f8fd9cd2c73a07d32898a AUX licq-1.3.5-gcc43.patch 3640 RMD160 9ab77b228e9426082d8015f452c9f25e46548b4c SHA1 ea20203897d26f9c842fa6fc648b9ce5db5c4b8b SHA256 4acd8891b02ce496176a4724d193fbf07330bc6ca40834a00ccfd0f2ea3b70dc AUX licq-1.3.5-logonfix.patch 451 RMD160 c951b408e545e0aac009830061a93c614d19aeb7 SHA1 0a1d2ecab14d8f453727dbe47ad01b1c6021c9b9 SHA256 7b64b67852392278efa6ff081033fe16efe261da9093606e69799bfdfe249b5a AUX licq-1.3.5-prevent-dos.patch 3874 RMD160 e85cf207499c032c68d15b08ae7cd8c9ec418a9b SHA1 ed7e73bc1aae4418d7e3abe74e8b6179c1297229 SHA256 d6b83ff13c0e30f11226ffdedf2511c28a7a48abffc0326c72563f01cc48154a +AUX licq-1.3.6-glibc-2.10.patch 6864 RMD160 807108dcaaec5dfa3cbee446c3a4967bd1189194 SHA1 48014f3e1ede20b7b3e90c0f8e8e610f8ea5517a SHA256 70131d3a3cc6c4b3d3a87c05465ab0b946458d5de03ea5bcd46728dbbf78e211 DIST licq-1.3.5.tar.bz2 3260471 RMD160 4442f6cb3630d8300e5f128617a522bd2cb863dc SHA1 a1059173f36694e6e5ec9ba62ced6e9738807916 SHA256 ca6692026e87459082b33ebb6480cc5c600001c93e1d9e2bbde65f3cf2238d3e DIST licq-1.3.6.tar.bz2 4777777 RMD160 0d626640e02c9991309d6f7c32725cd1d5bdfa37 SHA1 1451da41c82b9a13424c96d8641e642895b723ac SHA256 ad6ea66301923e5d106111a6b4654aaa72131d8b5c499d16dc9fbbc8cd29845e EBUILD licq-1.3.5-r1.ebuild 5168 RMD160 017f47c03609244ffe02620f7f411a7fa6771c44 SHA1 a6b1cc95dee2a7fc7e81abf9725318d8eb56c8b6 SHA256 7b56c81a073e12034f114416062a0d8f0938c5dc3d949e345c73e17d477fcb03 -EBUILD licq-1.3.6.ebuild 3163 RMD160 04030d65c7120476e5ea5602e6cd454440db53f2 SHA1 e3fe0523e2a9623c560639fb9ccb01e2303338a8 SHA256 8762e1bba3b890f28fd70c780acedb9319f0e945848b4ee66e3c5d4530e1ecb4 -MISC ChangeLog 16299 RMD160 ffd62f8b7a08bfe07f62086c5b38667797f0ada6 SHA1 09496f8ac3733305b3381aa39129848b8a5b87a5 SHA256 3fc9cb1ce9d24d9123f3bd882369f009ba43b55af3a0061c50581ecfc1638fc3 +EBUILD licq-1.3.6.ebuild 3175 RMD160 1065cee7a51381e075ff2609b1a74ac174bc5595 SHA1 25b045a325393c87feae604748b27acad3233fef SHA256 d12ac5cc74b506bfc65a8258ee35216a8c3cb992d2b52e1cbac18a186d9ce043 +MISC ChangeLog 16457 RMD160 4ed59c66deaba960065e20687af4d45005b9fc00 SHA1 a47671936f5ef1ec995f48a61d1440112c28e4ec SHA256 88d90d02b48db1897264ebf6a7aedb5331042e1546866858d8d34162dbd10f68 MISC metadata.xml 249 RMD160 09f64f681d0dd11fd8a5784ae17b7eaaa87cc12f SHA1 936e8c76314d77517317065331498434f2c59674 SHA256 bfa15ab9faf7742a9f33d2ba72410a089690beb639884f357b135951cd663230 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.11 (GNU/Linux) - -iEYEARECAAYFAkpzbDEACgkQp5vW4rUFj5prSgCbBXRh/20x3aJmh8ppFyYa0feZ -AUcAnjr4ystss+FII7iU5GI0/vbGWCqE -=31rV ------END PGP SIGNATURE----- diff --git a/net-im/licq/files/licq-1.3.6-glibc-2.10.patch b/net-im/licq/files/licq-1.3.6-glibc-2.10.patch new file mode 100644 index 000000000000..d732baf324e3 --- /dev/null +++ b/net-im/licq/files/licq-1.3.6-glibc-2.10.patch @@ -0,0 +1,167 @@ +diff -ur licq-1.3.6.orig/plugins/msn/src/msn-sb.cpp licq-1.3.6/plugins/msn/src/msn-sb.cpp +--- licq-1.3.6.orig/plugins/msn/src/msn-sb.cpp 2008-08-17 16:34:41.000000000 +0300 ++++ licq-1.3.6/plugins/msn/src/msn-sb.cpp 2009-08-07 14:40:22.000000000 +0300 +@@ -441,7 +441,7 @@ + const char *szParam = strServer.c_str(); + char szServer[16]; + char *szPort; +- if ((szPort = strchr(szParam, ':'))) ++ if ((szPort = const_cast<char*> (strchr(szParam, ':')))) + { + strncpy(szServer, szParam, szPort - szParam); + szServer[szPort - szParam] = '\0'; +@@ -504,7 +504,7 @@ + const char *szParam = strServer.c_str(); + char szServer[16]; + char *szPort; +- if ((szPort = strchr(szParam, ':'))) ++ if ((szPort = const_cast<char*> (strchr(szParam, ':')))) + { + strncpy(szServer, szParam, szPort - szParam); + szServer[szPort - szParam] = '\0'; +diff -ur licq-1.3.6.orig/plugins/msn/src/msn-srv.cpp licq-1.3.6/plugins/msn/src/msn-srv.cpp +--- licq-1.3.6.orig/plugins/msn/src/msn-srv.cpp 2008-08-11 19:06:38.000000000 +0300 ++++ licq-1.3.6/plugins/msn/src/msn-srv.cpp 2009-08-07 14:41:08.000000000 +0300 +@@ -76,7 +76,7 @@ + const char *szParam = strServer.c_str(); + char szNewServer[16]; + char *szPort; +- if ((szPort = strchr(szParam, ':'))) ++ if ((szPort = const_cast<char*> (strchr(szParam, ':')))) + { + strncpy(szNewServer, szParam, szPort - szParam); + szNewServer[szPort - szParam] = '\0'; +diff -ur licq-1.3.6.orig/plugins/msn/src/msn-ssl.cpp licq-1.3.6/plugins/msn/src/msn-ssl.cpp +--- licq-1.3.6.orig/plugins/msn/src/msn-ssl.cpp 2008-09-07 17:03:53.000000000 +0300 ++++ licq-1.3.6/plugins/msn/src/msn-ssl.cpp 2009-08-07 14:41:37.000000000 +0300 +@@ -68,7 +68,7 @@ + if (strFirstLine == "HTTP/1.1 200 OK") + { + m_pSSLPacket->ParseHeaders(); +- char *fromPP = strstr(m_pSSLPacket->GetValue("Authentication-Info").c_str(), "from-PP="); ++ const char *fromPP = strstr(m_pSSLPacket->GetValue("Authentication-Info").c_str(), "from-PP="); + char *tag; + + if (fromPP == 0) +@@ -76,7 +76,7 @@ + else + { + fromPP+= 9; // skip to the tag +- char *endTag = strchr(fromPP, '\''); ++ const char *endTag = strchr(fromPP, '\''); + tag = strndup(fromPP, endTag - fromPP); // Thanks, this is all we need + } + +@@ -146,7 +146,7 @@ + + m_pNexusBuff->ParseHeaders(); + +- char *szLogin = strstr(m_pNexusBuff->GetValue("PassportURLs").c_str(), "DALogin="); ++ const char *szLogin = strstr(m_pNexusBuff->GetValue("PassportURLs").c_str(), "DALogin="); + szLogin += 8; // skip to the tag + //char *szEndURL = strchr(szLogin, '/'); + //char *szServer = strndup(szLogin, szEndURL - szLogin); // this is all we need +diff -ur licq-1.3.6.orig/src/file.cpp licq-1.3.6/src/file.cpp +--- licq-1.3.6.orig/src/file.cpp 2008-09-13 16:58:45.000000000 +0300 ++++ licq-1.3.6/src/file.cpp 2009-08-07 14:43:57.000000000 +0300 +@@ -569,7 +569,7 @@ + } + else + { +- if ((szPostEquals = strchr(_szLine, '=')) == NULL) ++ if ((szPostEquals = const_cast<char*> (strchr(_szLine, '='))) == NULL) + { + Warn(INI_ExFORMAT, _szLine); + return NULL; +diff -ur licq-1.3.6.orig/src/icqd-filetransfer.cpp licq-1.3.6/src/icqd-filetransfer.cpp +--- licq-1.3.6.orig/src/icqd-filetransfer.cpp 2008-07-25 23:34:44.000000000 +0300 ++++ licq-1.3.6/src/icqd-filetransfer.cpp 2009-08-07 14:45:06.000000000 +0300 +@@ -106,7 +106,7 @@ + struct stat buf; + + // Remove any path from the filename +- if ( (pcNoPath = strrchr(_szFileName, '/')) != NULL) ++ if ( (pcNoPath = const_cast<char*> (strrchr(_szFileName, '/'))) != NULL) + m_szFileName = strdup(pcNoPath + 1); + else + m_szFileName = strdup(_szFileName); +diff -ur licq-1.3.6.orig/src/icqpacket.cpp licq-1.3.6/src/icqpacket.cpp +--- licq-1.3.6.orig/src/icqpacket.cpp 2008-08-23 19:04:35.000000000 +0300 ++++ licq-1.3.6/src/icqpacket.cpp 2009-08-07 14:29:38.000000000 +0300 +@@ -5874,7 +5874,7 @@ + } + + // Remove path from filename (if it exists) +- char *pcEndOfPath = strrchr(_szFilename, '/'); ++ const char *pcEndOfPath = strrchr(_szFilename, '/'); + if (pcEndOfPath != NULL) + m_szFilename = strdup(pcEndOfPath + 1); + else +diff -ur licq-1.3.6.orig/src/licq.cpp licq-1.3.6/src/licq.cpp +--- licq-1.3.6.orig/src/licq.cpp 2008-06-11 21:34:35.000000000 +0300 ++++ licq-1.3.6/src/licq.cpp 2009-08-07 14:32:52.000000000 +0300 +@@ -183,14 +183,14 @@ + /*-----Helper functions for CLicq::UpgradeLicq-----------------------------*/ + int SelectUserUtility(const struct dirent *d) + { +- char *pcDot = strrchr(d->d_name, '.'); ++ const char *pcDot = strrchr(d->d_name, '.'); + if (pcDot == NULL) return (0); + return (strcmp(pcDot, ".uin") == 0); + } + + int SelectHistoryUtility(const struct dirent *d) + { +- char *pcDot = strchr(d->d_name, '.'); ++ const char *pcDot = strchr(d->d_name, '.'); + if (pcDot == NULL) return (0); + return (strcmp(pcDot, ".history") == 0 || + strcmp(pcDot, ".history.removed") == 0); +diff -ur licq-1.3.6.orig/src/rtf.cc licq-1.3.6/src/rtf.cc +--- licq-1.3.6.orig/src/rtf.cc 2007-06-21 00:41:54.000000000 +0300 ++++ licq-1.3.6/src/rtf.cc 2009-08-07 14:38:41.000000000 +0300 +@@ -2141,7 +2141,7 @@ + return; + } + if (m_bFontName){ +- char *pp = strchr(str, ';'); ++ const char *pp = strchr(str, ';'); + unsigned size = strlen(pp); + if (pp){ + size = (pp - str); +diff -ur licq-1.3.6.orig/src/rtf.ll licq-1.3.6/src/rtf.ll +--- licq-1.3.6.orig/src/rtf.ll 2007-06-21 00:41:54.000000000 +0300 ++++ licq-1.3.6/src/rtf.ll 2009-08-07 14:38:27.000000000 +0300 +@@ -541,7 +541,7 @@ + return; + } + if (m_bFontName){ +- char *pp = strchr(str, ';'); ++ const char *pp = strchr(str, ';'); + unsigned size = strlen(pp); + if (pp){ + size = (pp - str); +diff -ur licq-1.3.6.orig/src/translate.cpp licq-1.3.6/src/translate.cpp +--- licq-1.3.6.orig/src/translate.cpp 2008-07-02 17:02:49.000000000 +0300 ++++ licq-1.3.6/src/translate.cpp 2009-08-07 14:36:18.000000000 +0300 +@@ -76,7 +76,7 @@ + bool CTranslator::setTranslationMap(const char* mapFileName) + { + // Map name is the file name with no path +- char* sep = strrchr(mapFileName, '/'); ++ const char* sep = strrchr(mapFileName, '/'); + const char* mapName = (sep == NULL ? mapFileName : sep + 1); + + if (strcmp(mapName, "LATIN_1") == 0) +diff -ur licq-1.3.6.orig/src/utility.cpp licq-1.3.6/src/utility.cpp +--- licq-1.3.6.orig/src/utility.cpp 2008-07-25 23:34:44.000000000 +0300 ++++ licq-1.3.6/src/utility.cpp 2009-08-07 14:34:28.000000000 +0300 +@@ -46,7 +46,7 @@ + //=====CUtilityManager========================================================== + int SelectUtility(const struct dirent *d) + { +- char *pcDot = strrchr(d->d_name, '.'); ++ const char *pcDot = strrchr(d->d_name, '.'); + if (pcDot == NULL) return (0); + return (strcmp(pcDot, ".utility") == 0); + } diff --git a/net-im/licq/licq-1.3.6.ebuild b/net-im/licq/licq-1.3.6.ebuild index 6c7dc5c1088a..cd59341b97f2 100644 --- a/net-im/licq/licq-1.3.6.ebuild +++ b/net-im/licq/licq-1.3.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/licq/licq-1.3.6.ebuild,v 1.7 2009/07/31 22:11:34 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/licq/licq-1.3.6.ebuild,v 1.8 2009/08/09 20:05:12 ssuominen Exp $ EAPI="1" @@ -30,6 +30,8 @@ RDEPEND="kde? ( DEPEND="${RDEPEND} dev-libs/boost" +PATCHES=( "${FILESDIR}/${P}-glibc-2.10.patch" ) + _generate_plugins_directories() { PLUGINS="auto-reply email rms" use msn && PLUGINS="${PLUGINS} msn" @@ -90,7 +92,7 @@ src_install() { # install core einfo "Installing Licq core." emake DESTDIR="${D}" install || die "emake install failed" - dodoc ChangeLog INSTALL README* doc/* + dodoc README* doc/* # Install the plug-ins for plugin in ${PLUGINS}; do cd "${S}"/plugins/"${plugin}" @@ -102,7 +104,6 @@ src_install() { einfo "Installing Licq: \"qt4-gui\"." cmake-utils_src_install docinto plugins/qt4-gui - dodoc doc/README* fi exeinto /usr/share/${PN}/upgrade |