[gentoo-commits] repo/gentoo:master commit in: dev-python/hiredis/files/, dev-python/hiredis/

2023-04-05 Thread Michał Górny
commit: cce314ad5ff63b3848b4c360d00d0b1272f2c703
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Apr  5 09:06:36 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Apr  5 09:14:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cce314ad

dev-python/hiredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/hiredis/Manifest|  1 -
 .../files/hiredis-2.0.0-CVE-2021-32765.patch   | 36 --
 .../hiredis/files/hiredis-2.0.0-system-libs.patch  | 14 -
 dev-python/hiredis/hiredis-2.0.0-r2.ebuild | 36 --
 dev-python/hiredis/metadata.xml|  3 --
 5 files changed, 90 deletions(-)

diff --git a/dev-python/hiredis/Manifest b/dev-python/hiredis/Manifest
index bf1b5ba11125..cd80c0be9b4b 100644
--- a/dev-python/hiredis/Manifest
+++ b/dev-python/hiredis/Manifest
@@ -1,2 +1 @@
-DIST hiredis-2.0.0.tar.gz 75807 BLAKE2B 
dc7535f117c8ecfb2c924fe44a1cba2f02271c544588249de6794ce3aec27f66038ecb9f6364ca87b71f66ba13870a3be192eb79c1f360d2eb6dcb6dcae41caa
 SHA512 
b9a313acdd00676dc046713a81bbf4336959f49f09bd2828997c23ca41259935047c657a4b6f81913715141a75fb6bbe7fc4429c7a5b0f4bc3d5de66b9cfa909
 DIST hiredis-2.2.2.gh.tar.gz 18010 BLAKE2B 
67ab7c3f0667d3cf33abea58fbe37bcc28beb569f6f3da966f191d00965faa5a835a286172179d6f33f4e0fa81743fa345829f04d9d89350ab1394cc0c168147
 SHA512 
8a42df63911000cd119da33e7fea25fa1a5244a86016818bcb6c6e12c042b12b00b7272633d85dcf921fd2eba67145e3258c64689be799a0f59766e541139120

diff --git a/dev-python/hiredis/files/hiredis-2.0.0-CVE-2021-32765.patch 
b/dev-python/hiredis/files/hiredis-2.0.0-CVE-2021-32765.patch
deleted file mode 100644
index ad1bb80ac0de..
--- a/dev-python/hiredis/files/hiredis-2.0.0-CVE-2021-32765.patch
+++ /dev/null
@@ -1,36 +0,0 @@
 a/vendor/hiredis/alloc.c
-+++ b/vendor/hiredis/alloc.c
-@@ -68,6 +68,10 @@ void *hi_malloc(size_t size) {
- }
- 
- void *hi_calloc(size_t nmemb, size_t size) {
-+/* Overflow check as the user can specify any arbitrary allocator */
-+if (SIZE_MAX / size < nmemb)
-+return NULL;
-+
- return hiredisAllocFns.callocFn(nmemb, size);
- }
- 
-diff --git a/alloc.h b/alloc.h
-index 34a05f4..771f9fe 100644
 a/vendor/hiredis/alloc.h
