- From: Jan Gukelberger <g.u.g.i_at_gmx.de>
- Date: Wed, 05 Jan 2005 16:08:44 +0100
Hi,
I've just succeeded to build a Debian package comedi-modules from the
CVS module comedi with make-kpkg.
Perhaps someone else is interested.
First I had to run
$ autogen.sh
$ make drivers.txt
manually or else the files drivers.txt and devices.txt in
Documentation/comedi were missing.
Then there was a need for a few changes in debian/rules that seems quite
outdated. The attached patch fixes the following errors:
* Configure doesn't know "--linuxdir". Replace with "--with-linuxdir="
* Configure doesn't know the options "--non-interactive --reconf".
Delete them. (I have no idea what they are for.)
* Add --with-rtaidir=/usr/lib/realtime which is the standard path of the
debian package rtai. Configure defaults to /usr/realtime.
* "make install" doesn't know INSTALL_MOD_PATH. Replace with DESTDIR.
Now you can cd into your linux kernel build dir and
$ fakeroot make-kpkg /path/to/comedi modules-image
[The comedi module does not understand the make-kpkg option --rootcmd
fakeroot which is considered as a bug, too, but I'm no make-kpkg expert
and don't know how an appropriate patch would look like.]
Regards,
Jan
PS: I didn't apt-get comedi-source because there were rumours that you
need the CVS version of comedi for RTAI 3.1. Is there a plan for updated
Debian packages?
---------8<------------------8<------------------8<----------------------------
Index: debian/rules
===================================================================
RCS file: /var/cvs/comedi/debian/rules,v
retrieving revision 1.7
diff -u -r1.7 rules
--- debian/rules 30 Aug 2002 23:05:17 -0000 1.7
+++ debian/rules 5 Jan 2005 14:06:53 -0000
_at__at_ -13,7 +13,7 _at__at_
.PHONY: kdist_image
kdist_image: checkroot
$(RM) debian/files
- yes "" | ./configure --linuxdir $(KSRC) --non-interactive --reconf
+ yes "" | ./configure --with-linuxdir=$(KSRC) --with-rtaidir=/usr/lib/realtime
echo "KERNELRELEASE=$(KVERS)" >>.buildvars
$(MAKE)
$(RM) -rf $(d_mod)
_at__at_ -21,7 +21,7 _at__at_
install -d "$(d_mod)/usr/share/doc/$(p_mod)"
install debian/comedi-modules.postinst $(d_mod)/DEBIAN/postinst
install debian/comedi-modules.prerm $(d_mod)/DEBIAN/prerm
- $(MAKE) INSTALL_MOD_PATH=`pwd`/$(d_mod) install
+ $(MAKE) DESTDIR=`pwd`/$(d_mod) install
install -m644 debian/changelog \
$(d_mod)/usr/share/doc/$(p_mod)/changelog.Debian
install -m 644 Documentation/comedi/devices.txt \
_at__at_ -44,7 +44,7 _at__at_
kdist_config:
echo "****** kdist_configure *****"
env
- yes "" | ./configure --linuxdir $(KSRC) --non-interactive --reconf
+ yes "" | ./configure --with-linuxdir=$(KSRC) --with-rtaidir=/usr/lib/realtime
echo "KERNELRELEASE=$(KVERS)" >>.buildvars
.PHONY: kdist_clean clean
---------8<------------------8<------------------8<----------------------------
Received on 2005-01-05Z15:08:44