public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pylibmc] epel10.2: add upstream patch to fix build
@ 2026-09-25 17:45 remi
0 siblings, 0 replies; only message in thread
From: remi @ 2026-09-25 17:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pylibmc
Branch : epel10.2
Commit : 4030b4cf951cfaff908aba86c271417b98fd59fe
Author : remi <fedora@famillecollet.com>
Date : 2012-04-22T08:44:44+02:00
Stats : +45/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pylibmc/c/4030b4cf951cfaff908aba86c271417b98fd59fe?branch=epel10.2
Log:
add upstream patch to fix build
---
diff --git a/pylibmc-build.patch b/pylibmc-build.patch
new file mode 100644
index 0000000..98b8ba0
--- /dev/null
+++ b/pylibmc-build.patch
@@ -0,0 +1,38 @@
+--- _pylibmcmodule.c.orig 2012-04-22 08:33:26.000000000 +0200
++++ _pylibmcmodule.c 2012-04-22 08:40:30.000000000 +0200
+@@ -65,7 +65,7 @@
+
+ static void PylibMC_ClientType_dealloc(PylibMC_Client *self) {
+ if (self->mc != NULL) {
+-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
++#if LIBMEMCACHED_WITH_SASL_SUPPORT
+ if (self->sasl_set) {
+ memcached_destroy_sasl_auth_data(self->mc);
+ }
+@@ -98,7 +98,7 @@
+ /* setup sasl */
+ if (user != NULL || pass != NULL) {
+
+-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
++#if LIBMEMCACHED_WITH_SASL_SUPPORT
+ if (user == NULL || pass == NULL) {
+ PyErr_SetString(PyExc_TypeError, "SASL requires both username and password");
+ goto error;
+@@ -2014,7 +2014,7 @@
+ }
+
+ static int _init_sasl(void) {
+-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
++#if LIBMEMCACHED_WITH_SASL_SUPPORT
+ int rc;
+
+ /* sasl_client_init needs to be called once before using SASL, and
+@@ -2163,7 +2163,7 @@
+ PyModule_AddStringConstant(module,
+ "libmemcached_version", LIBMEMCACHED_VERSION_STRING);
+
+-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
++#if LIBMEMCACHED_WITH_SASL_SUPPORT
+ PyModule_ADD_REF(module, "support_sasl", Py_True);
+ #else
+ PyModule_ADD_REF(module, "support_sasl", Py_False);
diff --git a/python-pylibmc.spec b/python-pylibmc.spec
index 977a2b8..955073c 100644
--- a/python-pylibmc.spec
+++ b/python-pylibmc.spec
@@ -15,6 +15,9 @@ URL: http://sendapatch.se/projects/pylibmc/
# git archive --format=tar HEAD | xz > {name}-{version}.{git_date}git{git_version}.tar.xz
Source0: %{name}-%{version}.%{git_date}git%{git_version}.tar.xz
+# https://github.com/lericson/pylibmc/commit/013ba5f610951d6c322a99d780aca6713f314140
+Patch0: pylibmc-build.patch
+
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: libmemcached-devel
@@ -29,6 +32,9 @@ so that applications can drop-in replace it.
%prep
%setup -q -cn %{name}
+%patch0 -p0 -b .fixbuild
+
+
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%{?filter_setup:
@@ -51,6 +57,7 @@ chmod 755 $RPM_BUILD_ROOT%{python_sitearch}/_pylibmc.so
%changelog
* Sun Apr 22 2012 Remi Collet <remi@fedoraproject.org> - 1.2.0-7.20110805gitf01c31
- rebuild against libmemcached.so.10
+- add upstream patch to fix build
* Sat Mar 03 2012 Remi Collet <remi@fedoraproject.org> - 1.2.0-6.20110805gitf01c31
- rebuild against libmemcached.so.9
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-25 17:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 17:45 [rpms/python-pylibmc] epel10.2: add upstream patch to fix build remi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox