summaryrefslogtreecommitdiff
path: root/sys-fs/lufs/files/lufs-no-kernel.patch
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-fs/lufs/files/lufs-no-kernel.patch
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-fs/lufs/files/lufs-no-kernel.patch')
-rw-r--r--sys-fs/lufs/files/lufs-no-kernel.patch111
1 files changed, 111 insertions, 0 deletions
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)],