diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-02-23 07:07:49 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-02-23 07:07:49 -0500 |
commit | c16a87081d2a1ac6aeec7ea074f3ac515881cd74 (patch) | |
tree | 4b486968f522aec2baf008cdeff48a558f2bd811 /sys-libs | |
parent | sys-libs/talloc: remove BSD strtoll check (diff) | |
download | hardened-dev-c16a87081d2a1ac6aeec7ea074f3ac515881cd74.tar.gz hardened-dev-c16a87081d2a1ac6aeec7ea074f3ac515881cd74.tar.bz2 hardened-dev-c16a87081d2a1ac6aeec7ea074f3ac515881cd74.zip |
sys-libs/tevent: remove BSD strtoll check
Package-Manager: portage-2.2.7
RepoMan-Options: --force
Manifest-Sign-Key: 0xF52D4BBA
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/tevent/Manifest | 31 | ||||
-rw-r--r-- | sys-libs/tevent/files/add-py-file-0.9.14.patch | 32 | ||||
-rw-r--r-- | sys-libs/tevent/files/add-py-file.patch | 32 | ||||
-rw-r--r-- | sys-libs/tevent/files/tevent-remove-check-bsd-strtoll.patch | 24 | ||||
-rw-r--r-- | sys-libs/tevent/files/tevent-version.patch | 27 | ||||
-rw-r--r-- | sys-libs/tevent/metadata.xml | 9 | ||||
-rw-r--r-- | sys-libs/tevent/tevent-0.9.19-r99.ebuild | 44 | ||||
-rw-r--r-- | sys-libs/tevent/tevent-0.9.20-r99.ebuild | 44 | ||||
-rw-r--r-- | sys-libs/tevent/tevent-0.9.21-r99.ebuild | 44 |
9 files changed, 287 insertions, 0 deletions
diff --git a/sys-libs/tevent/Manifest b/sys-libs/tevent/Manifest new file mode 100644 index 00000000..bd8bacfe --- /dev/null +++ b/sys-libs/tevent/Manifest @@ -0,0 +1,31 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX add-py-file-0.9.14.patch 1093 SHA256 8b19556991ca4c5279e842a267ae38a5275caf0eaaa0db19f3c407972fa66c29 SHA512 aca86b56fd353c04eedd2a02a1f68db3a72b2b8ad7b669bdda1fbb9632a8acd69d523ad1e23665fc0ff4abdee89815fe8194a36a9d0d03ac45c7ac06e0ff262b WHIRLPOOL 9fd1b46c5b8c93597401cdcbdeda1e03f9e9fac97b38dcede18be4f67930fe53fcaacdf8324bbb74b37700eb77ab9e2bdf7672115204a6178c751f0fb441fe61 +AUX add-py-file.patch 1094 SHA256 91543e43496f22684032eece3ab409b6e45908d3c4cc9c25f2e3d1844a6cb457 SHA512 f1db337951fe797b48ef630e4c0e1370ed514f156671f5b039385c4cd6285109f681a2c38efa77ae02de64798076ad533557ac07b6827e99ee1d181fbae03b35 WHIRLPOOL 7dcabfabc62da2d12a5ea7fc9db78deaa7b81242c367ca0d44c63091d40d3a661696f565b11c2f64688a02d861026b8174651e72ffe87b28928ea27285e409ed +AUX tevent-remove-check-bsd-strtoll.patch 1149 SHA256 3c912c5129e9bcfce51cb1c0517e4fe641371d3eea9af43454024858eb6418fe SHA512 69ef329df08066b877b554b1fdc0270190db4b80d3fc11988736584e7743047d3afc11c1678dcaaff71d00fe443a13de118a85727df1097ae7edf80d43b7bdf9 WHIRLPOOL c50aa5ffef33ff9fc099893f81081dcb2d939216a05bad7106d210eba08ab41413ebb5054675e30a943fe0d5dd91190576069a9156d6735576daf744e22923f3 +AUX tevent-version.patch 832 SHA256 9f03c4fa65358620e6ed50d5ebad78a522ee4e3a3dceade97fd5023c36e97799 SHA512 e0762c4f45bf6cdbf91dc45de22bab3a7722707ca0a19246ad10a622959e63507ded160e27d5cb6f55b086cccc06d5dfaad0dcc89b9b46c4f8926f7ea4546db1 WHIRLPOOL a16eceed526dc7d82cdd99f26e47dd7ef3463a07a1b31f2287443ab28abecfe9d1afbf8c96a8992bf6055ade1f057dc07a2cb300c5b61ac6387f19422b09ef05 +DIST tevent-0.9.19.tar.gz 543195 SHA256 f9a1d079844ec0068804541ee2421d8ff34d7a4cdb93a6cc20d0edd5302e3fc9 SHA512 9c8eb11dc8efbf6b7651261bb4359c6100022145df749630c116ecafea62f6527c3cc7ab73499e3ff1854454aab3947c58d49a9765fc857ac0ddd90250299d0d WHIRLPOOL ebdda4d558a023531c7c991027442dd05f83936f9e8389ce83de06b9d60033dea0e36299c3ed808a9670d84bb3c43297d3d5a5d62670e69ede474ef0bec32581 +DIST tevent-0.9.20.tar.gz 549404 SHA256 b31ce8d066f124a920ed106855ce5df4dc2f86614edd861f422f06890d353814 SHA512 b3d8b892d463f903eab88a569fadd2bf8588d83b2a7db973a5445d66e1eb4dfddc93e349407b16d0e52b6a23cd2fa131bc92cac657f71e8998516017a9dcb546 WHIRLPOOL 7bfcdbc93d3286f5b70ca33031e89cd342babf301549d99a02aad563fc8199041736287dfbe9b783a3674404c2cf11864a761c02795db72044c8f6e0b0e6dd1f +DIST tevent-0.9.21.tar.gz 550606 SHA256 f2be7463573dab2d8210cb57fe7e7e2aeb323274cbdc865a6e29ddcfb977f0f4 SHA512 d1d76402bf32c4da9394ec5e0eb149abefa3f4dc86e5d22529f5cc4f30b1d3071e7a00aac3bd5707532e68dfed5a03dc5a267ea367c8fbe0aaead9df63beafdf WHIRLPOOL 4b4525394cdc06a5ce2535216eea8fdcf44dc0b4ab7964506042df3ee67ce9463d82e9b6be3bdd4cd9983ce92a62e3dfc69c6abf66d30b9b6466e863b2c1d7cd +EBUILD tevent-0.9.19-r99.ebuild 922 SHA256 d842adb03b34e3fe50e0c0aebf08a2cdbe148a666363b504781799b5e07a1eef SHA512 ef5ca55044238b3fba533b6ad181aee0d09988e4cc3bc67c10914b25c88aa45bbdf5fecd9941a1d228e1ce1c311bc00379d64bebddbd0e31a72beaa79146f12c WHIRLPOOL 52c3ac228ba5223a01a464e70f421eb94c56b18f2998c2944c36d588f1e6fb83a75156c075b47a67ff60058022529c3092ee622f74751b91ee8c8eed55e11c3f +EBUILD tevent-0.9.20-r99.ebuild 930 SHA256 e573558731ba8286fcd528583b40cc46f44911924c2ba96ea127c5865f689eea SHA512 24a803638473fe6786c0f19f7fbd99c702ceb8421696d40e9735d46d61de840d862b7eeddfe95fa77c8316962584ab92ad2a3cee16f1d7a53cd2b869d514eccc WHIRLPOOL d03eead599ad9d78baacf906c8fb5b3b52d4147ca78148b642110f64fd8dc745ff6cac87c3cbf0bd6b17c9e168524044ed574371bddadf020d926f8b1e08e4bc +EBUILD tevent-0.9.21-r99.ebuild 930 SHA256 596d6e88c77bb05a3a96a17cc699f7fd3785d523bdf7280fbd75d96fb53ea637 SHA512 7ae4d1ae75978c5e58231ec65e4488fef882e4226a8c7e9dd9e3a608611d641b4d78c47383bcabdf29dd208a713843cd5570e9bc832cf6b18d1d1cfee0510113 WHIRLPOOL a3ec7e7ac5aeb1be57752d07aa360a7da05d73010bb0ccc35cf809cd71966087f624c7c119e110e0e7c10d1d8974d5ba2275f11f80184d09f6652946e9585066 +MISC metadata.xml 253 SHA256 89737be021da6f1a76894bd234f227b72ba57fd0213bdfdc0f5b38f1051ce775 SHA512 58c5ed90694ec0914f49f21b7066d7bd5610f53bbd0ee01e6d1b285e5f8f261bcb681e19b21c39287c312fc982b300f2a34a8cc638eaa0e939dd0da2b046288a WHIRLPOOL 15e90e302adf797a5761d14558f652e319613ec179ea5a4cdfcff2040bcf8d0cc734266744a69e644108ec47bcdde213ad5eaf0c7adf9d796a21e62a58ed9dfe +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQIcBAEBCAAGBQJTCeSVAAoJEJOE+m71LUu6r9AP/0oxvhBWnKhroHwIjWpFo6v4 +a9REPBpl7MZ8NZv0jI5pSdNquZzKjyihDsrRIcUqTIZkryfktotqs/BYubxnZiha +XOlvGfEJwNMCHGwKKj6akG9VC0lIwGFxCpTp4f88x2kx3nI4XYFCtnfUJBWMkD/O +pTeUb3OHS2jbfNWK/XpvRFIbEtK6vM9YPQnz+vPzk6hmOZSpr3P8Oe3VxArMHK5Y +3N8jpAsENOAd3x5w8Q2TzX25sjWXe/DJw2toO8eUaZ/FuZil/IUjlZrokDpuzzoi +ofukyjqe7iIY9Gr1kvnJFLPqj7SzAnq4VtSlZ1YmMVDIm4czxCTuADbjSsoPHciD +G8PNoa1CuyZM9I9pfmd1VaMcGGha8NMCLVi7854dDZFq7U3sbGihA94lnRmSqDMK +9zT/eOwanBaDWOhFpNDGINmrZDgRErAQ/XQL1HUIM00ZzB0rYGVliTP2Hbfs/wpz +Z42EUmOVDI8CvJ+B2StvGHd/rn/5+uW8GQadcWrxNInp8ehDOP69Ekk5hfEmZsKg +FRbbj1ATC4lXYryXtNzWQyE4Wv9+93GvqCc6Un2qiybLNig/bPvG4w5EDiKYmIir +WKW8E6vnkITIehZJVnbb+tq4Umpn00IkrAA2B1yEv1kpMjMleCJ6NZ771E+nlvlP +fW6mZG9xQlCYJuuQ9wR5 +=p6eL +-----END PGP SIGNATURE----- diff --git a/sys-libs/tevent/files/add-py-file-0.9.14.patch b/sys-libs/tevent/files/add-py-file-0.9.14.patch new file mode 100644 index 00000000..32708160 --- /dev/null +++ b/sys-libs/tevent/files/add-py-file-0.9.14.patch @@ -0,0 +1,32 @@ +--- /dev/null ++++ /tevent.py +@@ -0,0 +1,29 @@ ++#!/usr/bin/python ++# ++# Python integration for tevent ++# ++# Copyright (C) Jelmer Vernooij 2011 ++# ++# ** NOTE! The following LGPL license applies to the tevent ++# ** library. This does NOT imply that all of Samba is released ++# ** under the LGPL ++# ++# This library is free software; you can redistribute it and/or ++# modify it under the terms of the GNU Lesser General Public ++# License as published by the Free Software Foundation; either ++# version 3 of the License, or (at your option) any later version. ++# ++# This library is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++# Lesser General Public License for more details. ++# ++# You should have received a copy of the GNU Lesser General Public ++# License along with this library; if not, see <http://www.gnu.org/licenses/>. ++ ++from _tevent import ( ++ __version__, ++ backend_list, ++ Context, ++ Signal, ++ ) diff --git a/sys-libs/tevent/files/add-py-file.patch b/sys-libs/tevent/files/add-py-file.patch new file mode 100644 index 00000000..cd919834 --- /dev/null +++ b/sys-libs/tevent/files/add-py-file.patch @@ -0,0 +1,32 @@ +--- /dev/null ++++ b/tevent.py +@@ -0,0 +1,29 @@ ++#!/usr/bin/python ++# ++# Python integration for tevent ++# ++# Copyright (C) Jelmer Vernooij 2011 ++# ++# ** NOTE! The following LGPL license applies to the tevent ++# ** library. This does NOT imply that all of Samba is released ++# ** under the LGPL ++# ++# This library is free software; you can redistribute it and/or ++# modify it under the terms of the GNU Lesser General Public ++# License as published by the Free Software Foundation; either ++# version 3 of the License, or (at your option) any later version. ++# ++# This library is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++# Lesser General Public License for more details. ++# ++# You should have received a copy of the GNU Lesser General Public ++# License along with this library; if not, see <http://www.gnu.org/licenses/>. ++ ++from _tevent import ( ++ __version__, ++ backend_list, ++ Context, ++ Signal, ++ ) diff --git a/sys-libs/tevent/files/tevent-remove-check-bsd-strtoll.patch b/sys-libs/tevent/files/tevent-remove-check-bsd-strtoll.patch new file mode 100644 index 00000000..481f0d44 --- /dev/null +++ b/sys-libs/tevent/files/tevent-remove-check-bsd-strtoll.patch @@ -0,0 +1,24 @@ +diff -Naur tevent-0.9.19.orig/lib/replace/wscript tevent-0.9.19/lib/replace/wscript +--- tevent-0.9.19.orig/lib/replace/wscript 2013-06-04 14:21:30.000000000 +0000 ++++ tevent-0.9.19/lib/replace/wscript 2014-02-23 12:01:19.733793736 +0000 +@@ -272,20 +272,6 @@ + + #Some OS (ie. freebsd) return EINVAL if the convertion could not be done, it's not what we expect + #Let's detect those cases +- if conf.CONFIG_SET('HAVE_STRTOLL'): +- conf.CHECK_CODE(''' +- long long nb = strtoll("Text", NULL, 0); +- if (errno == EINVAL) { +- return 0; +- } else { +- return 1; +- } +- ''', +- msg="Checking correct behavior of strtoll", +- headers = 'errno.h', +- execute = True, +- define = 'HAVE_BSD_STRTOLL', +- ) + conf.CHECK_FUNCS('if_nametoindex strerror_r') + conf.CHECK_FUNCS('getdirentries getdents syslog') + conf.CHECK_FUNCS('gai_strerror get_current_dir_name') diff --git a/sys-libs/tevent/files/tevent-version.patch b/sys-libs/tevent/files/tevent-version.patch new file mode 100644 index 00000000..2042ec58 --- /dev/null +++ b/sys-libs/tevent/files/tevent-version.patch @@ -0,0 +1,27 @@ +--- a/pytevent.c ++++ b/pytevent.c +@@ -761,4 +761,6 @@ void init_tevent(void) + + Py_INCREF(&TeventFd_Type); + PyModule_AddObject(m, "Fd", (PyObject *)&TeventFd_Type); ++ ++ PyModule_AddObject(m, "__version__", PyString_FromString(PACKAGE_VERSION)); + } +--- a/wscript ++++ b/wscript +@@ -92,7 +92,14 @@ + 'pytevent.c', + deps='tevent', + enabled=True, +- realname='_tevent.so') ++ realname='_tevent.so', ++ cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION) ++ # install out various python scripts for use by make test ++ bld.SAMBA_SCRIPT('tevent_python', ++ pattern='tevent.py', ++ installdir='python') ++ ++ bld.INSTALL_WILDCARD('${PYTHONDIR}', 'tevent.py', flat=False) + + + def test(ctx): diff --git a/sys-libs/tevent/metadata.xml b/sys-libs/tevent/metadata.xml new file mode 100644 index 00000000..e06ba379 --- /dev/null +++ b/sys-libs/tevent/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>samba</herd> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/sys-libs/tevent/tevent-0.9.19-r99.ebuild b/sys-libs/tevent/tevent-0.9.19-r99.ebuild new file mode 100644 index 00000000..259a50b4 --- /dev/null +++ b/sys-libs/tevent/tevent-0.9.19-r99.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tevent/tevent-0.9.19.ebuild,v 1.15 2013/09/06 20:08:35 maekke Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_{6,7} ) + +inherit waf-utils python-single-r1 + +DESCRIPTION="Samba tevent library" +HOMEPAGE="http://tevent.samba.org/" +SRC_URI="http://samba.org/ftp/tevent/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 arm x86" +IUSE="" + +RDEPEND=">=sys-libs/talloc-2.0.8[python] + ${PYTHON_DEPS}" + +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +WAF_BINARY="${S}/buildtools/bin/waf" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-remove-check-bsd-strtoll.patch +} + +src_install() { + waf-utils_src_install + python_export PYTHON_SITEDIR + insinto "${PYTHON_SITEDIR#${EPREFIX}}" + doins tevent.py + python_optimize +} diff --git a/sys-libs/tevent/tevent-0.9.20-r99.ebuild b/sys-libs/tevent/tevent-0.9.20-r99.ebuild new file mode 100644 index 00000000..8b1a9c5e --- /dev/null +++ b/sys-libs/tevent/tevent-0.9.20-r99.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tevent/tevent-0.9.20.ebuild,v 1.2 2013/12/16 08:53:50 polynomial-c Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_{6,7} ) + +inherit waf-utils python-single-r1 + +DESCRIPTION="Samba tevent library" +HOMEPAGE="http://tevent.samba.org/" +SRC_URI="http://samba.org/ftp/tevent/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=">=sys-libs/talloc-2.1.0[python] + ${PYTHON_DEPS}" + +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +WAF_BINARY="${S}/buildtools/bin/waf" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-remove-check-bsd-strtoll.patch +} + +src_install() { + waf-utils_src_install + python_export PYTHON_SITEDIR + insinto "${PYTHON_SITEDIR#${EPREFIX}}" + doins tevent.py + python_optimize +} diff --git a/sys-libs/tevent/tevent-0.9.21-r99.ebuild b/sys-libs/tevent/tevent-0.9.21-r99.ebuild new file mode 100644 index 00000000..89f9e799 --- /dev/null +++ b/sys-libs/tevent/tevent-0.9.21-r99.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tevent/tevent-0.9.21.ebuild,v 1.1 2014/01/18 23:19:27 polynomial-c Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_{6,7} ) + +inherit waf-utils python-single-r1 + +DESCRIPTION="Samba tevent library" +HOMEPAGE="http://tevent.samba.org/" +SRC_URI="http://samba.org/ftp/tevent/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=">=sys-libs/talloc-2.1.0[python] + ${PYTHON_DEPS}" + +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +WAF_BINARY="${S}/buildtools/bin/waf" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-remove-check-bsd-strtoll.patch +} + +src_install() { + waf-utils_src_install + python_export PYTHON_SITEDIR + insinto "${PYTHON_SITEDIR#${EPREFIX}}" + doins tevent.py + python_optimize +} |