diff options
author | Eray Aslan <eras@gentoo.org> | 2012-04-11 13:52:50 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2012-04-11 13:52:50 +0000 |
commit | 4a5b55f4f5875316075d53d88ae1952d9d5717fa (patch) | |
tree | 0a71779688bef19687a9acee223d7f82e06b5df0 /app-crypt | |
parent | Stable for HPPA (bug #410983). (diff) | |
download | historical-4a5b55f4f5875316075d53d88ae1952d9d5717fa.tar.gz historical-4a5b55f4f5875316075d53d88ae1952d9d5717fa.tar.bz2 historical-4a5b55f4f5875316075d53d88ae1952d9d5717fa.zip |
Fix some more -Werror=uninitialized errors - bug #410431. Thanks to Alexander Adam
Package-Manager: portage-2.1.10.56/cvs/Linux x86_64
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/mit-krb5/ChangeLog | 9 | ||||
-rw-r--r-- | app-crypt/mit-krb5/Manifest | 32 | ||||
-rw-r--r-- | app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch | 35 | ||||
-rw-r--r-- | app-crypt/mit-krb5/mit-krb5-1.10.1-r2.ebuild | 121 |
4 files changed, 181 insertions, 16 deletions
diff --git a/app-crypt/mit-krb5/ChangeLog b/app-crypt/mit-krb5/ChangeLog index 572115d60716..d8218e0739b8 100644 --- a/app-crypt/mit-krb5/ChangeLog +++ b/app-crypt/mit-krb5/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-crypt/mit-krb5 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.315 2012/03/23 14:05:32 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.316 2012/04/11 13:52:50 eras Exp $ + +*mit-krb5-1.10.1-r2 (11 Apr 2012) + + 11 Apr 2012; Eray Aslan <eras@gentoo.org> +mit-krb5-1.10.1-r2.ebuild, + +files/mit-krb5-1.10.1_uninitialized_extra-2.patch: + Fix some more -Werror=uninitialized errors - bug #410431. Thanks to Alexander + Adam *mit-krb5-1.10.1-r1 (23 Mar 2012) diff --git a/app-crypt/mit-krb5/Manifest b/app-crypt/mit-krb5/Manifest index 38d39edeebf8..e7de18db927a 100644 --- a/app-crypt/mit-krb5/Manifest +++ b/app-crypt/mit-krb5/Manifest @@ -10,6 +10,7 @@ AUX CVE-2011-0284.patch 544 RMD160 9b0d172a1abfaf437edacc9f18fd0a6e83028b3e SHA1 AUX CVE-2011-0285.patch 1154 RMD160 a635a940613663f6fe07534d08c7781090fcc9f0 SHA1 b6ae716616ecd5e92f32ec8203a1ab51b5726184 SHA256 6a972da0e87dce82e801590a7bdcca300a5b31ed569f834e0a6634a185a9aac0 AUX CVE-2011-1530.patch 1417 RMD160 c72c99b40c5f230ca430fde33460616c7634b037 SHA1 ec917dd1d1c96fa331f512331d5aa37c2e9b9df7 SHA256 0b0413e175e81b5fb7497f3351341066644431d72663bb1cba9d59b715669486 AUX kpropd.xinetd 194 RMD160 5772b04bf7f6b8a5588331a4d9dca03738756f15 SHA1 a9c84a4197ba133144e754d68847cece6203ed4a SHA256 eaa3838a6ca8db901db359cac3435d4f703a9a10534f02eeb37f494dd21a1736 +AUX mit-krb5-1.10.1_uninitialized_extra-2.patch 974 RMD160 dca44b421b2c02f7514ed4b04f05c5a1ee0718ce SHA1 77eb4d5461033ecef4b6d699f0ff123d85645348 SHA256 6f5d48a17239e056c717016a30260267345d223a113b3e53b034f53d709315c2 AUX mit-krb5-1.10.1_uninitialized_extra.patch 985 RMD160 4f0279cd41ff02bf22ca523d6032569a6dab9b89 SHA1 b58ce51ba8b2f05a96d05429ac4af695b6682885 SHA256 447f55fdb3641a7d57018112e137e1d1bc073c4bb5d97a9eb4e78cf12c8d77e9 AUX mit-krb5-1.10_uninitialized.patch 346 RMD160 4e582a15a79b4b9238eefcbab374e33405278f9f SHA1 9e80b5f59e72639b4a8be9d2ef71252b4f7075dc SHA256 31db64e1834dceb65786f65f37c600d15b10bb48ed8a1687bc2df0aeab5b918d AUX mit-krb5-1.8.3-CVE-2011-0281.0282.0283.patch 6130 RMD160 23cb2560f0d87e6128cdbb12f1e7d8aae85f85f5 SHA1 574a3c82ad7d3c9a1c9c62c6ff95c2d6f0e0fc96 SHA256 7831c9a9553404b41774f40f3fc0df6769342c1923c5b1177062710fd5f0f2bb @@ -29,6 +30,7 @@ DIST krb5-1.9.2-signed.tar 12185600 RMD160 4129e76f6725c18fb3c24b5dd1c5b41f6ee94 DIST krb5-1.9.3-signed.tar 12195840 RMD160 3ad9c4f24ae8b9d177181d8ea305341e88147b5c SHA1 01a14c0cb59ae558451772d6700ea420ae8b0ab0 SHA256 3d556ee7b68e82831b8333cdfb978cc4555801b83c249f470f759b023fce40cc EBUILD mit-krb5-1.10-r1.ebuild 3012 RMD160 2848183c1d32dbba5ea1e0c170a72bf46b26df5c SHA1 838ea95410e874b1abfb2f62a2462e0f7cc0c114 SHA256 197be2f0f4c83c7a43e7516edea6bd613bd5fee89df90f87230ab34376a1bec8 EBUILD mit-krb5-1.10.1-r1.ebuild 2981 RMD160 e60701af68feea723f58ca86fe484af81a3fba59 SHA1 b739a462409756eba3fc2e01ad4859987656e328 SHA256 759e79a865ea86f2642e36b24626ef2c05fc02341f131fc2b3615a5613132ad3 +EBUILD mit-krb5-1.10.1-r2.ebuild 3036 RMD160 950a2bc6d55076fde9df7a9b8c66c92e6fa2a350 SHA1 c8d6644ceccce12b984271bc124278aff1afab52 SHA256 fbf0aaf7aec746b85065658d7e83534785d5c497bef39a7138a9b8dda20a4c18 EBUILD mit-krb5-1.10.1.ebuild 2945 RMD160 15dd105647ed1170b57cc97e1df5de825d218b3b SHA1 2590a31a6c9129ffe00be4b075b61ead7423158f SHA256 605e3e546b4e2d654f740c39695e3dc8c223b3ecdb9af01e5585dbb808b0ab9d EBUILD mit-krb5-1.10.ebuild 2943 RMD160 603832b6b69cf1ed3b8b761925f80878d9548b5f SHA1 643c21a269ba267d5bd1d242c341359b223096e0 SHA256 bbd7921da0538bf146c10a0b8d1b19164d139fa65c9ad7a15dd68ca1bfcefea2 EBUILD mit-krb5-1.8.3-r6.ebuild 2940 RMD160 25f48a0288e3b15a4f3b71cb483c86095d3bb527 SHA1 0a1fdcd668f75d2c932ca89e38bee9691a07270c SHA256 a88bacc133fbabd59298afb2f534ba6e3b9b2bb1aac0063bd6d0b42c437ff6cf @@ -37,22 +39,22 @@ EBUILD mit-krb5-1.8.5-r1.ebuild 2713 RMD160 9b083b7d5bd3d16398ca16e65c42424b29e1 EBUILD mit-krb5-1.8.6.ebuild 2709 RMD160 d9758a70d15e9427310a40c663993d91838fe6c7 SHA1 eb782ffc09d160e4fe5b7278d4a5b2e02540d6ce SHA256 0444ca7072ecd17d7187441648a3d0e5930f6fc26240c690d8303774bf19905a EBUILD mit-krb5-1.9.2-r2.ebuild 3181 RMD160 fe225e09ce0cd00bd14781659b591a2e9dbdcc1e SHA1 3065eaa5adf551595a486d6c0e2802003fd76e41 SHA256 468190582049855a9aa3ab0ce8e17545295a6bd15fc6c7985f8e1f732a6098e8 EBUILD mit-krb5-1.9.3.ebuild 3073 RMD160 69dd70c32dfa726777cec9bd40e748683e8cb2ed SHA1 e68061ee5e7bb11a07a7df8c5f9ed4d58177c6c0 SHA256 1d4dcef2a3e7cce8be4a7ebf625180ff3a70d6224bc92be93efc6a037b2251a1 -MISC ChangeLog 49989 RMD160 d602b342210681559a5c2c6cac2358df19fbdce8 SHA1 c4477c34060c439e7a293d991125246034d53a71 SHA256 02c11e56802cdebef5b4bfbcd0f8535a0e4f1c656b1f879e2ba0c9eb48c7970a +MISC ChangeLog 50238 RMD160 cb2007d0e5c9b816777eaae75629ecfd6da6590d SHA1 069c07b87ab486c078ddfe100b6d6db38e181883 SHA256 0bebb35936f32af511b509ec6b80116359370a2757bc00587bf1bd7f8998b023 MISC metadata.xml 668 RMD160 825e73c2b8d1bdcfffb6c5cfa2110f596d7940ae SHA1 b9fca90e7a86fea05d8174d824e939cf61905310 SHA256 da5862dde92f34b882870961cb9f1e4aa8209fc549e32a43d99770a9de8b232d -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) +Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCAAGBQJPbIM7AAoJEHfx8XVYajsffLUP/i/8movLbObA1rw6X42/5JC0 -ZDQNFaXWHLQ16keOpBVTK0/sWCGMZA7fXNAIIzGtrqlBZH0OQgNwg7RcdUeXqG60 -JSjQfHfjOn0b7kiZka7PQA6kYT5U80MWd99Uo1jTFCBefjBWMOCCTIPTOg+O2ooM -JlssQxLecIonozm0C7giAqDcYYKKl8+QIYKFI5CmS6YcL9HP3NwKBUKwE2yg3rb3 -ooJ6fMnMXE1wRO7OV25uFZbcJxR0OL4kgLIuXgU9DR8uUYMebCZW1m8LzsTM2qyt -f1At+XRnUXB9n2hxVQOwHuomEMxoxlZM0QR8/1lpX6mWE0NBuJshZWofWH2OHWh7 -aJoyNTeu5x0hBSpV3n5S2MhmRzQmD74d6svzFk0yyqq45eFPtTlrxNNE/Ll7hQ+x -lQ9qnwOTVnGDVvAgT1HaEGJ4N6eHYLcbL9rme73mrc/xd7Ok5LrM6zB7SEFAymy3 -HPr8lzwSrfFGia771dmjC2oZ8HjK9PCV8JufCOpswmdVR7FiVwf/qnzJhiYGUk8T -YHxqbMgdUpFkT35N042ZtTaQSldkIHS9jZjjQXRG8MkQ9RtzLk8jVL9N3ur79BRd -SocK7rD1xTfYnmoH3Ar5MPZhmIDSpdN+7VoJTxtkWWRfbZ4HygNTOmomMckxjXCp -m/gvib6pyKmfdrGeWRV0 -=QQfJ +iQIcBAEBCAAGBQJPhYzAAAoJEHfx8XVYajsf8ykP/3UyFbNnj6hB2wcVOtRUnn3i +TJrTKOYn64IeHmscJ0+qaVO+1fVH89owYzl2uuWviKpUEOG/Om8KbNxkLonhoqxj +re6Tmw/QwnbfuL2rTfNk+0IqFDcOXEHv7IeaAk7RBYHyfSc2du0Nq1wgjPxAI7hJ +1NvnvQZsYC42uKyFDLbUh0LpktFwDEzFmpnQCbBQ+G1vwdWBuZmDcXA/+ppQSAbE ++4rx0glkczJUGK5Bn5UTxYQxVc1wmIwHyr8n2nmHp9DiZq89w1KdasZ5y62Tb43m +EzcYjdfvYnCM9g98m4qI8cOvrkD1L763+UNKJxfr0CFlpDzfJ3aR27m6cQNUJCjP +1FwRv44sqOzpIbLTE2P5Xo6dksPXHi5gmPEy6BDP8puCOqZRELk+U+BSt0StqBcI +DwC5SZPVVL/2q3s2ypfo79sj2hw/gDB8SKFjWtXbkuPqLTJMJsY1vhrz5Vy2mzAG +CuRWmcTrDScXdfFzhS9RNB2dbLHS6nWXf8QOQaOqG6Swr0IzmgFAIivAZGFpCM5S +bgV83pFyc8EYOL/IL08wSUZuPIIZ1RMWDlT1d7K+Gz1G0ZzNzPCxHVGVXG5zhCzq +N6Mp2fwh83csV3xNPNgmbjegH2lJQkXLlmDWnZtOWVfIr77U85sA0wOms2sPk3iV +6R1bGRQ8BYRj706XplLk +=l0QH -----END PGP SIGNATURE----- diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch b/app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch new file mode 100644 index 000000000000..ea172ea97a68 --- /dev/null +++ b/app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch @@ -0,0 +1,35 @@ +# bug 410431
+
+--- a/src/kadmin/ktutil/ktutil_funcs.c
++++ b/src/kadmin/ktutil/ktutil_funcs.c
+@@ -64,7 +64,7 @@
+ krb5_kt_list *list;
+ int idx;
+ {
+- krb5_kt_list lp, prev;
++ krb5_kt_list lp, prev = NULL;
+ int i;
+
+ for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
+--- a/src/lib/kadm5/alt_prof.c
++++ b/src/lib/kadm5/alt_prof.c
+@@ -164,7 +164,7 @@
+ char **values;
+ char *valp;
+ int idx;
+- krb5_boolean val;
++ krb5_boolean val = 0;
+
+ kret = krb5_aprof_getvals (acontext, hierarchy, &values);
+ if (kret)
+--- a/src/lib/krb5/unicode/ucstr.c
++++ b/src/lib/krb5/unicode/ucstr.c
+@@ -109,7 +109,7 @@
+ krb5_data ** newdataptr,
+ unsigned flags)
+ {
+- int i, j, len, clen, outpos, ucsoutlen, outsize;
++ int i, j, len, clen, outpos = 0, ucsoutlen, outsize;
+ char *out = NULL, *outtmp, *s;
+ krb5_ucs4 *ucs = NULL, *p, *ucsout = NULL;
+ krb5_data *newdata;
diff --git a/app-crypt/mit-krb5/mit-krb5-1.10.1-r2.ebuild b/app-crypt/mit-krb5/mit-krb5-1.10.1-r2.ebuild new file mode 100644 index 000000000000..5db937bdc782 --- /dev/null +++ b/app-crypt/mit-krb5/mit-krb5-1.10.1-r2.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.10.1-r2.ebuild,v 1.1 2012/04/11 13:52:50 eras Exp $ + +EAPI=4 + +inherit eutils flag-o-matic versionator + +MY_P="${P/mit-}" +P_DIR=$(get_version_component_range 1-2) +DESCRIPTION="MIT Kerberos V" +HOMEPAGE="http://web.mit.edu/kerberos/www/" +SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="doc +keyutils openldap +pkinit +threads test xinetd" + +RDEPEND="!!app-crypt/heimdal + >=sys-libs/e2fsprogs-libs-1.41.0 + keyutils? ( sys-apps/keyutils ) + openldap? ( net-nds/openldap ) + xinetd? ( sys-apps/xinetd )" +DEPEND="${RDEPEND} + virtual/yacc + doc? ( virtual/latex-base ) + test? ( dev-lang/tcl + dev-lang/python + dev-util/dejagnu )" + +S=${WORKDIR}/${MY_P}/src + +src_unpack() { + unpack ${A} + unpack ./"${MY_P}".tar.gz +} + +src_prepare() { + epatch "${FILESDIR}/${P}_uninitialized_extra.patch" + epatch "${FILESDIR}/${P}_uninitialized_extra-2.patch" +} + +src_configure() { + append-flags "-I${EPREFIX}/usr/include/et" + # QA + append-flags -fno-strict-aliasing + append-flags -fno-strict-overflow + use keyutils || export ac_cv_header_keyutils_h=no + econf \ + $(use_with openldap ldap) \ + "$(use_with test tcl "${EPREFIX}/usr")" \ + $(use_enable pkinit) \ + $(use_enable threads thread-support) \ + --without-hesiod \ + --enable-shared \ + --with-system-et \ + --with-system-ss \ + --enable-dns-for-realm \ + --enable-kdc-lookaside-cache \ + --disable-rpath +} + +src_compile() { + emake -j1 + + if use doc ; then + cd ../doc + for dir in api implement ; do + emake -C "${dir}" + done + fi +} + +src_install() { + emake \ + DESTDIR="${D}" \ + EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \ + install + + # default database dir + keepdir /var/lib/krb5kdc + + cd .. + dodoc NOTICE README + dodoc doc/*.{ps,txt} + doinfo doc/*.info* + dohtml -r doc/*.html + + if use doc ; then + dodoc doc/{api,implement}/*.ps + fi + + newinitd "${FILESDIR}"/mit-krb5kadmind.initd mit-krb5kadmind + newinitd "${FILESDIR}"/mit-krb5kdc.initd mit-krb5kdc + newinitd "${FILESDIR}"/mit-krb5kpropd.initd mit-krb5kpropd + + insinto /etc + newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example + insinto /var/lib/krb5kdc + newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example + + if use openldap ; then + insinto /etc/openldap/schema + doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema" + fi + + if use xinetd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}/kpropd.xinetd" kpropd + fi +} + +pkg_preinst() { + if has_version "<${CATEGORY}/${PN}-1.8.0" ; then + elog "MIT split the Kerberos applications from the base Kerberos" + elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp," + elog "ftp clients and telnet, ftp deamons now live in" + elog "\"app-crypt/mit-krb5-appl\" package." + fi +} |