Hello community,

here is the log from the commit of package i2c-tools for openSUSE:Factory 
checked in at 2015-12-13 09:37:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/i2c-tools (Old)
 and      /work/SRC/openSUSE:Factory/.i2c-tools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "i2c-tools"

Changes:
--------
--- /work/SRC/openSUSE:Factory/i2c-tools/i2c-tools.changes      2015-10-19 
22:14:29.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.i2c-tools.new/i2c-tools.changes 2015-12-13 
09:37:26.000000000 +0100
@@ -1,0 +2,8 @@
+Fri Nov 27 12:51:19 UTC 2015 - [email protected]
+
+- Update to version 3.1.2:
+  * Includes 1 backport we already had
+- Removed obsolete i2c-tools-r6250-ddr3-fix-ext-temp-refresh.diff
+  (upstream)
+
+-------------------------------------------------------------------

Old:
----
  i2c-tools-3.1.1.tar.bz2
  i2c-tools-3.1.1.tar.bz2.sig
  i2c-tools-r6250-ddr3-fix-ext-temp-refresh.diff

New:
----
  i2c-tools-3.1.2.tar.bz2
  i2c-tools-3.1.2.tar.bz2.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ i2c-tools.spec ++++++
--- /var/tmp/diff_new_pack.yKysah/_old  2015-12-13 09:37:27.000000000 +0100
+++ /var/tmp/diff_new_pack.yKysah/_new  2015-12-13 09:37:27.000000000 +0100
@@ -18,16 +18,18 @@
 
 Name:           i2c-tools
 Url:            http://www.lm-sensors.org/wiki/I2CTools
-Version:        3.1.1
+Version:        3.1.2
 Release:        0
 Summary:        A heterogeneous set of I2C tools for Linux
 License:        GPL-2.0+
 Group:          Development/Tools/Other
 Requires:       udev
 Recommends:     modules
-Source0:        
http://dl.lm-sensors.org/%{name}/releases/%{name}-%{version}.tar.bz2
-Source1:        
http://dl.lm-sensors.org/%{name}/releases/%{name}-%{version}.tar.bz2.sig
-Patch0:         i2c-tools-r6250-ddr3-fix-ext-temp-refresh.diff
+# lm-sensors.org is down for several months now
+#Source0:        
http://dl.lm-sensors.org/%{name}/releases/%{name}-%{version}.tar.bz2
+#Source1:        
http://dl.lm-sensors.org/%{name}/releases/%{name}-%{version}.tar.bz2.sig
+Source0:        %{name}-%{version}.tar.bz2
+Source1:        %{name}-%{version}.tar.bz2.sig
 Patch90:        i2c-tools-hackweek-9-dependencies.diff
 Patch91:        i2c-tools-hackweek-9-improve-DDR3-support.diff
 Patch92:        i2c-tools-r6053-Add-smbus-header.patch
@@ -51,7 +53,6 @@
 
 %prep
 %setup -q
-%patch0 -p1
 %patch90 -p1
 %patch91 -p1
 %patch92 -p1

++++++ i2c-tools-3.1.1.tar.bz2 -> i2c-tools-3.1.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i2c-tools-3.1.1/CHANGES new/i2c-tools-3.1.2/CHANGES
--- old/i2c-tools-3.1.1/CHANGES 2014-02-20 15:15:18.000000000 +0100
+++ new/i2c-tools-3.1.2/CHANGES 2015-06-17 12:11:19.000000000 +0200
@@ -1,6 +1,10 @@
 i2c-tools CHANGES
 -----------------
 
+3.1.2 (2015-06-17)
+  decode-dimms: Fix DDR3 extended temp range refresh rate decoding
+  py-smbus: Add support for python 3
+
 3.1.1 "Happy Birthday Pollux" (2014-02-20)
   decode-dimms: Decode module configuration type of DDR2 SDRAM
                 Decode bus width extension of DDR3 SDRAM
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i2c-tools-3.1.1/eeprom/decode-dimms 
new/i2c-tools-3.1.2/eeprom/decode-dimms
--- old/i2c-tools-3.1.1/eeprom/decode-dimms     2014-02-20 10:54:34.000000000 
+0100
+++ new/i2c-tools-3.1.2/eeprom/decode-dimms     2014-06-19 09:19:09.000000000 
+0200
@@ -48,7 +48,7 @@
 use constant LITTLEENDIAN      => "little-endian";
 use constant BIGENDIAN         => "big-endian";
 
-$revision = '$Revision: 6231 $ ($Date: 2014-02-20 10:54:34 +0100 (jeu. 20 
févr. 2014) $)';
+$revision = '$Revision: 6250 $ ($Date: 2014-06-19 09:19:09 +0200 (jeu. 19 juin 
2014) $)';
 $revision =~ s/\$\w+: (.*?) \$/$1/g;
 $revision =~ s/ \([^()]*\)//;
 
