Skip to contentSkip to conversation

package/i2c-tools: bump to version 3.1.2

PATCH Superseded Angelo Compagnucci 2 participants 2 messages Jun 17, 2015

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/i2c-tools: bump to version 3.1.2

This patch bumps version to 3.1.2 and adds support for the recently introduced python3 support for py-smbus.

---
 package/i2c-tools/i2c-tools.hash |  2 +-
 package/i2c-tools/i2c-tools.mk   | 13 ++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)
package/i2c-tools/i2c-tools.hash +1 -1
index a6c376f..c12ffe8 100644
@@ -1,2 +1,2 @@
 # locally computed hash
-sha256	14d4d7d60d1c12e43f2befe239c682a5c44c27682f153d4b58c1e392d2db1700  i2c-tools-3.1.1.tar.bz2
+sha256	db5e69f2e2a6e3aa2ecdfe6a5f490b149c504468770f58921c8c5b8a7860a441  i2c-tools-3.1.2.tar.bz2
package/i2c-tools/i2c-tools.mk +10 -3
index 6c156ca..5fe4a6f 100644
@@ -4,16 +4,23 @@
 #
 ################################################################################
 
-I2C_TOOLS_VERSION = 3.1.1
+I2C_TOOLS_VERSION = 3.1.2
 I2C_TOOLS_SOURCE = i2c-tools-$(I2C_TOOLS_VERSION).tar.bz2
 I2C_TOOLS_SITE = http://dl.lm-sensors.org/i2c-tools/releases
 I2C_TOOLS_LICENSE = GPLv2+, GPLv2 (py-smbus)
 I2C_TOOLS_LICENSE_FILES = COPYING
 
-# Build/install steps mirror the distutil python package type in the python package
-# infrastructure
 ifeq ($(BR2_PACKAGE_PYTHON),y)
 I2C_TOOLS_DEPENDENCIES += python
+endif
+
+ifeq ($(BR2_PACKAGE_PYTHON3),y)
+I2C_TOOLS_DEPENDENCIES += python3
+endif
+
+# Build/install steps mirror the distutil python package type in the python package
+# infrastructure
+ifneq ($(filter y,$(BR2_PACKAGE_PYTHON) $(BR2_PACKAGE_PYTHON3)),)
 # BASE_ENV taken from PKG_PYTHON_DISTUTILS_ENV in package/pkg-python.mk
 I2C_TOOLS_PYTHON_BASE_ENV = \
 	$(PKG_PYTHON_DISTUTILS_ENV) \
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 package/i2c-tools: bump to version 3.1.2

Hi Angelo,

Quoted 35 lines · Angelo Compagnucci

This patch bumps version to 3.1.2 and adds support for the recently introduced python3 support for py-smbus.

---
 package/i2c-tools/i2c-tools.hash |  2 +-
 package/i2c-tools/i2c-tools.mk   | 13 ++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)
package/i2c-tools/i2c-tools.hash +1 -1
index a6c376f..c12ffe8 100644
@@ -1,2 +1,2 @@
 # locally computed hash
-sha256 14d4d7d60d1c12e43f2befe239c682a5c44c27682f153d4b58c1e392d2db1700  i2c-tools-3.1.1.tar.bz2
+sha256 db5e69f2e2a6e3aa2ecdfe6a5f490b149c504468770f58921c8c5b8a7860a441  i2c-tools-3.1.2.tar.bz2
package/i2c-tools/i2c-tools.mk +1 -3
index 6c156ca..5fe4a6f 100644
@@ -4,16 +4,23 @@
 #
 ################################################################################
 
-I2C_TOOLS_VERSION = 3.1.1
+I2C_TOOLS_VERSION = 3.1.2
 I2C_TOOLS_SOURCE = i2c-tools-$(I2C_TOOLS_VERSION).tar.bz2
 I2C_TOOLS_SITE = http://dl.lm-sensors.org/i2c-tools/releases
 I2C_TOOLS_LICENSE = GPLv2+, GPLv2 (py-smbus)
 I2C_TOOLS_LICENSE_FILES = COPYING
 
-# Build/install steps mirror the distutil python package type in the python package
-# infrastructure
 ifeq ($(BR2_PACKAGE_PYTHON),y)

package/i2c-tools/i2c-tools.mk line 23

Quoted 10 lines
package/i2c-tools/i2c-tools.mk +9 -0
 I2C_TOOLS_DEPENDENCIES += python
+endif
+
+ifeq ($(BR2_PACKAGE_PYTHON3),y)
+I2C_TOOLS_DEPENDENCIES += python3
+endif
+
+# Build/install steps mirror the distutil python package type in the python package
+# infrastructure
+ifneq ($(filter y,$(BR2_PACKAGE_PYTHON) $(BR2_PACKAGE_PYTHON3)),)

Usually we would want to use 'ifeq' in this case. The usual syntax for this would be:

ifeq ($(BR2_PACKAGE_PYTHON) $(BR2_PACKAGE_PYTHON3),y)

This works because python and python3 can't be selected at the same time.

package/i2c-tools/i2c-tools.mk line 26

Quoted 3 lines
package/i2c-tools/i2c-tools.mk +0 -0
 # BASE_ENV taken from PKG_PYTHON_DISTUTILS_ENV in package/pkg-python.mk
 I2C_TOOLS_PYTHON_BASE_ENV = \
        $(PKG_PYTHON_DISTUTILS_ENV) \

Thanks,
-Ryan

Signature · 5 lines
Ryan Barnett / Sr Software Engineer
Airborne Information Systems / Security Systems and Software
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
ryan.barnett at rockwellcollins.com
www.rockwellcollins.com