[oe-commits] Stefan Schmidt : usb-modeswitch-data: Patch makefile to use portable install options.

git version control git at git.openembedded.org
Thu Feb 10 15:47:10 UTC 2011


Module: openembedded.git
Branch: master
Commit: 6a5cfd3156cecb9434a59f0aee62328dbf800f4f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6a5cfd3156cecb9434a59f0aee62328dbf800f4f

Author: Stefan Schmidt <stefan at buglabs.net>
Date:   Thu Feb 10 16:45:38 2011 +0100

usb-modeswitch-data: Patch makefile to use portable install options.

Without this it fails with our install wrapper whcih does only support portable
options.

---

 .../fix-install-in-makefile.patch                  |   22 ++++++++++++++++++++
 .../usb-modeswitch/usb-modeswitch-data_20100826.bb |    6 +++-
 2 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/recipes/usb-modeswitch/usb-modeswitch-data/fix-install-in-makefile.patch b/recipes/usb-modeswitch/usb-modeswitch-data/fix-install-in-makefile.patch
new file mode 100644
index 0000000..fd11f11
--- /dev/null
+++ b/recipes/usb-modeswitch/usb-modeswitch-data/fix-install-in-makefile.patch
@@ -0,0 +1,22 @@
+Index: usb-modeswitch-data-20100826/Makefile
+===================================================================
+--- usb-modeswitch-data-20100826.orig/Makefile	2011-02-10 16:33:59.000000000 +0100
++++ usb-modeswitch-data-20100826/Makefile	2011-02-10 16:39:24.000000000 +0100
+@@ -18,14 +18,14 @@
+ 
+ files-install:
+ 	install -d $(ETCDIR)/usb_modeswitch.d
+-	install -D --mode=644 40-usb_modeswitch.rules $(RULESDIR)/40-usb_modeswitch.rules
++	install -D -m 644 40-usb_modeswitch.rules $(RULESDIR)/40-usb_modeswitch.rules
+ 
+ db-install:
+-	install --mode=644 -t $(ETCDIR)/usb_modeswitch.d ./usb_modeswitch.d/*
++	install -m 644 ./usb_modeswitch.d/* $(ETCDIR)/usb_modeswitch.d
+ 
+ db-install-packed:
+ 	cd ./usb_modeswitch.d; tar -czf ../configPack.tar.gz *
+-	install --mode=644 -t $(ETCDIR)/usb_modeswitch.d ./configPack.tar.gz
++	install -m 644 ./configPack.tar.gz $(ETCDIR)/usb_modeswitch.d
+ 	rm -f ./configPack.tar.gz
+ 
+ 
diff --git a/recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb b/recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb
index 2383edb..91c41d2 100644
--- a/recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb
+++ b/recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb
@@ -4,9 +4,11 @@ RDEPENDS_${PN} = "\
     usb-modeswitch \
     tcl \
 "
-PR="r1"
+PR="r2"
 
-SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2"
+SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2 \
+           file://fix-install-in-makefile.patch \
+          "
 SRC_URI[md5sum] = "85c16bb87a6f05c2d04b93a22fe87e91"
 SRC_URI[sha256sum] = "a81821d3d9ad9e1d3a31ea11d0da9841ca84350f0b445a8f9ea2dbd142cefb46"
 





More information about the Openembedded-commits mailing list