@@ -1289,8 +1289,9 @@
        printl("DLL-Off Mode supported?", ($bytes->[30] & 128) ? "Yes" : "No");
        printl("Operating temperature range", sprintf "0-%d degrees C",
                ($bytes->[31] & 1) ? 95 : 85);
-       printl("Refresh Rate in extended temp range",
-               ($bytes->[31] & 2) ? "2X" : "1X");
+       printl_cond($bytes->[31] & 1,
+                   "Refresh Rate in extended temp range",
+                   ($bytes->[31] & 2) ? "1X" : "2X");
        printl("Auto Self-Refresh?", ($bytes->[31] & 4) ? "Yes" : "No");
        printl("On-Die Thermal Sensor readout?",
                ($bytes->[31] & 8) ? "Yes" : "No");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i2c-tools-3.1.1/py-smbus/smbusmodule.c 
new/i2c-tools-3.1.2/py-smbus/smbusmodule.c
--- old/i2c-tools-3.1.1/py-smbus/smbusmodule.c  2014-02-20 10:56:05.000000000 
+0100
+++ new/i2c-tools-3.1.2/py-smbus/smbusmodule.c  2015-01-26 12:40:47.000000000 
+0100
@@ -92,7 +92,11 @@
        PyObject *ref = SMBus_close(self);
        Py_XDECREF(ref);
 
+#if PY_MAJOR_VERSION >= 3
+       Py_TYPE(self)->tp_free((PyObject *)self);
+#else
        self->ob_type->tp_free((PyObject *)self);
+#endif
 }
 
 #define MAXPATH 16
@@ -432,11 +436,19 @@
 
        for (ii = 0; ii < len; ii++) {
                PyObject *val = PyList_GET_ITEM(list, ii);
+#if PY_MAJOR_VERSION >= 3
+               if (!PyLong_Check(val)) {
+                       PyErr_SetString(PyExc_TypeError, msg);
+                       return 0; /* fail */
+               }
+               data->block[ii+1] = (__u8)PyLong_AS_LONG(val);
+#else
                if (!PyInt_Check(val)) {
                        PyErr_SetString(PyExc_TypeError, msg);
                        return 0; /* fail */
                }
                data->block[ii+1] = (__u8)PyInt_AS_LONG(val);
+#endif
        }
 
        return 1; /* success */
@@ -635,9 +647,14 @@
 };
 
 static PyTypeObject SMBus_type = {
+#if PY_MAJOR_VERSION >= 3
+       PyVarObject_HEAD_INIT(NULL, 0)
+       "SMBus",                        /* tp_name */
+#else
        PyObject_HEAD_INIT(NULL)
        0,                              /* ob_size */
        "smbus.SMBus",                  /* tp_name */
+#endif
        sizeof(SMBus),                  /* tp_basicsize */
        0,                              /* tp_itemsize */
        (destructor)SMBus_dealloc,      /* tp_dealloc */
@@ -676,24 +693,50 @@
        SMBus_new,                      /* tp_new */
 };
 
+#if PY_MAJOR_VERSION >= 3
+static struct PyModuleDef SMBusModule = {
+       PyModuleDef_HEAD_INIT,
+       "SMBus",                        /* m_name */
+       SMBus_module_doc,               /* m_doc */
+       -1,                             /* m_size */
+       NULL,                           /* m_methods */
+       NULL,                           /* m_reload */
+       NULL,                           /* m_traverse */
+       NULL,                           /* m_clear */
+       NULL,                           /* m_free */
+};
+#define INIT_RETURN(m) return m
+#define INIT_FNAME     PyInit_smbus
+#else
 static PyMethodDef SMBus_module_methods[] = {
        {NULL}
 };
+#define INIT_RETURN(m) return
+#define INIT_FNAME     initsmbus
+#endif
 
 #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
 #define PyMODINIT_FUNC void
 #endif
 PyMODINIT_FUNC
-initsmbus(void) 
+INIT_FNAME(void)
 {
        PyObject* m;
 
        if (PyType_Ready(&SMBus_type) < 0)
-               return;
+               INIT_RETURN(NULL);
 
+#if PY_MAJOR_VERSION >= 3
+       m = PyModule_Create(&SMBusModule);
+#else
        m = Py_InitModule3("smbus", SMBus_module_methods, SMBus_module_doc);
+#endif
+       if (m == NULL)
+               INIT_RETURN(NULL);
 
        Py_INCREF(&SMBus_type);
        PyModule_AddObject(m, "SMBus", (PyObject *)&SMBus_type);
+
+       INIT_RETURN(m);
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i2c-tools-3.1.1/version.h 
new/i2c-tools-3.1.2/version.h
--- old/i2c-tools-3.1.1/version.h       2014-02-20 15:15:18.000000000 +0100
+++ new/i2c-tools-3.1.2/version.h       2015-06-17 12:11:19.000000000 +0200
@@ -1 +1 @@
-#define VERSION "3.1.1"
+#define VERSION "3.1.2"


Reply via email to