diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2005-02-14 19:34:26 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2005-02-14 19:34:26 +0000 |
commit | d352e6e7d2dcb853455db7e4888592b2390b6b24 (patch) | |
tree | 11af6030c5b3baf0497cab6b86627fc1b4bac366 /sys-fs | |
parent | Stable on hppa. (diff) | |
download | gentoo-2-d352e6e7d2dcb853455db7e4888592b2390b6b24.tar.gz gentoo-2-d352e6e7d2dcb853455db7e4888592b2390b6b24.tar.bz2 gentoo-2-d352e6e7d2dcb853455db7e4888592b2390b6b24.zip |
Fixing configure to not consider kernel sources thanks to Frank Van Damme <frank.vandamme@student.kuleuven.ac.be> in bug 78790
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/lufs/ChangeLog | 7 | ||||
-rw-r--r-- | sys-fs/lufs/files/lufs-no-kernel.patch | 111 | ||||
-rw-r--r-- | sys-fs/lufs/lufs-0.9.7-r3.ebuild | 9 |
3 files changed, 121 insertions, 6 deletions
diff --git a/sys-fs/lufs/ChangeLog b/sys-fs/lufs/ChangeLog index c362184a10c7..d69034fc2882 100644 --- a/sys-fs/lufs/ChangeLog +++ b/sys-fs/lufs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-fs/lufs # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/ChangeLog,v 1.20 2005/02/02 17:09:33 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/ChangeLog,v 1.21 2005/02/14 19:34:26 genstef Exp $ + + 14 Feb 2005; Stefan Schweizer <genstef@gentoo.org> + +files/lufs-no-kernel.patch, lufs-0.9.7-r3.ebuild: + Fixing configure to not consider kernel sources thanks to Frank Van Damme + <frank.vandamme@student.kuleuven.ac.be> in bug 78790 02 Feb 2005; Stefan Schweizer <genstef@gentoo.org> lufs-0.9.7-r3.ebuild: Removing autofs stuff, because it has no chance to work, thanks to Michael S diff --git a/sys-fs/lufs/files/lufs-no-kernel.patch b/sys-fs/lufs/files/lufs-no-kernel.patch new file mode 100644 index 000000000000..75a67dbf9a1a --- /dev/null +++ b/sys-fs/lufs/files/lufs-no-kernel.patch @@ -0,0 +1,111 @@ +diff -pur lufs-0.9.7.orig/configure.in lufs-0.9.7/configure.in +--- lufs-0.9.7.orig/configure.in 2005-02-07 07:59:18.000000000 +0100 ++++ lufs-0.9.7/configure.in 2005-02-07 07:59:40.000000000 +0100 +@@ -9,107 +9,6 @@ AM_INIT_AUTOMAKE(lufs,0.9.7) + dnl "static" FSs + opt_fs="localfs locasefs ftpfs gnetfs" + +-AC_ARG_ENABLE(kernel-support, +- [ --enable-kernel-support enable building of the kernel module (default=yes)], +- [ KERNEL_SUPPORT=$enableval ],) +- +-if test "$KERNEL_SUPPORT" != "no" +-then +- +- dnl Checking os +- AC_MSG_CHECKING(OS) +- OS_DIR=`uname -s` +- if test ! -d kernel/$OS_DIR +- then +- AC_MSG_ERROR($OS_DIR - not supported!) +- else +- AC_MSG_RESULT($OS_DIR) +- fi +- +- dnl LINUX kernel configuration +- if test "$OS_DIR"="Linux" +- then +- +- dnl Checking kernel & headers +- AC_MSG_CHECKING(kernel) +- AC_ARG_WITH(kernel, +- [ --with-kernel=VERSION specify a kernel version to compile for], +- [KERNEL_VERSION=$withval], +- [KERNEL_VERSION=`uname -r`]) +- MODULES_DIR=/lib/modules/$KERNEL_VERSION +- AC_MSG_RESULT($KERNEL_VERSION) +- +- AC_MSG_CHECKING(kernel support) +- KERNEL_DIR=`echo $KERNEL_VERSION | cut -d'.' -f1,2` +- if test ! -d kernel/$OS_DIR/$KERNEL_DIR +- then +- AC_MSG_ERROR([$KERNEL_DIR not supported!]) +- else +- AC_MSG_RESULT([supported in kernel/$OS_DIR/$KERNEL_DIR]) +- fi +- +- AC_MSG_CHECKING(kernel headers) +- AC_ARG_WITH(kheaders, +- [ --with-kheaders=DIR specify the location of the kernel headers], +- [KERNEL_HDR=$withval], +- [KERNEL_HDR=$MODULES_DIR/build/include]) +- if test ! -f $KERNEL_HDR/linux/fs.h +- then +- AC_MSG_ERROR([not found in $KERNEL_HDR. please install them!]) +- else +- AC_MSG_RESULT([found in $KERNEL_HDR]) +- fi +- +- AC_MSG_CHECKING(kernel configuration) +- if test -f $MODULES_DIR/build/.config +- then +- tmp=`cat $MODULES_DIR/build/.config | grep CONFIG_MODVERSIONS=y` +- if test "$tmp" +- then +- AC_MSG_RESULT([found, using modversions]) +- MODVERSIONS="yes" +-# MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h" +- else +- AC_MSG_RESULT([found, not using modversions]) +- fi +- else +- AC_MSG_RESULT([not found at $MODULES_DIR/build/.config, assuming modversions support]) +- MODVERSIONS="yes" +-# MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h" +- fi +- +- AC_ARG_ENABLE(modversions, +- [ --enable-modversions enable modeversions support (default=auto-detect)], +- [ if test $enableval = "yes"; then MODVERSIONS="yes"; else MODVERSIONS=""; fi ],) +- +- if test $MODVERSIONS; then +- AC_MSG_CHECKING(modversions.h) +- if test -f $KERNEL_HDR/linux/modversions.h; then +- MODV_FILE="$KERNEL_HDR/linux/modversions.h" +- fi +- +- if test -f $KERNEL_HDR/config/modversions.h; then +- MODV_FILE="$KERNEL_HDR/config/modversions.h" +- fi +- +- if test $MODV_FILE; then +- MODV_FLAGS="-DMODVERSIONS -include $MODV_FILE" +- AC_MSG_RESULT([$MODV_FILE]) +- else +- AC_MSG_ERROR([not found!]) +- fi +- fi +- +- AC_SUBST(MODV_FLAGS) +- AC_SUBST(KERNEL_DIR) +- AC_SUBST(MODULES_DIR) +- AC_SUBST(KERNEL_HDR) +- +- fi +-fi +-AC_SUBST(OS_DIR) +- +- + dnl options + AC_ARG_ENABLE(debug, + [ --enable-debug enable debug messages to stdout (default=no)], diff --git a/sys-fs/lufs/lufs-0.9.7-r3.ebuild b/sys-fs/lufs/lufs-0.9.7-r3.ebuild index e0f66f4bd26f..ce7c374217ae 100644 --- a/sys-fs/lufs/lufs-0.9.7-r3.ebuild +++ b/sys-fs/lufs/lufs-0.9.7-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/lufs-0.9.7-r3.ebuild,v 1.4 2005/02/02 17:09:33 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/lufs-0.9.7-r3.ebuild,v 1.5 2005/02/14 19:34:26 genstef Exp $ inherit eutils @@ -13,8 +13,7 @@ SLOT="0" KEYWORDS="x86 ~ppc" IUSE="debug" DEPEND="sys-fs/lufis - || ( =sys-devel/automake-1.7* - =sys-devel/automake-1.8.5-r1 ) + =sys-devel/automake-1.7* =sys-devel/autoconf-2.5*" src_unpack() { @@ -24,6 +23,7 @@ src_unpack() { epatch ${FILESDIR}/${P}-fPIC.patch epatch ${FILESDIR}/lufs-automount-port.diff epatch ${FILESDIR}/${P}-enable-gnome-2.patch + epatch ${FILESDIR}/lufs-no-kernel.patch filesystems="ftpfs localfs sshfs" } @@ -38,8 +38,7 @@ src_compile() { einfo "Compiling for ${filesystems}" unset ARCH - econf --with-kheaders=${ROOT}/usr/include \ - $(use_enable debug) || die + econf $(use_enable debug) || die cd filesystems for i in ${filesystems} |