Hello community,
here is the log from the commit of package python-setproctitle for openSUSE:Factory checked in at 2013-11-27 15:32:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-setproctitle (Old)
and /work/SRC/openSUSE:Factory/.python-setproctitle.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-setproctitle"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-setproctitle/python-setproctitle.changes 2013-09-16 16:35:31.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-setproctitle.new/python-setproctitle.changes 2013-11-27 15:32:14.000000000 +0100
@@ -1,0 +2,7 @@
+Tue Nov 19 17:40:11 UTC 2013 - p.drouand@gmail.com
+
+- Update to version 1.1.8
+ + Added support for Python "diehard" 2.4.
+ + Fixed build on Mac OS X 10.9 Maverick (issue #27).
+
+-------------------------------------------------------------------
Old:
----
setproctitle-1.1.7.tar.gz
New:
----
setproctitle-1.1.8.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-setproctitle.spec ++++++
--- /var/tmp/diff_new_pack.fpjHxE/_old 2013-11-27 15:32:14.000000000 +0100
+++ /var/tmp/diff_new_pack.fpjHxE/_new 2013-11-27 15:32:14.000000000 +0100
@@ -17,7 +17,7 @@
Name: python-setproctitle
-Version: 1.1.7
+Version: 1.1.8
Release: 0
Summary: Python module to allow customization of the process title
License: BSD-3-Clause
++++++ setproctitle-1.1.7.tar.gz -> setproctitle-1.1.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/HISTORY.rst new/setproctitle-1.1.8/HISTORY.rst
--- old/setproctitle-1.1.7/HISTORY.rst 2013-02-20 00:34:08.000000000 +0100
+++ new/setproctitle-1.1.8/HISTORY.rst 2013-10-23 23:35:03.000000000 +0200
@@ -1,6 +1,13 @@
Releases history
----------------
+Version 1.1.8
+~~~~~~~~~~~~~
+
+- Added support for Python "diehard" 2.4.
+- Fixed build on Mac OS X 10.9 Maverick (issue #27).
+
+
Version 1.1.7
~~~~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/MANIFEST new/setproctitle-1.1.8/MANIFEST
--- old/setproctitle-1.1.7/MANIFEST 2013-02-20 00:44:08.000000000 +0100
+++ new/setproctitle-1.1.8/MANIFEST 1970-01-01 01:00:00.000000000 +0100
@@ -1,20 +0,0 @@
-# file GENERATED by distutils, do NOT edit
-COPYRIGHT
-HISTORY.rst
-MANIFEST
-Makefile
-README.rst
-setup.py
-src/c.h
-src/setproctitle.c
-src/spt.h
-src/spt_config.h
-src/spt_debug.c
-src/spt_python.h
-src/spt_setup.c
-src/spt_setup.h
-src/spt_status.c
-src/spt_status.h
-src/strlcpy.c
-tests/pyrun.c
-tests/setproctitle_test.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/PKG-INFO new/setproctitle-1.1.8/PKG-INFO
--- old/setproctitle-1.1.7/PKG-INFO 2013-02-20 00:44:08.000000000 +0100
+++ new/setproctitle-1.1.8/PKG-INFO 2013-10-23 23:53:32.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: setproctitle
-Version: 1.1.7
+Version: 1.1.8
Summary: A library to allow customization of the process title.
Home-page: http://code.google.com/p/py-setproctitle/
Author: Daniele Varrazzo
@@ -142,6 +142,13 @@
Releases history
----------------
+ Version 1.1.8
+ ~~~~~~~~~~~~~
+
+ - Added support for Python "diehard" 2.4.
+ - Fixed build on Mac OS X 10.9 Maverick (issue #27).
+
+
Version 1.1.7
~~~~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/setup.py new/setproctitle-1.1.8/setup.py
--- old/setproctitle-1.1.7/setup.py 2013-02-20 00:34:08.000000000 +0100
+++ new/setproctitle-1.1.8/setup.py 2013-10-23 23:43:51.000000000 +0200
@@ -2,10 +2,10 @@
"""
setproctitle setup script.
-Copyright (c) 2009-2012 Daniele Varrazzo
+Copyright (c) 2009-2013 Daniele Varrazzo
"""
-VERSION = '1.1.7'
+VERSION = '1.1.8'
import os
import re
@@ -52,7 +52,7 @@
'src/spt_debug.c',
'src/spt_setup.c',
'src/spt_status.c',
- 'src/strlcpy.c', # TODO: not needed on some platform
+ 'src/spt_strlcpy.c',
])
# patch distutils if it can't cope with the "classifiers" or
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/src/c.h new/setproctitle-1.1.8/src/c.h
--- old/setproctitle-1.1.7/src/c.h 2012-02-07 22:44:32.000000000 +0100
+++ new/setproctitle-1.1.8/src/c.h 2013-10-23 23:35:03.000000000 +0200
@@ -29,9 +29,8 @@
#include
-#if !HAVE_DECL_STRLCPY
-HIDDEN extern size_t strlcpy(char *dst, const char *src, size_t siz);
-#endif
+/* Let's use our version of strlcpy to avoid portability problems */
+size_t spt_strlcpy(char *dst, const char *src, size_t siz);
#ifdef WIN32
#include
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/src/spt_config.h new/setproctitle-1.1.8/src/spt_config.h
--- old/setproctitle-1.1.7/src/spt_config.h 2012-02-07 22:44:32.000000000 +0100
+++ new/setproctitle-1.1.8/src/spt_config.h 2013-10-23 23:35:03.000000000 +0200
@@ -13,10 +13,6 @@
/* Define to 1 if you have the header file. */
/* #undef HAVE_SYS_PRCTL_H */
-/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
- don't. */
-#define HAVE_DECL_STRLCPY 0
-
/* GCC 4.0 and later have support for specifying symbol visibility */
#if __GNUC__ >= 4 && !defined(__MINGW32__)
# define HIDDEN __attribute__((visibility("hidden")))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/src/spt_python.h new/setproctitle-1.1.8/src/spt_python.h
--- old/setproctitle-1.1.7/src/spt_python.h 2013-02-20 00:34:08.000000000 +0100
+++ new/setproctitle-1.1.8/src/spt_python.h 2013-03-26 10:26:07.000000000 +0100
@@ -54,6 +54,10 @@
#define Bytes_Size PyString_Size
#define Bytes_AsString PyString_AsString
+#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
+typedef int Py_ssize_t;
+#endif
+
#endif /* IS_PY3K > 2 */
#endif /* SPT_PYTHON_H */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/src/spt_status.c new/setproctitle-1.1.8/src/spt_status.c
--- old/setproctitle-1.1.7/src/spt_status.c 2012-02-28 02:31:56.000000000 +0100
+++ new/setproctitle-1.1.8/src/spt_status.c 2013-10-23 23:35:03.000000000 +0200
@@ -336,7 +336,7 @@
#endif
/* Update ps_buffer to contain both fixed part and activity */
- strlcpy(ps_buffer + ps_buffer_fixed_size, activity,
+ spt_strlcpy(ps_buffer + ps_buffer_fixed_size, activity,
ps_buffer_size - ps_buffer_fixed_size);
/* Transmit new setting to kernel, if necessary */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/src/spt_strlcpy.c new/setproctitle-1.1.8/src/spt_strlcpy.c
--- old/setproctitle-1.1.7/src/spt_strlcpy.c 1970-01-01 01:00:00.000000000 +0100
+++ new/setproctitle-1.1.8/src/spt_strlcpy.c 2013-10-23 23:35:03.000000000 +0200
@@ -0,0 +1,71 @@
+/*-------------------------------------------------------------------------
+ *
+ * strlcpy.c
+ * strncpy done right
+ *
+ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
+ *
+ *
+ * IDENTIFICATION
+ * $PostgreSQL: pgsql/src/port/strlcpy.c,v 1.4 2007/01/05 22:20:03 momjian Exp $
+ *
+ * This file was taken from OpenBSD and is used on platforms that don't
+ * provide strlcpy(). The OpenBSD copyright terms follow.
+ *-------------------------------------------------------------------------
+ */
+
+/* $OpenBSD: strlcpy.c,v 1.11 2006/05/05 15:27:38 millert Exp $ */
+
+/*
+ * Copyright (c) 1998 Todd C. Miller
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include "c.h"
+
+
+/*
+ * Copy src to string dst of size siz. At most siz-1 characters
+ * will be copied. Always NUL terminates (unless siz == 0).
+ * Returns strlen(src); if retval >= siz, truncation occurred.
+ * Function creation history: http://www.gratisoft.us/todd/papers/strlcpy.html
+ */
+size_t
+spt_strlcpy(char *dst, const char *src, size_t siz)
+{
+ char *d = dst;
+ const char *s = src;
+ size_t n = siz;
+
+ /* Copy as many bytes as will fit */
+ if (n != 0)
+ {
+ while (--n != 0)
+ {
+ if ((*d++ = *s++) == '\0')
+ break;
+ }
+ }
+
+ /* Not enough room in dst, add NUL and traverse rest of src */
+ if (n == 0)
+ {
+ if (siz != 0)
+ *d = '\0'; /* NUL-terminate dst */
+ while (*s++)
+ ;
+ }
+
+ return (s - src - 1); /* count does not include NUL */
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setproctitle-1.1.7/src/strlcpy.c new/setproctitle-1.1.8/src/strlcpy.c
--- old/setproctitle-1.1.7/src/strlcpy.c 2012-02-07 22:44:32.000000000 +0100
+++ new/setproctitle-1.1.8/src/strlcpy.c 1970-01-01 01:00:00.000000000 +0100
@@ -1,71 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * strlcpy.c
- * strncpy done right
- *
- * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
- *
- *
- * IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/strlcpy.c,v 1.4 2007/01/05 22:20:03 momjian Exp $
- *
- * This file was taken from OpenBSD and is used on platforms that don't
- * provide strlcpy(). The OpenBSD copyright terms follow.
- *-------------------------------------------------------------------------
- */
-
-/* $OpenBSD: strlcpy.c,v 1.11 2006/05/05 15:27:38 millert Exp $ */
-
-/*
- * Copyright (c) 1998 Todd C. Miller
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include "c.h"
-
-
-/*
- * Copy src to string dst of size siz. At most siz-1 characters
- * will be copied. Always NUL terminates (unless siz == 0).
- * Returns strlen(src); if retval >= siz, truncation occurred.
- * Function creation history: http://www.gratisoft.us/todd/papers/strlcpy.html
- */
-size_t
-strlcpy(char *dst, const char *src, size_t siz)
-{
- char *d = dst;
- const char *s = src;
- size_t n = siz;
-
- /* Copy as many bytes as will fit */
- if (n != 0)
- {
- while (--n != 0)
- {
- if ((*d++ = *s++) == '\0')
- break;
- }
- }
-
- /* Not enough room in dst, add NUL and traverse rest of src */
- if (n == 0)
- {
- if (siz != 0)
- *d = '\0'; /* NUL-terminate dst */
- while (*s++)
- ;
- }
-
- return (s - src - 1); /* count does not include NUL */
-}
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org