Ticket #32518: patch-removed-pyNN-mysql.diff

File patch-removed-pyNN-mysql.diff, 7.4 KB (added by pixilla (Bradley Giesbrecht), 12 years ago)
  • python/py25-mysql/files/patch-_mysql.c.diff

     
    1 --- _mysql.c.orig       2007-02-27 18:35:56.000000000 -0800
    2 +++ _mysql.c    2007-11-25 21:54:09.000000000 -0800
    3 @@ -34,9 +34,6 @@
    4  #else
    5  #include "my_config.h"
    6  #endif
    7 -#ifndef uint
    8 -#define uint unsigned int
    9 -#endif
    10  #include "mysql.h"
    11  #include "mysqld_error.h"
    12  #include "errmsg.h"
    13 @@ -481,8 +478,8 @@
    14  #endif
    15         char *host = NULL, *user = NULL, *passwd = NULL,
    16                 *db = NULL, *unix_socket = NULL;
    17 -       uint port = MYSQL_PORT;
    18 -       uint client_flag = 0;
    19 +       unsigned int port = MYSQL_PORT;
    20 +       unsigned int client_flag = 0;
    21         static char *kwlist[] = { "host", "user", "passwd", "db", "port",
    22                                   "unix_socket", "conv",
    23                                   "connect_timeout", "compress",
  • python/py25-mysql/files/patch-setup_posix.py.diff

     
    1 --- setup_posix.py.orig 2007-05-06 12:30:17.000000000 -0700
    2 +++ setup_posix.py      2007-05-06 12:31:30.000000000 -0700
    3 @@ -23,7 +23,7 @@
    4          if ret/256 > 1:
    5              raise EnvironmentError, "%s not found" % mysql_config.path
    6      return data
    7 -mysql_config.path = "mysql_config"
    8 +mysql_config.path = "mysql_config5"
    9  
    10  def get_config():
    11      import os, sys
  • python/py25-mysql/Portfile

     
    1 # $Id$
    2 
    3 PortSystem 1.0
    4 PortGroup python25 1.0
    5 
    6 name                            py25-mysql
    7 version                         1.2.2
    8 categories                      python devel databases
    9 maintainers                     nomaintainer
    10 description                     Python interface to mysql
    11 long_description        A package containing a Python module that allows you to \
    12                                         connect to MySQL databases
    13 platforms                       darwin
    14 homepage                        http://sourceforge.net/projects/mysql-python/
    15 master_sites            sourceforge:mysql-python
    16 distname                        MySQL-python-${version}
    17 checksums                       md5 532268f02870bea18c1d465e88afff30
    18 patchfiles                      patch-_mysql.c.diff
    19 
    20 depends_lib-append      port:py25-distribute
    21 
    22 variant mysql4 conflicts mysql5 description {Build with MySQL 4} {
    23         depends_lib-append      port:mysql4
    24 }
    25 
    26 variant mysql5 conflicts mysql4 description {Build with MySQL 5} {
    27         patchfiles-append       patch-setup_posix.py.diff
    28         depends_lib-append      path:bin/mysql_config5:mysql5
    29 }
    30 
    31 if {![variant_isset mysql4]} {
    32         default_variants +mysql5
    33 }
    34 
    35 pre-fetch {
    36         if {![variant_isset mysql4] && ![variant_isset mysql5]} {
    37                 return -code error "you must select either mysql4 or mysql5"
    38         }
    39 }
  • python/py26-mysql/files/patch-setup_posix.py.diff

     
    1 --- setup_posix.py.orig 2007-05-06 12:30:17.000000000 -0700
    2 +++ setup_posix.py      2007-05-06 12:31:30.000000000 -0700
    3 @@ -23,7 +23,7 @@
    4          if ret/256 > 1:
    5              raise EnvironmentError, "%s not found" % mysql_config.path
    6      return data
    7 -mysql_config.path = "mysql_config"
    8 +mysql_config.path = "mysql_config5"
    9  
    10  def get_config():
    11      import os, sys
  • python/py26-mysql/Portfile

     
    1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    2 # $Id$
    3 
    4 PortSystem          1.0
    5 PortGroup           python26 1.0
    6 
    7 name                py26-mysql
    8 version             1.2.3
    9 revision            0
    10 categories          python devel databases
    11 platforms           darwin
    12 
    13 maintainers         nomaintainer
    14 
    15 description         Python interface to MySQL
    16 long_description    A package containing a Python module that allows you to \
    17                     connect to MySQL databases.
    18 
    19 homepage            http://sourceforge.net/projects/mysql-python/
    20 master_sites        sourceforge:mysql-python
    21 
    22 distname            MySQL-python-${version}
    23 
    24 checksums           md5     215eddb6d853f6f4be5b4afc4154292f \
    25                     sha1    3511bb8c57c6016eeafa531d5c3ea4b548915e3c \
    26                     rmd160  e394e7bf08127068795aeebfbaea7dc3b2127c86
    27 
    28 depends_lib-append  port:py26-distribute
    29 
    30 variant mysql4 conflicts mysql5 description {Build with MySQL 4} {
    31     depends_lib-append  port:mysql4
    32 }
    33 
    34 variant mysql5 conflicts mysql4 description {Build with MySQL 5} {
    35     patchfiles-append   patch-setup_posix.py.diff
    36     depends_lib-append  path:bin/mysql_config5:mysql5
    37 }
    38 
    39 if {![variant_isset mysql4]} {
    40     default_variants +mysql5
    41 }
    42 
    43 pre-fetch {
    44     if {![variant_isset mysql4] && ![variant_isset mysql5]} {
    45         return -code error "you must select either mysql4 or mysql5"
    46     }
    47 }
  • python/py26-mysql/files/patch-setup_posix.py.diff

     
    1 --- setup_posix.py.orig 2007-05-06 12:30:17.000000000 -0700
    2 +++ setup_posix.py      2007-05-06 12:31:30.000000000 -0700
    3 @@ -23,7 +23,7 @@
    4          if ret/256 > 1:
    5              raise EnvironmentError, "%s not found" % mysql_config.path
    6      return data
    7 -mysql_config.path = "mysql_config"
    8 +mysql_config.path = "mysql_config5"
    9  
    10  def get_config():
    11      import os, sys
  • python/py26-mysql/Portfile

     
    1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    2 # $Id$
    3 
    4 PortSystem          1.0
    5 PortGroup           python26 1.0
    6 
    7 name                py26-mysql
    8 version             1.2.3
    9 revision            0
    10 categories          python devel databases
    11 platforms           darwin
    12 
    13 maintainers         nomaintainer
    14 
    15 description         Python interface to MySQL
    16 long_description    A package containing a Python module that allows you to \
    17                     connect to MySQL databases.
    18 
    19 homepage            http://sourceforge.net/projects/mysql-python/
    20 master_sites        sourceforge:mysql-python
    21 
    22 distname            MySQL-python-${version}
    23 
    24 checksums           md5     215eddb6d853f6f4be5b4afc4154292f \
    25                     sha1    3511bb8c57c6016eeafa531d5c3ea4b548915e3c \
    26                     rmd160  e394e7bf08127068795aeebfbaea7dc3b2127c86
    27 
    28 depends_lib-append  port:py26-distribute
    29 
    30 variant mysql4 conflicts mysql5 description {Build with MySQL 4} {
    31     depends_lib-append  port:mysql4
    32 }
    33 
    34 variant mysql5 conflicts mysql4 description {Build with MySQL 5} {
    35     patchfiles-append   patch-setup_posix.py.diff
    36     depends_lib-append  path:bin/mysql_config5:mysql5
    37 }
    38 
    39 if {![variant_isset mysql4]} {
    40     default_variants +mysql5
    41 }
    42 
    43 pre-fetch {
    44     if {![variant_isset mysql4] && ![variant_isset mysql5]} {
    45         return -code error "you must select either mysql4 or mysql5"
    46     }
    47 }