Skip to contentSkip to conversation

Debian rule set.

Xenomai-core Applied Paul 3 participants 10 messages Mar 7, 2007 – Mar 12, 2007

lore
Share & tools
lore

Paul

author
#0 lore raw

Attached is a rule set for generating a series of Debian packages. Four packages are generated, these are:

linux-patch-xenomai - A collection of adeos-ipipe patches with the Xenomai kernel parts tacked on. The script used to combine the parts is a hacked down version of prepare-kernel.sh..

xenomai-dev - Headers, static libs, and xeno-config. I would have liked to move the headers in to a /usr/include/xenomai directory, but there appears to be a minor issue with the --includedir option.

xenomai-docs - All the API documentation in man, html, and pdf format as found in the repository (don't see much point in regenerating and adding to build dependencies).

xenomai - The core libraries, run scripts, and assorted tests/utilities. The configure options could probably do with some adjustments, but I've kept arch dependant options segregated so conflicts can be kept to a minimum.

A couple of general comments: Having a clear seperation of kernel & user space sources has greatly simplified the task of packaging.. The dynamic libs all have a 0.0.0 version - Would it not make sense to sync with the Xenomai version ?

Regards, Paul.

#1 lore raw
Quoted 3 lines · Paul

Attached is a rule set for generating a series of Debian packages. Four packages are generated, these are:

That is great. It means that we should try and solve the includedir issue. However, from a maintenance point of view, would not it make mor sense to modify the prepare-kernel script to that it suits the needs of debian packaging than to have a second script almost like it in the debian directory ?

Signature · 1 line
					    Gilles Chanteperdrix.
author
#2 lore raw

Hi Gilles

Quoted 5 lines · Gilles Chanteperdrix

That is great. It means that we should try and solve the includedir issue. However, from a maintenance point of view, would not it make mor sense to modify the prepare-kernel script to that it suits the needs of debian packaging than to have a second script almost like it in the debian directory ?

Modifying the prepare-kernel script would be preferable in the long term, but I didn't see much point initially for three reasons - The initial rule set is "proof of concept" and would benefit from some peer review (also need to tweak a few lines).. Second, the prepare-kernel script would require extensive modifications for the needs of one or two people. Finally, the kernel patching system in Debian has some new features currently in "experimental", so when these make their way in to testing/unstable, the prepare-kernel & patch generation would need to be overhauled.

Regards, Paul.

#3 lore raw
In reply to Paul
Quoted 3 lines · Paul

xenomai-dev - Headers, static libs, and xeno-config. I would have liked to move the headers in to a /usr/include/xenomai directory, but there appears to be a minor issue with the --includedir option.

The attached patch should solve this issue.

Signature · 1 line
					    Gilles Chanteperdrix.
uitron/Makefile.am +2 -2
Index: include/uitron/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/uitron
+includesubdir = $(includedir)/uitron
 
-include_HEADERS = \
+includesub_HEADERS = \
 	defs.h \
 	flag.h \
 	mbx.h \
asm-ia64/bits/Makefile.am +2 -2
Index: include/asm-ia64/bits/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/asm-ia64/bits
+includesubdir = $(includedir)/asm-ia64/bits
 
-include_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
+includesub_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
asm-ia64/Makefile.am +2 -2
Index: include/asm-ia64/Makefile.am
===================================================================
@@ -1,5 +1,5 @@
-includedir = $(prefix)/include/asm-ia64
+includesubdir = $(includedir)/asm-ia64
 
-include_HEADERS = atomic.h calibration.h features.h hal.h syscall.h system.h wrappers.h fptest.h
+includesub_HEADERS = atomic.h calibration.h features.h hal.h syscall.h system.h wrappers.h fptest.h
 
 SUBDIRS = bits
vxworks/Makefile.am +2 -2
Index: include/vxworks/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/vxworks
+includesubdir = $(includedir)/vxworks
 
-include_HEADERS = syscall.h vxworks.h
+includesub_HEADERS = syscall.h vxworks.h
native/Makefile.am +2 -2
Index: include/native/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/native
+includesubdir = $(includedir)/native
 
-include_HEADERS = \
+includesub_HEADERS = \
 	alarm.h \
 	cond.h \
 	event.h \
asm-blackfin/bits/Makefile.am +2 -2
Index: include/asm-blackfin/bits/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/asm-blackfin/bits
+includesubdir = $(includedir)/asm-blackfin/bits
 
-include_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
+includesub_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
asm-blackfin/Makefile.am +2 -2
Index: include/asm-blackfin/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/asm-blackfin
+includesubdir = $(includedir)/asm-blackfin
 
-include_HEADERS = atomic.h calibration.h features.h hal.h \
+includesub_HEADERS = atomic.h calibration.h features.h hal.h \
 		syscall.h system.h wrappers.h fptest.h
 
 SUBDIRS = bits
asm-generic/bits/Makefile.am +2 -2
Index: include/asm-generic/bits/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/asm-generic/bits
+includesubdir = $(includedir)/asm-generic/bits
 
-include_HEADERS = \
+includesub_HEADERS = \
 	bind.h \
 	heap.h \
 	intr.h \
asm-generic/Makefile.am +2 -2
Index: include/asm-generic/Makefile.am
===================================================================
@@ -1,5 +1,5 @@
-includedir = $(prefix)/include/asm-generic
+includesubdir = $(includedir)/asm-generic
 
-include_HEADERS = features.h hal.h syscall.h system.h wrappers.h
+includesub_HEADERS = features.h hal.h syscall.h system.h wrappers.h
 
 SUBDIRS = bits
asm-powerpc/bits/Makefile.am +2 -2
Index: include/asm-powerpc/bits/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/asm-powerpc/bits
+includesubdir = $(includedir)/asm-powerpc/bits
 
-include_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
+includesub_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
asm-powerpc/Makefile.am +2 -2
Index: include/asm-powerpc/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/asm-powerpc
+includesubdir = $(includedir)/asm-powerpc
 
-include_HEADERS = atomic.h calibration.h features.h hal.h \
+includesub_HEADERS = atomic.h calibration.h features.h hal.h \
 		syscall.h system.h wrappers.h fptest.h
 
 SUBDIRS = bits
asm-arm/bits/Makefile.am +2 -2
Index: include/asm-arm/bits/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/asm-arm/bits
+includesubdir = $(includedir)/asm-arm/bits
 
-include_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
+includesub_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
asm-arm/Makefile.am +2 -2
Index: include/asm-arm/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/asm-arm
+includesubdir = $(includedir)/asm-arm
 
-include_HEADERS = atomic.h calibration.h features.h hal.h \
+includesub_HEADERS = atomic.h calibration.h features.h hal.h \
 		syscall.h system.h wrappers.h fptest.h
 
 SUBDIRS = bits
psos+/Makefile.am +2 -2
Index: include/psos+/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/psos+
+includesubdir = $(includedir)/psos+
 
-include_HEADERS = \
+includesub_HEADERS = \
 	asr.h \
 	defs.h \
 	event.h \
rtai/Makefile.am +2 -2
Index: include/rtai/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/rtai
+includesubdir = $(includedir)/rtai
 
-include_HEADERS = \
+includesub_HEADERS = \
 	fifo.h \
 	intr.h \
 	rt_mem_mgr.h \
posix/sys/Makefile.am +2 -2
Index: include/posix/sys/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/posix/sys
+includesubdir = $(includedir)/posix/sys
 
-include_HEADERS = \
+includesub_HEADERS = \
 	ioctl.h \
 	mman.h \
 	socket.h
posix/Makefile.am +2 -2
Index: include/posix/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/posix
+includesubdir = $(includedir)/posix
 
-include_HEADERS = \
+includesub_HEADERS = \
 	errno.h \
 	fcntl.h \
 	mqueue.h \
vrtx/Makefile.am +2 -2
Index: include/vrtx/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/vrtx
+includesubdir = $(includedir)/vrtx
 
-include_HEADERS = syscall.h vrtx.h
+includesub_HEADERS = syscall.h vrtx.h
asm-sim/bits/Makefile.am +2 -2
Index: include/asm-sim/bits/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/asm-sim/bits
+includesubdir = $(includedir)/asm-sim/bits
 
-include_HEADERS = pod.h intr.h heap.h thread.h timer.h init.h
+includesub_HEADERS = pod.h intr.h heap.h thread.h timer.h init.h
asm-sim/Makefile.am +9 -9
Index: include/asm-sim/Makefile.am
===================================================================
@@ -1,16 +1,16 @@
-includedir = $(prefix)/include/asm-sim
+includesubdir = $(includedir)/asm-sim
 
-include_HEADERS = system.h
+includesub_HEADERS = system.h
 
 install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(includedir)
-	rm -f $(DESTDIR)$(includedir)/asm
-	$(LN_S) . $(DESTDIR)$(includedir)/asm
-	rm -f $(DESTDIR)$(includedir)/xenomai
-	$(LN_S) . $(DESTDIR)$(includedir)/xenomai
+	$(mkinstalldirs) $(DESTDIR)$(includesubdir)
+	rm -f $(DESTDIR)$(includesubdir)/asm
+	$(LN_S) . $(DESTDIR)$(includesubdir)/asm
+	rm -f $(DESTDIR)$(includesubdir)/xenomai
+	$(LN_S) . $(DESTDIR)$(includesubdir)/xenomai
 
 uninstall-local:
-	rm -f $(DESTDIR)$(includedir)/asm
-	rm -f $(DESTDIR)$(includedir)/xenomai
+	rm -f $(DESTDIR)$(includesubdir)/asm
+	rm -f $(DESTDIR)$(includesubdir)/xenomai
 
 SUBDIRS = bits
rtdm/Makefile.am +2 -2
Index: include/rtdm/Makefile.am
===================================================================
@@ -1,9 +1,9 @@
-includedir = $(prefix)/include/rtdm
+includesubdir = $(includedir)/rtdm
 
 noinst_HEADERS = \
 	syscall.h
 
-include_HEADERS = \
+includesub_HEADERS = \
 	rtdm.h \
 	rtdm_driver.h \
 	rtserial.h \
asm-i386/bits/Makefile.am +2 -2
Index: include/asm-i386/bits/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/asm-i386/bits
+includesubdir = $(includedir)/asm-i386/bits
 
-include_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
+includesub_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
asm-i386/Makefile.am +2 -2
Index: include/asm-i386/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/asm-i386
+includesubdir = $(includedir)/asm-i386
 
-include_HEADERS = atomic.h calibration.h features.h \
+includesub_HEADERS = atomic.h calibration.h features.h \
 		hal.h smi.h switch.h syscall.h system.h wrappers.h fptest.h
 
 SUBDIRS = bits
asm-x86_64/bits/Makefile.am +2 -2
Index: include/asm-x86_64/bits/Makefile.am
===================================================================
@@ -1,3 +1,3 @@
-includedir = $(prefix)/include/asm-x86_64/bits
+includesubdir = $(includedir)/asm-x86_64/bits
 
-include_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
+includesub_HEADERS = pod.h intr.h heap.h thread.h shadow.h timer.h init.h
asm-x86_64/Makefile.am +2 -2
Index: include/asm-x86_64/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/asm-x86_64
+includesubdir = $(includedir)/asm-x86_64
 
-include_HEADERS = atomic.h smi.h switch.h calibration.h features.h \
+includesub_HEADERS = atomic.h smi.h switch.h calibration.h features.h \
 		hal.h syscall.h system.h wrappers.h fptest.h
 
 SUBDIRS = bits
nucleus/Makefile.am +2 -2
Index: include/nucleus/Makefile.am
===================================================================
@@ -1,6 +1,6 @@
-includedir = $(prefix)/include/nucleus
+includesubdir = $(includedir)/nucleus
 
-include_HEADERS = \
+includesub_HEADERS = \
 	assert.h \
 	bheap.h \
 	compiler.h \
author
#4 lore raw
Quoted 3 lines · Gilles Chanteperdrix

 > be a minor issue with the --includedir option.

The attached patch should solve this issue.

That works for me.. Attached is a second draft of the rule set - Took the liberty of adding the files to the EXTRA_DIST rule as well as packaging the includes under /usr/include/xenomai.

Regards, Paul.

#9 lore raw
In reply to Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 3 lines · Paul

xenomai-dev - Headers, static libs, and xeno-config. I would have liked to move the headers in to a /usr/include/xenomai directory, but there appears to be a minor issue with the --includedir option.

The attached patch should solve this issue.

Merged, thanks.

Signature · 1 line
Philippe.
#5 lore raw
In reply to Paul
Quoted 9 lines · Paul
Quoted 3 lines · Gilles Chanteperdrix
Quoted 1 line

be a minor issue with the --includedir option.

The attached patch should solve this issue.

That works for me.. Attached is a second draft of the rule set - Took the liberty of adding the files to the EXTRA_DIST rule as well as packaging the includes under /usr/include/xenomai.

Merged, thanks.

Quoted 9 lines

Regards, Paul.

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.
author
#6 lore raw

Hi Philippe

Quoted 3 lines · Philippe Gerum
Quoted 1 line

Attached is a second draft of the rule set

Merged, thanks.

Updated my local copy and noticed the execute attributes are not set for debian/rules or debian/prepare-patch.sh - Is it possible to change the svn properties on these two files ?

Regards, Paul.

#7 lore raw
Quoted 11 lines · Paul

Hi Philippe

Quoted 3 lines · Philippe Gerum
Quoted 1 line

Attached is a second draft of the rule set

Merged, thanks.

Updated my local copy and noticed the execute attributes are not set for debian/rules or debian/prepare-patch.sh - Is it possible to change the svn properties on these two files ?

Yes. Should be ok now.

Quoted 2 lines

Regards, Paul.

Signature · 1 line
Philippe.
author
#8 lore raw
Quoted 3 lines · Philippe Gerum
Quoted 1 line

Is it possible to change the svn properties on these two files ?

Yes. Should be ok now.

Thanks - That will stop dpkg barfing when trying to build a package.

Regards, Paul.