From eea039963af2c37536193860a2a24e8407a7b00f Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Wed, 12 Apr 2017 16:03:30 -0500
Subject: [PATCH] chroot: one of my build boxes is running 3.4.x kernel, i need
 adafruit-beaglebone-io-python to be installed for 4.1.0+ devices

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 target/chroot/beagleboard.org-console-jessie.sh | 5 +----
 target/chroot/beagleboard.org-jessie.sh         | 5 +----
 target/chroot/beagleboard.org-stretch.sh        | 5 +----
 target/chroot/machinekit-jessie.sh              | 5 +----
 target/chroot/seeed-jessie.sh                   | 5 +----
 5 files changed, 5 insertions(+), 20 deletions(-)

diff --git a/target/chroot/beagleboard.org-console-jessie.sh b/target/chroot/beagleboard.org-console-jessie.sh
index 89db18109..a961d1510 100755
--- a/target/chroot/beagleboard.org-console-jessie.sh
+++ b/target/chroot/beagleboard.org-console-jessie.sh
@@ -187,15 +187,12 @@ install_pip_pkgs () {
 
 			if [ -f /usr/local/bin/pip ] ; then
 				echo "Installing pip packages"
-				#Fixed in git, however not pushed to pip yet...(use git and install)
-				#libpython2.7-dev
-				#pip install Adafruit_BBIO
-
 				git_repo="https://github.com/adafruit/adafruit-beaglebone-io-python.git"
 				git_target_dir="/opt/source/adafruit-beaglebone-io-python"
 				git_clone
 				if [ -f ${git_target_dir}/.git/config ] ; then
 					cd ${git_target_dir}/
+					sed -i -e 's:4.1.0:3.4.0:g' setup.py
 					python setup.py install
 				fi
 				pip install --upgrade PyBBIO
diff --git a/target/chroot/beagleboard.org-jessie.sh b/target/chroot/beagleboard.org-jessie.sh
index ee3bd4e52..ed9dd6e41 100755
--- a/target/chroot/beagleboard.org-jessie.sh
+++ b/target/chroot/beagleboard.org-jessie.sh
@@ -187,15 +187,12 @@ install_pip_pkgs () {
 
 			if [ -f /usr/local/bin/pip ] ; then
 				echo "Installing pip packages"
-				#Fixed in git, however not pushed to pip yet...(use git and install)
-				#libpython2.7-dev
-				#pip install Adafruit_BBIO
-
 				git_repo="https://github.com/adafruit/adafruit-beaglebone-io-python.git"
 				git_target_dir="/opt/source/adafruit-beaglebone-io-python"
 				git_clone
 				if [ -f ${git_target_dir}/.git/config ] ; then
 					cd ${git_target_dir}/
+					sed -i -e 's:4.1.0:3.4.0:g' setup.py
 					python setup.py install
 				fi
 				pip install --upgrade PyBBIO
diff --git a/target/chroot/beagleboard.org-stretch.sh b/target/chroot/beagleboard.org-stretch.sh
index f6aa666f8..93803cf77 100755
--- a/target/chroot/beagleboard.org-stretch.sh
+++ b/target/chroot/beagleboard.org-stretch.sh
@@ -186,15 +186,12 @@ install_pip_pkgs () {
 
 			if [ -f /usr/local/bin/pip ] ; then
 				echo "Installing pip packages"
-				#Fixed in git, however not pushed to pip yet...(use git and install)
-				#libpython2.7-dev
-				#pip install Adafruit_BBIO
-
 				git_repo="https://github.com/adafruit/adafruit-beaglebone-io-python.git"
 				git_target_dir="/opt/source/adafruit-beaglebone-io-python"
 				git_clone
 				if [ -f ${git_target_dir}/.git/config ] ; then
 					cd ${git_target_dir}/
+					sed -i -e 's:4.1.0:3.4.0:g' setup.py
 					python setup.py install
 				fi
 				pip install --upgrade PyBBIO
diff --git a/target/chroot/machinekit-jessie.sh b/target/chroot/machinekit-jessie.sh
index 1ad40a318..5d8aea4c8 100755
--- a/target/chroot/machinekit-jessie.sh
+++ b/target/chroot/machinekit-jessie.sh
@@ -197,15 +197,12 @@ install_pip_pkgs () {
 
 			if [ -f /usr/local/bin/pip ] ; then
 				echo "Installing pip packages"
-				#Fixed in git, however not pushed to pip yet...(use git and install)
-				#libpython2.7-dev
-				#pip install Adafruit_BBIO
-
 				git_repo="https://github.com/adafruit/adafruit-beaglebone-io-python.git"
 				git_target_dir="/opt/source/adafruit-beaglebone-io-python"
 				git_clone
 				if [ -f ${git_target_dir}/.git/config ] ; then
 					cd ${git_target_dir}/
+					sed -i -e 's:4.1.0:3.4.0:g' setup.py
 					python setup.py install
 				fi
 				pip install --upgrade PyBBIO
diff --git a/target/chroot/seeed-jessie.sh b/target/chroot/seeed-jessie.sh
index fe0db1dcc..f938741c7 100755
--- a/target/chroot/seeed-jessie.sh
+++ b/target/chroot/seeed-jessie.sh
@@ -251,15 +251,12 @@ install_pip_pkgs () {
 
 			if [ -f /usr/local/bin/pip ] ; then
 				echo "Installing pip packages"
-				#Fixed in git, however not pushed to pip yet...(use git and install)
-				#libpython2.7-dev
-				#pip install Adafruit_BBIO
-
 				git_repo="https://github.com/adafruit/adafruit-beaglebone-io-python.git"
 				git_target_dir="/opt/source/adafruit-beaglebone-io-python"
 				git_clone
 				if [ -f ${git_target_dir}/.git/config ] ; then
 					cd ${git_target_dir}/
+					sed -i -e 's:4.1.0:3.4.0:g' setup.py
 					python setup.py install
 				fi
 				pip install --upgrade PyBBIO
-- 
GitLab