FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 09-14-2010, 10:05 AM
Stefan Bader
 
Default UBUNTU: wwan: Make gobi_loader unique to ABI and flavour

BugLink: http://bugs.launchpad.net/bugs/638115

This resolves the problems of packages being held back on ABI bumps and
multiple flavours not being installable in parallel.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
---
debian/rules.d/2-binary-arch.mk | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 37739a5..25f3a1b 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -185,6 +185,26 @@ endif
done
$(MAKE) -C $(wwsrcdir) prefix=$(wwpkgdir) install
install -d $(wwpkgdir)/DEBIAN
+
+ #
+ # Hack to make the udev rule and firmware loader specific to the
+ # package.
+ #
+ POSTFIX="$(abinum)-$(target_flavour)"
+ R='PROGRAM="/bin/uname -r",';
+ R=$$R' RESULT!="'$(release)-$$POSTFIX'",';
+ R=$$R' GOTO="gobi_rules_end"';
+ sed -i -e "s/^(LABEL="gobi_rules")$$/
$$R
/"
+ -e "s/(gobi_loader)/-$$POSTFIX/"
+ $(wwpkgdir)/lib/udev/rules.d/60-gobi.rules
+
+ TGTFILE="$(wwpkgdir)/lib/udev/rules.d/60-gobi";
+ chmod 644 $${TGTFILE}.rules;
+ mv $${TGTFILE}.rules $${TGTFILE}-$(abinum)-$(target_flavour).rules
+
+ TGTFILE="$(wwpkgdir)/lib/udev/gobi_loader";
+ mv $$TGTFILE $$TGTFILE-$(abinum)-$(target_flavour)
+
for script in postinst postrm; do
sed -e 's/@@KVER@@/$(release)-$(abinum)-$*/g'
debian/control-scripts/$$script
--
1.7.0.4


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 03:55 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org