Package: cloop-src
Version: 2.01.5-1 

The cloop-src package fails to build its modules with certain kernel revisions:

$ MODULE_LOC=../modules-686 fakeroot make-kpkg --append_to_version -2-686 
--added_modules cloop modules_image
[...]
CC=gcc /usr/bin/make cloop.o 
KERNEL_DIR=/var/tmp/kernel/2.4/image/kernel-image-2.4.27-i386-2.4.27/build-686
make[2]: Entering directory 
`/var/tmp/kernel/2.4/image/kernel-image-2.4.27-i386-2.4.27/modules-686/cloop'
make[2]: *** No rule to make target `cloop.o'.  Stop.
make[2]: Leaving directory 
`/var/tmp/kernel/2.4/image/kernel-image-2.4.27-i386-2.4.27/modules-686/cloop'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory 
`/var/tmp/kernel/2.4/image/kernel-image-2.4.27-i386-2.4.27/modules-686/cloop'
Module ../modules-686/cloop failed.
Hit return to Continue

The reason might be that this check for kernel 2.6 is too unspecific:
  cloop/Makefile:38
  ifneq ($(shell grep 'UTS.*2.6' $(KERNEL_DIR)/include/linux/version.h),)

When trying this on my kernel 2.4.27-2-686, it matches, but shouldn't:
  $ grep --color 'UTS.*2.6' build-686/include/linux/version.h
  #define UTS_RELEASE "2.4.27-2-686"
                              ^^^  # the substring '2-6' matches '2.6'

Replacing the regexp with something more specific like this:
  'UTS[^0-9]*2\.6\.'
fixed the bug for me.

The Makefile in the current version of cloop-src, 2.01.5-2, still
contains the regexp in question.  Unfortunately, I wasn't able to
reproduce the bug there, so I am not sure if it has been fixed otherwise.

Sorry for the delay in reporting this - I hope this information is still
useful to you.

Mirko


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to