Ticket #31929: dulwich-0.7.1-0.8.1.patch

File dulwich-0.7.1-0.8.1.patch, 4.1 KB (added by mail_ben_schmidt@…, 13 years ago)
  • python/py26-dulwich/Portfile

    diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-dulwich/Portfile python/py26-dulwich/Portfile
    old new  
    55PortGroup           python26 1.0
    66
    77name                py26-dulwich
    8 version             0.7.1
     8version             0.8.1
    99categories          python devel
    1010maintainers         yahoo.com.au:mail_ben_schmidt \
    1111                    openmaintainer
     
    2020license             GPL-2+
    2121distname            dulwich-${version}
    2222
    23 checksums           sha1    cfbeb7e83c4258f489ed2736a684190004c1733f \
    24                     rmd160  569a628854c2c29d14735acb15615a23fba14417
     23checksums           sha1    b98ad0bd668464767e0605b0ef50443ad54488f1 \
     24                    rmd160  c67e97225f7bbe5f7562acdaf4bb466fde912a9c
    2525
    2626patchfiles          patch-strnlen-lion.diff
    2727
  • python/py26-dulwich/files/patch-strnlen-lion.diff

    diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-dulwich/files/patch-strnlen-lion.diff python/py26-dulwich/files/patch-strnlen-lion.diff
    old new  
    1 --- dulwich/_objects.c  2011-04-12 16:03:58.000000000 -0400
    2 +++ dulwich/_objects.c  2011-07-15 17:04:29.000000000 -0400
     1--- dulwich/_objects.c~ 2011-11-06 13:52:35.000000000 +1100
     2+++ dulwich/_objects.c  2011-11-06 13:52:41.000000000 +1100
    33@@ -25,7 +25,7 @@
    44 typedef int Py_ssize_t;
    55 #endif
    66 
    77-#if defined(__MINGW32_VERSION) || defined(__APPLE__)
    88+#if defined(__MINGW32_VERSION) || (defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
    9  size_t strnlen(char *text, size_t maxlen)
     9 size_t rep_strnlen(char *text, size_t maxlen);
     10 size_t rep_strnlen(char *text, size_t maxlen)
    1011 {
    11         const char *last = memchr(text, '\0', maxlen);
  • python/py27-dulwich/Portfile

    diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py27-dulwich/Portfile python/py27-dulwich/Portfile
    old new  
    55PortGroup           python27 1.0
    66
    77name                py27-dulwich
    8 version             0.7.1
     8version             0.8.1
    99categories          python devel
    1010maintainers         nomaintainer
    1111description         Pure-Python Git Library
     
    1818license             GPL-2+
    1919distname            dulwich-${version}
    2020
    21 checksums           sha1    cfbeb7e83c4258f489ed2736a684190004c1733f \
    22                     rmd160  569a628854c2c29d14735acb15615a23fba14417
     21checksums           sha1    b98ad0bd668464767e0605b0ef50443ad54488f1 \
     22                    rmd160  c67e97225f7bbe5f7562acdaf4bb466fde912a9c
    2323
    2424patchfiles          patch-strnlen-lion.diff
    2525
  • python/py27-dulwich/files/patch-strnlen-lion.diff

    diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py27-dulwich/files/patch-strnlen-lion.diff python/py27-dulwich/files/patch-strnlen-lion.diff
    old new  
    1 --- dulwich/_objects.c  2011-04-12 16:03:58.000000000 -0400
    2 +++ dulwich/_objects.c  2011-07-15 17:04:29.000000000 -0400
     1--- dulwich/_objects.c~ 2011-11-06 13:52:35.000000000 +1100
     2+++ dulwich/_objects.c  2011-11-06 13:52:41.000000000 +1100
    33@@ -25,7 +25,7 @@
    44 typedef int Py_ssize_t;
    55 #endif
    66 
    77-#if defined(__MINGW32_VERSION) || defined(__APPLE__)
    88+#if defined(__MINGW32_VERSION) || (defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
    9  size_t strnlen(char *text, size_t maxlen)
     9 size_t rep_strnlen(char *text, size_t maxlen);
     10 size_t rep_strnlen(char *text, size_t maxlen)
    1011 {
    11         const char *last = memchr(text, '\0', maxlen);