Skip to contentSkip to conversation

More debian/rule diffs

Xenomai-core Paul 1 participant 1 message Mar 19, 2007

lore
Share & tools
lore

Paul

author
#0 lore raw

Attached, a small patch to add a build dependency for findutils. Also includes the top level CREDITS and ChangeLog in each package.

The configure options used to build the user space libraries now get included
in the package metadata which may be of interest to the user - Usefull if any of the strong bindings are likely to cause problems.

Regards, Paul.

control +1 -1
Index: debian/control
===================================================================
@@ -2,7 +2,7 @@ Source: xenomai
 Section: devel
 Priority: extra
 Maintainer: Paul Corner <[email protected]>
-Build-Depends: debhelper (>= 5), build-essential, dh-kpatches
+Build-Depends: debhelper (>= 5), build-essential, dh-kpatches, findutils (>= 4.2.28)
 Standards-Version: 3.7.2
 
 Package: linux-patch-xenomai
changelog +7 -0
Index: debian/changelog
===================================================================
@@ -1,3 +1,10 @@
+xenomai (2.3.50-05+r2299) unstable; urgency=low
+
+  * Add top level ChangeLog and CREDITS to each package.
+  * rebuilt from SVN tag 2299
+
+ -- Paul Corner <[email protected]>  Thu, 15 Mar 2007 11:03:14 +0000
+
 xenomai (2.3.50-04) unstable; urgency=low
 
   * Remove demo & snippets from the patches - Installed in xenomai-dev
rules +20 -4
Index: debian/rules
===================================================================
@@ -30,11 +30,12 @@ endif
 ifeq ($(DEB_BUILD_ARCH), arm)
 	CONFIG_OPTS =
 endif
+	CONFIG_OPTS += --prefix=/usr \
+	            --includedir=/usr/include/xenomai \
+	            --mandir=/usr/share/man
 
 build: build-stamp
-	./configure $(CONFIG_OPTS) --prefix=/usr \
-	                    --includedir=/usr/include/xenomai \
-	                    --mandir=/usr/share/man
+	./configure $(CONFIG_OPTS)
 	$(MAKE)
 #	The kernel patches get generated next - Likely to involve some
 #	additional scripting..
@@ -68,8 +69,10 @@ install: build
 	mkdir -p $(CURDIR)/debian/xenomai-dev/usr/lib
 	mv -f $(CURDIR)/debian/tmp/usr/lib/*.a $(CURDIR)/debian/xenomai-dev/usr/lib
 	mv -f $(CURDIR)/debian/tmp/usr/include $(CURDIR)/debian/xenomai-dev/usr/
-	mkdir -p $(CURDIR)/debian/xenomai-dev/usr/bin
+#	Need posix.wrappers for xeno-config
+	mv -f $(CURDIR)/debian/tmp/usr/lib/posix.wrappers $(CURDIR)/debian/xenomai-dev/usr/lib
 #	The xeno-config only makes sense with headers & stuff.
+	mkdir -p $(CURDIR)/debian/xenomai-dev/usr/bin
 	mv -f $(CURDIR)/debian/tmp/usr/bin/xeno-config $(CURDIR)/debian/xenomai-dev/usr/bin
 #	Now for the documentation.
 	mkdir -p $(CURDIR)/debian/xenomai-docs/usr/share/
@@ -103,6 +106,13 @@ install: build
 	cd $(CURDIR)
 #	The kernel patches get installed next..
 	dh_installkpatches
+#	Add CREDITS, ChangeLog, and READMEs to all packages.
+	for p in linux-patch-xenomai xenomai xenomai-dev xenomai-docs ; do \
+	    mkdir -p $(CURDIR)/debian/$$p/usr/share/doc/$$p ; \
+	    for f in CREDITS ChangeLog README.INSTALL TROUBLESHOOTING ; do \
+	        install -m 0644 $$f $(CURDIR)/debian/$$p/usr/share/doc/$$p/ ; \
+	    done ; \
+	done
 
 # Build architecture-independent files here.
 binary-indep: install
@@ -124,6 +134,12 @@ binary-indep: install
 	cat $(CURDIR)/debian/linux-patch-xenomai.kpatches | \
 	    awk 'NR>4 {sub(/^/," ");print}' >> \
 	        $(CURDIR)/debian/linux-patch-xenomai/DEBIAN/control
+#	 Echo config options to control.
+	echo " ." >> $(CURDIR)/debian/xenomai/DEBIAN/control
+	echo " Compiled with the following options." >> \
+	        $(CURDIR)/debian/xenomai/DEBIAN/control
+	echo "$(CONFIG_OPTS)" | awk '{ for ( i=1 ; i<=NF ; i++ ) print "   "$$i }' >> \
+	        $(CURDIR)/debian/xenomai/DEBIAN/control
 #	 End of hackery.
 	dh_md5sums
 	dh_builddeb