-+++ b/vendor/hiredis/alloc.h
-@@ -32,6 +32,7 @@
- #define HIREDIS_ALLOC_H
- 
- #include  /* for size_t */
-+#include 
- 
- #ifdef __cplusplus
- extern "C" {
-@@ -59,6 +60,10 @@ static inline void *hi_malloc(size_t size) {
- }
- 
- static inline void *hi_calloc(size_t nmemb, size_t size) {
-+/* Overflow check as the user can specify any arbitrary allocator */
-+if (SIZE_MAX / size < nmemb)
-+return NULL;
-+
- return hiredisAllocFns.callocFn(nmemb, size);
- }
- 

diff --git a/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch 
b/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch
deleted file mode 100644
index 74f14cdc00b4..
--- a/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch
+++ /dev/null
@@ -1,14 +0,0 @@
 hiredis-2.0.0/setup.py
-+++ hiredis-2.0.0/setup.py
-@@ -11,9 +11,8 @@
-   return module.__version__
- 
- ext = Extension("hiredis.hiredis",
--  sources=sorted(glob.glob("src/*.c") +
-- ["vendor/hiredis/%s.c" % src for src in ("alloc", "read", 
"sds")]),
--  include_dirs=["vendor"])
-+  sources=sorted(glob.glob("src/*.c")),
-+  libraries=["hiredis"])
- 
- setup(
-   name="hiredis",

diff --git a/dev-python/hiredis/hiredis-2.0.0-r2.ebuild 
b/dev-python/hiredis/hiredis-2.0.0-r2.ebuild
deleted file mode 100644
index 5e6e08f77029..
--- a/dev-python/hiredis/hiredis-2.0.0-r2.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
-inherit distutils-r1
-
-DESCRIPTION="Python extension that wraps hiredis"
-HOMEPAGE="https://github.com/redis/hiredis-py/;
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-IUSE="system-libs"
-
-DEPEND="system-libs? ( >=dev-libs/hiredis-1.0.0:= )"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}"/${P}-CVE-2021-32765.patch
-)
-
-src_prepare() {
-   use system-libs && PATCHES+=(
-   "${FILESDIR}"/${P}-system-libs.patch
-   )
-   sed -i -e 's:description-file:description_file:' setup.cfg || die
-   default
-}
-
-python_test() {
-   cd test || die
-   "${EPYTHON}" -m unittest -v reader.ReaderTest || die "tests failed"
-}

diff --git a/dev-python/hiredis/metadata.xml b/dev-python/hiredis/metadata.xml
index 260530157e29..3f8f3a47818f 100644
--- a/dev-python/hiredis/metadata.xml
+++ b/dev-python/hiredis/metadata.xml
@@ -13,7 +13,4 @@
 hiredis
 redis/hiredis-py
   
-  
-Use dev-libs/hiredis from system
-  
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/hiredis/files/, dev-python/hiredis/

2021-10-31 Thread Sven Wegener
commit: a0e1a56eed02c79bc1a261e3d13c9fe0c4a728e8
Author: Sven Wegener  gentoo  org>
AuthorDate: Sun Oct 31 12:34:29 2021 +
Commit: Sven Wegener  gentoo  org>
CommitDate: Sun Oct 31 15:48:23 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0e1a56e

dev-python/hiredis: Revision bump for CVE-2021-32765

It includes a bundled copy of dev-libs/hiredis and is suffering the same
security issue.

URL: https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2
Bug: https://bugs.gentoo.org/816318
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Sven Wegener  gentoo.org>

 .../files/hiredis-2.0.0-CVE-2021-32765.patch   | 36 ++
 dev-python/hiredis/hiredis-2.0.0-r2.ebuild | 36 ++
 2 files changed, 72 insertions(+)

diff --git a/dev-python/hiredis/files/hiredis-2.0.0-CVE-2021-32765.patch 
b/dev-python/hiredis/files/hiredis-2.0.0-CVE-2021-32765.patch
new file mode 100644
index 000..ad1bb80ac0d
--- /dev/null
+++ b/dev-python/hiredis/files/hiredis-2.0.0-CVE-2021-32765.patch
@@ -0,0 +1,36 @@
+--- a/vendor/hiredis/alloc.c
 b/vendor/hiredis/alloc.c
+@@ -68,6 +68,10 @@ void *hi_malloc(size_t size) {
+ }
+ 
+ void *hi_calloc(size_t nmemb, size_t size) {
++/* Overflow check as the user can specify any arbitrary allocator */
++if (SIZE_MAX / size < nmemb)
++return NULL;
++
+ return hiredisAllocFns.callocFn(nmemb, size);
+ }
+ 
+diff --git a/alloc.h b/alloc.h
+index 34a05f4..771f9fe 100644
+--- a/vendor/hiredis/alloc.h
 b/vendor/hiredis/alloc.h
