public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: remi <fedora@famillecollet.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pylibmc] epel10.2: add upstream patch to fix build
Date: Fri, 25 Sep 2026 17:45:39 GMT	[thread overview]
Message-ID: <179035833900.1.1997915851634067287.rpms-python-pylibmc-4030b4cf951c@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-09-25 17:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179035833900.1.1997915851634067287.rpms-python-pylibmc-4030b4cf951c@fedoraproject.org \
    --to=fedora@famillecollet.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox