* Stop unconditionally forcing the compiler to cc or gcc in configure,
allowing, among other things, building the kernel module with a
compiler other than the default system compiler. (Closes: #338306)
+ * Call kernel-version correctly from prep-modules, which fixes build
+ issues with manually-built kernels. (Closes: #344851)
* Include afsmonitor and livesys in openafs-client.
* Include volinfo in openafs-fileserver.
* Document FAM's lack of support for AFS's security model and recommend
goes into each package.
* Don't ignore make distclean errors.
- -- Russ Allbery <rra@debian.org> Wed, 21 Dec 2005 18:59:01 -0800
+ -- Russ Allbery <rra@debian.org> Mon, 26 Dec 2005 16:17:15 -0800
openafs (1.4.0-2) unstable; urgency=low
afs_kvers="${KVERS}${INT_SUBARCH}"
afs_kdrev="${KDREV}"
elif [ ! -f "$changelog" ] ; then
- afs_kvers=`perl debian/kernel-version`
+ if [ -n "$KVERS" ] ; then
+ afs_kvers="$KVERS"
+ else
+ afs_kvers=`perl debian/kernel-version "$1"`
+ fi
if [ -z "$KDREV" ] ; then
afs_kdrev="${afs_kvers}-0"
else
afs_kdrev="${KDREV}"
fi
else
- afs_kvers=`head -1 "$changelog" \
- | sed -e 's/.*source-\([^ ]*\) (\([^)]*\)).*/\1/'`
+ if [ -n "$KVERS" ] ; then
+ afs_kvers="$KVERS"
+ else
+ afs_kvers=`head -1 "$changelog" \
+ | sed -e 's/.*source-\([^ ]*\) (\([^)]*\)).*/\1/'`
+ fi
afs_kdrev=`head -1 "$changelog" \
| sed -e 's/.*source-\([^ ]*\) (\([^)]*\)).*/\2/'`
fi
DEBIAN_KERN_FLAGS =
endif
-# The AFS sysname is determined by a script
ifndef KSRC
KSRC = /usr/src/linux
endif
export KVERS
export KPKG_DEST_DIR
-SYS_NAME := $(shell KSRC="$(KSRC)" KVERS="$(KVERS)" sh debian/sysname)
+SYS_NAME := $(shell KSRC="$(KSRC)" KVERS="$(KVERS)" sh debian/sysname)
package = openafs
srcpkg = openafs-modules-source
exit 1 ; \
fi
sh debian/prep-modules $(KSRC)
- -ln -s @sys/dest dest
- -ln -s $(SYS_NAME) @sys
sh configure --with-afs-sysname=$(SYS_NAME) \
--with-linux-kernel-headers=$(KSRC) --prefix=`pwd`/debian/tmp \
--enable-debug --enable-lwp-debug --enable-kernel-debug \