[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: autofs doesn't work



On Sun, Aug 01, 2004 at 12:43:14AM -0400, Jimmy Kaplowitz wrote:
> On Wed, Jul 21, 2004 at 10:54:28AM +0200, Jens Schmalzing wrote:
> > The Debian package doesn't work, just use 4.1.3 from kernel.org.
> 
> I actually investigated this problem, and it was a simple matter of
> recompiling the Debian package after updating a header file to have a
> proper conditional compilation case for AMD64. The version of autofs in
> Debian is quite old, and so the header files it contains are derived
> from kernel versions that didn't support AMD64. I should put the revised
> debs on a public site somewhere at some point... if anyone's interested,
> prod me and I'll probably get around to it.

I was able to create the patch based on your tip. Here's how I created working
debs:

# apt-get source autofs
# tar xzf autofs_3.9.99-4.0.0pre10.orig.tar.gz
# cd autofs-3.9.99-4.0.0pre10
# zcat ../autofs_3.9.99-4.0.0pre10-16.diff.gz | patch -p1
# cp -p /var/tmp/autofs-amd64.diff debian/patches/045_amd64
# chmod 755 debian/rules
# dpkg-buildpackage

I've attached the patch. If someone can verify that it works I guess I can
attach it to a bug for autofs.

Ryan
diff -urN autofs-4.0.0pre10.orig/include/linux/auto_fs.h autofs-4.0.0pre10/include/linux/auto_fs.h
--- autofs-4.0.0pre10.orig/include/linux/auto_fs.h	2001-03-27 21:08:23.000000000 -0800
+++ autofs-4.0.0pre10/include/linux/auto_fs.h	2004-08-13 10:45:16.190267528 -0700
@@ -45,7 +45,7 @@
  * If so, 32-bit user-space code should be backwards compatible.
  */
 
-#if defined(__sparc__) || defined(__mips__)
+#if defined(__sparc__) || defined(__mips__) || defined(__amd64__)
 typedef unsigned int autofs_wqt_t;
 #else
 typedef unsigned long autofs_wqt_t;

Reply to: