I am about to fix that. Note that there was something going wrong,
the real (updated) instructions on how to build realtime-lsm
are in /usr/share/doc/realtime-lsm/README.Debian, the instructions
form /usr/share/doc/realtime-lsm-source/README.Debian are outdated,
therefore the confusing description.

Anyhow I will update the file (both actually, also
/usr/share/doc/realtime-lsm-source/README.Debian) and add instructions
for make-kpkg.

Thanks for the info.

Günter

On Wed, 9 Aug 2006, Arthur Marsh wrote:

> Package: realtime-lsm-source
> Version: 0.8.7-1
> Followup-For: Bug #332736
>
>
> Posted to the debian-user list:
>
> Arthur Marsh wrote:
> > Hi, when doing a fresh unpack of linux-source-2.6.17 then attempting
> to
> > build realtime-lsm, I get the following error:
> >
> > /usr/src/linux# make-kpkg modules-image
> > exec debian/rules  DEBIAN_REVISION=2.6.17-10.00.Custom  modules-image
> > echo "The UTS Release version in include/linux/version.h"; echo " \"\"
> > "; echo "does not match current version:"; echo "     \"2.6.17\" ";
> echo
> > "Please correct this."; exit 2
> > The UTS Release version in include/linux/version.h
> >      ""
> > does not match current version:
> >      "2.6.17"
> > Please correct this.
> > make: *** [modules-image] Error 2
> >
> > I tried creating /usr/src/linux/version.h with simply the line:
> >
> > 2.6.17
> >
> > but that didn't work.
> >
> > I had this working before but removed my kernel source tree and can't
> > get it working again )-:.
> >
> >
>
> I had the situation where I had removed my kernel source tree, and there
> was a realtime-lsm-source update, which I wanted to build and install.
>
> Since realtime-lsm requires a kernel rebuilt with
>
> CONFIG_SECURITY_CAPABILITIES=m
>
> It is reasonable to assume that the person building realtime-lsm will
> have the linux-source-* package installed if not unpacked.
>
> Also, since make-kpkg package can be used to build both the realtime-lsm
> module and the custom kernel required by realtime-lsm, make-kpkg is a
> more logical choice for building the realtime-lsm module than
> module-assistant. I found myself frustrated trying to use
> module-assistant to build the realtime-lsm module. The directions for
> using make-kpkg in /usr/share/doc/alsa-source also helped me build the
> realtime-lsm module, but the directions in /usr/src/realtime-lsm-source
> simply state:
>
> [quote]
>
> In order to build the realtime kernel module from source use
> module-assistant.
>
> e.g.
>
> module-assistant update
> modula-assistant build realtime-lsm
>
> You need to have the kernel header files installed for this to work.
>
> [end quote]
>
> Why have kernel-headers-[insert-version-number] installed if one needs
> the full kernel source to build a kernel with
> Since realtime-lsm requires a kernel rebuilt with
> CONFIG_SECURITY_CAPABILITIES=m anyway?
>
> Unpacking the kernel source and realtime-lsm source, creating a symbolic
> link /usr/src/linux pointing to /usr/src/linux-source-2.6.17 then
> copying the current kernel configuration from /boot to
> /usr/src/linux/.config didn't allow:
>
> make-kpkg modules-image
>
> to succeed (as shown in the quoted errors above).
>
> What was needed after:
>
> cp /boot/config-2.6.17 /usr/src/linux/.config
>
> was:
>
> cd /usr/src/linux
> make modules_prepare
>
> before:
>
> make-kpkg modules-image
>
> After that I could do:
>
> cd /usr/src
> dpkg -i realtime-lsm-module*.deb
>
> Problem solved!
>
> Arthur.
>
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.17
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
>
> Versions of packages realtime-lsm-source depends on:
> ii  bzip2                         1.0.3-3    high-quality block-sorting file 
> co
> ii  debhelper                     5.0.37.3   helper programs for debian/rules
> ii  kernel-package                10.052     A utility for building Linux 
> kerne
>
> realtime-lsm-source recommends no packages.
>
> -- no debconf information
>
>

Reply via email to