+@@ -32,6 +32,7 @@
+ #define HIREDIS_ALLOC_H
+ 
+ #include  /* for size_t */
++#include 
+ 
+ #ifdef __cplusplus
+ extern "C" {
+@@ -59,6 +60,10 @@ static inline void *hi_malloc(size_t size) {
+ }
+ 
+ static inline void *hi_calloc(size_t nmemb, size_t size) {
++/* Overflow check as the user can specify any arbitrary allocator */
++if (SIZE_MAX / size < nmemb)
++return NULL;
++
+ return hiredisAllocFns.callocFn(nmemb, size);
+ }
+ 

diff --git a/dev-python/hiredis/hiredis-2.0.0-r2.ebuild 
b/dev-python/hiredis/hiredis-2.0.0-r2.ebuild
new file mode 100644
index 000..48e177fb23f
--- /dev/null
+++ b/dev-python/hiredis/hiredis-2.0.0-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="Python extension that wraps hiredis"
+HOMEPAGE="https://github.com/redis/hiredis-py/;
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="system-libs"
+
+DEPEND="system-libs? ( >=dev-libs/hiredis-1.0.0:= )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-CVE-2021-32765.patch
+)
+
+src_prepare() {
+   use system-libs && PATCHES+=(
+   "${FILESDIR}"/${P}-system-libs.patch
+   )
+   sed -i -e 's:description-file:description_file:' setup.cfg || die
+   default
+}
+
+python_test() {
+   cd test || die
+   "${EPYTHON}" -m unittest -v reader.ReaderTest || die "tests failed"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/hiredis/files/, dev-python/hiredis/

2021-08-05 Thread Michał Górny
commit: b2fc9e981903524fd3b02791128e11e2928b6a90
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Aug  5 14:47:31 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Aug  5 14:47:31 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2fc9e98

dev-python/hiredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/hiredis/Manifest|  1 -
 .../hiredis/files/hiredis-1.0.1-api-0.14.patch | 32 --
 .../hiredis/files/hiredis-1.0.1-system-libs.patch  | 15 --
 dev-python/hiredis/hiredis-1.1.0.ebuild| 32 --
 4 files changed, 80 deletions(-)

diff --git a/dev-python/hiredis/Manifest b/dev-python/hiredis/Manifest
index 5f1ab167b26..d7d0946290e 100644
--- a/dev-python/hiredis/Manifest
+++ b/dev-python/hiredis/Manifest
@@ -1,2 +1 @@
-DIST hiredis-1.1.0.tar.gz 54620 BLAKE2B 
9991745d277e87efe836c1c8eabb2016ce401e2be52c7e1b3a154350776fae6fd3c49e3096da57231e42c57bf36ba692ce26bc993d0923b5246376d8694ad058
 SHA512 
ad37868376de91303c15ffe6109dc7fadb4f458efdd44b7ddc0a410937a389b8e062ab7d36b1aec3fe324ecafe6b1e5e6b92f547cbf619251dad22a28e02ee9c
 DIST hiredis-2.0.0.tar.gz 75807 BLAKE2B 
dc7535f117c8ecfb2c924fe44a1cba2f02271c544588249de6794ce3aec27f66038ecb9f6364ca87b71f66ba13870a3be192eb79c1f360d2eb6dcb6dcae41caa
 SHA512 
b9a313acdd00676dc046713a81bbf4336959f49f09bd2828997c23ca41259935047c657a4b6f81913715141a75fb6bbe7fc4429c7a5b0f4bc3d5de66b9cfa909

diff --git a/dev-python/hiredis/files/hiredis-1.0.1-api-0.14.patch 
b/dev-python/hiredis/files/hiredis-1.0.1-api-0.14.patch
deleted file mode 100644
index 16c42022828..000
--- a/dev-python/hiredis/files/hiredis-1.0.1-api-0.14.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff -Nur hiredis-1.0.1.orig/src/reader.c hiredis-1.0.1/src/reader.c
 hiredis-1.0.1.orig/src/reader.c2019-11-13 11:38:29.0 +0100
-+++ hiredis-1.0.1/src/reader.c 2020-04-01 13:15:19.852085240 +0200
-@@ -167,7 +167,7 @@
- static void Reader_dealloc(hiredis_ReaderObject *self) {
- // we don't need to free self->encoding as the buffer is managed by Python
- // https://docs.python.org/3/c-api/arg.html#strings-and-buffers
--redisReplyReaderFree(self->reader);
-+redisReaderFree(self->reader);
- Py_XDECREF(self->protocolErrorClass);
- Py_XDECREF(self->replyErrorClass);
- 
-@@ -271,7 +271,7 @@
-   goto error;
- }
- 
--redisReplyReaderFeed(self->reader, (char *)buf.buf + off, len);
-+redisReaderFeed(self->reader, (char *)buf.buf + off, len);
- PyBuffer_Release();
- Py_RETURN_NONE;
- 
-@@ -290,8 +290,8 @@
- return NULL;
- }
- 
--if (redisReplyReaderGetReply(self->reader, (void**)) == REDIS_ERR) {
--errstr = redisReplyReaderGetError(self->reader);
-+if (redisReaderGetReply(self->reader, (void**)) == REDIS_ERR) {
-+errstr = redisReaderGetError(self->reader);
- /* protocolErrorClass might be a callable. call it, then use it's 
type */
- err = createError(self->protocolErrorClass, errstr, strlen(errstr));
- if (err != NULL) {

diff --git a/dev-python/hiredis/files/hiredis-1.0.1-system-libs.patch 
b/dev-python/hiredis/files/hiredis-1.0.1-system-libs.patch
deleted file mode 100644
index c11d0baa563..000
--- a/dev-python/hiredis/files/hiredis-1.0.1-system-libs.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -Nur hiredis-1.0.1.orig/setup.py hiredis-1.0.1/setup.py
 hiredis-1.0.1.orig/setup.py2019-11-13 11:38:29.0 +0100
-+++ hiredis-1.0.1/setup.py 2020-03-19 08:18:53.414214592 +0100
-@@ -11,9 +11,8 @@
-   return module.__version__
- 
- ext = Extension("hiredis.hiredis",
--  sources=sorted(glob.glob("src/*.c") +
-- ["vendor/hiredis/%s.c" % src for src in ("read", "sds")]),
--  include_dirs=["vendor"])
-+  sources=sorted(glob.glob("src/*.c")),
-+  libraries=["hiredis"])
- 
- setup(
-   name="hiredis",

diff --git a/dev-python/hiredis/hiredis-1.1.0.ebuild 
b/dev-python/hiredis/hiredis-1.1.0.ebuild
deleted file mode 100644
index 68ec424e3ae..000
--- a/dev-python/hiredis/hiredis-1.1.0.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python extension that wraps hiredis"
-HOMEPAGE="https://github.com/redis/hiredis-py/;
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 ~arm x86"
-IUSE="system-libs"
-
-DEPEND="system-libs? ( dev-libs/hiredis:0/0.14 )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   use system-libs && PATCHES+=(
-   "${FILESDIR}"/${PN}-1.0.1-system-libs.patch
-   "${FILESDIR}"/${PN}-1.0.1-api-0.14.patch
-   )
-   default
-}
-
-python_test() {
-   cd test || die
-   "${EPYTHON}" -m unittest reader.ReaderTest || die "tests failed"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/hiredis/files/, dev-python/hiredis/

2021-06-26 Thread Sven Wegener
commit: bfa0b339d6094863dd89316d742775398880d483
Author: Sven Wegener  gentoo  org>
AuthorDate: Sat Jun 26 21:41:08 2021 +
Commit: Sven Wegener  gentoo  org>
CommitDate: Sat Jun 26 21:41:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfa0b339

dev-python/hiredis: Version bump to 2.0.0

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Sven Wegener  gentoo.org>

 dev-python/hiredis/Manifest|  1 +
 .../hiredis/files/hiredis-2.0.0-system-libs.patch  | 14 ++
 dev-python/hiredis/hiredis-2.0.0.ebuild| 31 ++
 3 files changed, 46 insertions(+)

diff --git a/dev-python/hiredis/Manifest b/dev-python/hiredis/Manifest
index 3504fdc829a..5f1ab167b26 100644
--- a/dev-python/hiredis/Manifest
+++ b/dev-python/hiredis/Manifest
@@ -1 +1,2 @@
 DIST hiredis-1.1.0.tar.gz 54620 BLAKE2B 
9991745d277e87efe836c1c8eabb2016ce401e2be52c7e1b3a154350776fae6fd3c49e3096da57231e42c57bf36ba692ce26bc993d0923b5246376d8694ad058
 SHA512 
ad37868376de91303c15ffe6109dc7fadb4f458efdd44b7ddc0a410937a389b8e062ab7d36b1aec3fe324ecafe6b1e5e6b92f547cbf619251dad22a28e02ee9c
+DIST hiredis-2.0.0.tar.gz 75807 BLAKE2B 
dc7535f117c8ecfb2c924fe44a1cba2f02271c544588249de6794ce3aec27f66038ecb9f6364ca87b71f66ba13870a3be192eb79c1f360d2eb6dcb6dcae41caa
 SHA512 
b9a313acdd00676dc046713a81bbf4336959f49f09bd2828997c23ca41259935047c657a4b6f81913715141a75fb6bbe7fc4429c7a5b0f4bc3d5de66b9cfa909

diff --git a/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch 
b/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch
new file mode 100644
index 000..74f14cdc00b
--- /dev/null
+++ b/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch
@@ -0,0 +1,14 @@
+--- hiredis-2.0.0/setup.py
 hiredis-2.0.0/setup.py
+@@ -11,9 +11,8 @@
+   return module.__version__
+ 
+ ext = Extension("hiredis.hiredis",
+-  sources=sorted(glob.glob("src/*.c") +
+- ["vendor/hiredis/%s.c" % src for src in ("alloc", "read", 
"sds")]),
+-  include_dirs=["vendor"])
++  sources=sorted(glob.glob("src/*.c")),
++  libraries=["hiredis"])
+ 
+ setup(
+   name="hiredis",

diff --git a/dev-python/hiredis/hiredis-2.0.0.ebuild 
b/dev-python/hiredis/hiredis-2.0.0.ebuild
new file mode 100644
index 000..c2881e5aae3
--- /dev/null
+++ b/dev-python/hiredis/hiredis-2.0.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python extension that wraps hiredis"
+HOMEPAGE="https://github.com/redis/hiredis-py/;
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="system-libs"
+
+DEPEND="system-libs? ( dev-libs/hiredis:0/1.0.0 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   use system-libs && PATCHES+=(
+   "${FILESDIR}"/${P}-system-libs.patch
+   )
+   default
+}
+
+python_test() {
+   cd test || die
+   "${EPYTHON}" -m unittest reader.ReaderTest || die "tests failed"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/hiredis/files/

2020-06-01 Thread Aaron Bauman
commit: 2faeb749e92da02b2bb0d93b1ab0ea051863517b
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Tue May 19 19:20:08 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Tue Jun  2 04:27:59 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2faeb749

dev-python/hiredis: remove unused patches

Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Aaron Bauman  gentoo.org>

 .../hiredis/files/hiredis-0.2.0-api-0.14.patch | 32 --
 .../files/hiredis-0.2.0-r1-system-libs.patch   | 26 --
 2 files changed, 58 deletions(-)

diff --git a/dev-python/hiredis/files/hiredis-0.2.0-api-0.14.patch 
b/dev-python/hiredis/files/hiredis-0.2.0-api-0.14.patch
deleted file mode 100644
index c957ad7aa29..000
--- a/dev-python/hiredis/files/hiredis-0.2.0-api-0.14.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff -Nur hiredis-0.2.0.orig/src/reader.c hiredis-0.2.0/src/reader.c
 hiredis-0.2.0.orig/src/reader.c2015-04-02 23:49:10.0 +0200
-+++ hiredis-0.2.0/src/reader.c 2020-04-01 13:26:50.504058251 +0200
-@@ -157,7 +157,7 @@
- };
- 
- static void Reader_dealloc(hiredis_ReaderObject *self) {
--redisReplyReaderFree(self->reader);
-+redisReaderFree(self->reader);
- if (self->encoding)
- free(self->encoding);
- Py_XDECREF(self->protocolErrorClass);
-@@ -267,7 +267,7 @@
-   goto error;
- }
- 
--redisReplyReaderFeed(self->reader, (char *)buf.buf + off, len);
-+redisReaderFeed(self->reader, (char *)buf.buf + off, len);
- PyBuffer_Release();
- Py_RETURN_NONE;
- 
-@@ -281,8 +281,8 @@
- PyObject *err;
- char *errstr;
- 
--if (redisReplyReaderGetReply(self->reader, (void**)) == REDIS_ERR) {
--errstr = redisReplyReaderGetError(self->reader);
-+if (redisReaderGetReply(self->reader, (void**)) == REDIS_ERR) {
-+errstr = redisReaderGetError(self->reader);
- /* protocolErrorClass might be a callable. call it, then use it's 
type */
- err = createError(self->protocolErrorClass, errstr, strlen(errstr));
- obj = PyObject_Type(err);

diff --git a/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch 
b/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch
deleted file mode 100644
index 19d4bd8598f..000
--- a/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff -ur hiredis-0.2.0.orig/setup.py hiredis-0.2.0/setup.py
 hiredis-0.2.0.orig/setup.py2015-04-03 16:08:45.0 +0200
-+++ hiredis-0.2.0/setup.py 2018-04-22 16:57:15.966520939 +0200
-@@ -40,12 +40,11 @@
- # supported Python versions is worse...
- #
- # Also see: https://github.com/pietern/hiredis-py/issues/15
--lib = ("hiredis_for_hiredis_py", {
--  "sources": ["vendor/hiredis/%s.c" % src for src in ("read", "sds")]})
- 
- ext = Extension("hiredis.hiredis",
-   sources=glob.glob("src/*.c"),
--  include_dirs=["vendor"])
-+  libraries=["hiredis"],
-+)
- 
- setup(
-   name="hiredis",
-@@ -57,7 +56,6 @@
-   keywords=["Redis"],
-   license="BSD",
-   packages=["hiredis"],
--  libraries=[lib],
-   ext_modules=[ext],
- 
-   # Override "install_lib" command



[gentoo-commits] repo/gentoo:master commit in: dev-python/hiredis/files/

2019-06-17 Thread Aaron Bauman
commit: 406d8e2a35a66a18173928b6e18eaf22ad4d41e9
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Tue Jun  4 21:46:31 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Tue Jun 18 00:34:56 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=406d8e2a

dev-python/hiredis: remove unused patch

Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12193
Signed-off-by: Aaron Bauman  gentoo.org>

 .../hiredis/files/hiredis-0.2.0-system-libs.patch  | 28 --
 1 file changed, 28 deletions(-)

diff --git a/dev-python/hiredis/files/hiredis-0.2.0-system-libs.patch 
b/dev-python/hiredis/files/hiredis-0.2.0-system-libs.patch
deleted file mode 100644
index 6cd22292deb..000
--- a/dev-python/hiredis/files/hiredis-0.2.0-system-libs.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Remove vendor and var 'lib' from setup.py
-diff -u hiredis-0.2.0.orig/setup.py hiredis-0.2.0/setup.py
 setup.py   2015-06-21 11:47:28.796472027 +0800
-+++ setup.py   2015-06-21 11:49:53.047949803 +0800
-@@ -40,12 +40,9 @@
- # supported Python versions is worse...
- #
- # Also see: https://github.com/pietern/hiredis-py/issues/15
--lib = ("hiredis_for_hiredis_py", {
--  "sources": ["vendor/hiredis/%s.c" % src for src in ("read", "sds")]})
- 
- ext = Extension("hiredis.hiredis",
--  sources=glob.glob("src/*.c"),
--  include_dirs=["vendor"])
-+  sources=glob.glob("src/*.c"))
- 
- setup(
-   name="hiredis",
-@@ -57,7 +54,6 @@
-   keywords=["Redis"],
-   license="BSD",
-   packages=["hiredis"],
--  libraries=[lib],
-   ext_modules=[ext],
- 
-   # Override "install_lib" command
-Common subdirectories: hiredis-0.2.0.orig/src and hiredis-0.2.0/src
-Common subdirectories: hiredis-0.2.0.orig/vendor and hiredis-0.2.0/vendor



[gentoo-commits] repo/gentoo:master commit in: dev-python/hiredis/files/, dev-python/hiredis/

2018-06-24 Thread Pacho Ramos
commit: 64b64fac141a31ed4dabc2790c495f2197393214
Author: Pacho Ramos  gentoo  org>
AuthorDate: Sun Jun 24 13:12:16 2018 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Sun Jun 24 13:14:09 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64b64fac

dev-python/hiredis: Fix linking (#653790 by Ștefan Talpalaru)

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../files/hiredis-0.2.0-r1-system-libs.patch   | 26 +
 dev-python/hiredis/hiredis-0.2.0-r1.ebuild | 27 ++
 2 files changed, 53 insertions(+)

diff --git a/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch 
b/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch
new file mode 100644
index 000..19d4bd8598f
--- /dev/null
+++ b/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch
@@ -0,0 +1,26 @@
+diff -ur hiredis-0.2.0.orig/setup.py hiredis-0.2.0/setup.py
+--- hiredis-0.2.0.orig/setup.py2015-04-03 16:08:45.0 +0200
 hiredis-0.2.0/setup.py 2018-04-22 16:57:15.966520939 +0200
+@@ -40,12 +40,11 @@
+ # supported Python versions is worse...
+ #
+ # Also see: https://github.com/pietern/hiredis-py/issues/15
+-lib = ("hiredis_for_hiredis_py", {
+-  "sources": ["vendor/hiredis/%s.c" % src for src in ("read", "sds")]})
+ 
+ ext = Extension("hiredis.hiredis",
+   sources=glob.glob("src/*.c"),
+-  include_dirs=["vendor"])
++  libraries=["hiredis"],
++)
+ 
+ setup(
+   name="hiredis",
+@@ -57,7 +56,6 @@
+   keywords=["Redis"],
+   license="BSD",
+   packages=["hiredis"],
+-  libraries=[lib],
+   ext_modules=[ext],
+ 
+   # Override "install_lib" command

diff --git a/dev-python/hiredis/hiredis-0.2.0-r1.ebuild 
b/dev-python/hiredis/hiredis-0.2.0-r1.ebuild
new file mode 100644
index 000..c3bd6074380
--- /dev/null
+++ b/dev-python/hiredis/hiredis-0.2.0-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python extension that wraps hiredis"
+HOMEPAGE="https://github.com/pietern/hiredis-py;
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/hiredis-0.13.1"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-r1-system-libs.patch )
+
+python_compile() {
+   python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
+
+   distutils-r1_python_compile
+}