[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: packaging for module-assistant



Sorry, some corrections to my previous e-mail:

>Hi,
>
>I try to build up a patch for redhat-cluster source package in order to
>make the redhat-cluster-source package buildable by module-assistant, I
>used some parts of the redhat-cluster-suite packaging
>
(from ubuntu, but with an older orig.tar.gz)

> and almost
>successful, but at the last part of the module-assistant build process I
>get (I'm trying to build it on a 2.6.16-xen-686 system, apparently
>recognized by the build system):
>
>rm -rf debian/redhat-cluster-source-2.6.16-1-xen-686/usr
>dh_installdocs
>dh_installchangelogs
>dh_compress
>dh_fixperms
>dh_installdeb
>dh_gencontrol -- -v1.02.00-4+2.6.16-12
>dpkg-gencontrol: warning: unknown information field `C1 Version' in
>input data in package's section of control info file
>dpkg-gencontrol: warning: unknown information field `C1 Source' in input
>data in package's section of control info file
>dpkg-gencontrol: warning: unknown information field `C1 Recomends' in
>input data in package's section of control info file
>dpkg-gencontrol: warning: unknown information field `C Description' in
>input data in general section of control info file
>dpkg-gencontrol: warning: unknown information field `C1 Maintainer' in
>input data in package's section of control info file
>dpkg-gencontrol: warning: missing information for output field Maintainer
>dh_md5sums
>dh_builddeb --destdir=/usr/src
>warning, in file `debian/redhat-cluster-modules-_KVERS_/DEBIAN/control'
>near line 11 package `redhat-cluster-modules-_kvers_':
> missing maintainer
>dpkg-deb: package name has characters that aren't lowercase alphanums or
>`-+.'
>dh_builddeb: command returned error code 512
>make[1]: *** [binary-modules] Error 1
>make[1]: Leaving directory `/usr/src/modules/redhat-cluster-source'
>make: *** [kdist_build] Error 2
>
>It seems, that while on the first (pasted) line KVERS get replaced by
>the actual kernel version later module-assistant complains about _KVERS_
>I attached the relevant files from the debian subdir of the
>redhat-cluster-source package.
>
>Thanks for enlightening me.
>
>Geza
>  
>
>------------------------------------------------------------------------
>
>Source: redhat-cluster
>Section: admin
>Priority: optional
>Description: Redhat cluster suite - kernel module source
> This package contains the source necessary for compiling the RHCS
> kernel modules against the linux tree.
>
>Package: redhat-cluster-modules-_KVERS_
>Version: 1.02.00-4
>Architecture: any
>Section: admin
>Priority: optional
>Maintainer: Bastian Blank <waldi@debian.org>
>Source: redhat-cluster
>Recomends: kernel-image-_KVERS_
>Description: Redhat cluster - kernel modules
> This package contains the RHCS
> kernel modules built against the _KVERS_ linux tree.
>  
>
>------------------------------------------------------------------------
>
>#!/bin/sh
>set -e
>
>if [ "`uname -r`" = _KVERS_ ] ; then
>   depmod -a &
>fi
>
>#DEBHELPER#
>  
>
>------------------------------------------------------------------------
>
>#!/usr/bin/make -f
>
># module-assistant stuff
>PACKAGE = redhat-cluster-modules
>MA_DIR ?= /usr/share/modass
>-include $(MA_DIR)/include/generic.make
>-include $(MA_DIR)/include/common-rules.make
>
>export RHMODS=cman-kernel dlm-kernel gfs-kernel gnbd-kernel
>
>export BDIR=$(shell pwd)
>
>configure:
>	mkdir -p includes
>	cd includes && ln -sf . cluster
>	cp cman-kernel/src/service.h includes/service.h
>	cp cman-kernel/src/cnxman.h includes/cnxman.h
>	cp cman-kernel/src/cnxman-socket.h includes/cnxman-socket.h
>	cp dlm-kernel/src/dlm.h includes/dlm.h
>	for i in $$RHMODS; do \
>	  cd $$i && ./configure --incdir=$(BDIR)/includes --kernel_src=$(KSRC) && cd ..; \
>	done
>
>kdist_clean: prep-deb-files
>	dh_clean
>	for i in $$RHMODS; do \
>	  cd $$i && ./configure --kernel_src=$(KSRC) && $(MAKE) clean && cd ..; \
>	done
>	rm -rf includes
>
>kdist_config: prep-deb-files
>
>binary-modules: configure kdist_config
>	dh_testdir
>	dh_testroot
>	dh_clean -k
>	dh_installdirs lib/modules/$(KVERS)
>
>	# build and install the module
>	for i in $$RHMODS; do \
>	  cd $$i && $(MAKE) && $(MAKE) install DESTDIR=$(BDIR)/debian/redhat-cluster-source-$(KVERS) && cd ..; \
>	done
>	rm -rf debian/redhat-cluster-source-$(KVERS)/usr
>
>	dh_installdocs 
>	dh_installchangelogs
>	dh_compress
>	dh_fixperms
>	dh_installdeb
>	dh_gencontrol -- -v$(VERSION)
>	dh_md5sums
>	dh_builddeb --destdir=$(DEB_DESTDIR)
>  
>



Reply to: