Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158449 - net-fs/autofs-5.0.1_rc3 version bump
Summary: net-fs/autofs-5.0.1_rc3 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on: 208393
Blocks:
  Show dependency tree
 
Reported: 2006-12-18 04:42 UTC by Dmitry S. Kulyabov
Modified: 2008-02-04 09:08 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-fs/autofs/autofs-5.0.1_rc2.ebuild (autofs-5.0.1_rc2.ebuild,3.00 KB, text/plain)
2006-12-18 04:44 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/patch_list-5.0.1_rc2 (patch_list-5.0.1_rc2,1.66 KB, text/plain)
2006-12-18 04:44 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/autofs-5.0.1_rc3.ebuild (autofs-5.0.1_rc3.ebuild,3.01 KB, text/plain)
2007-01-31 08:47 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/patch_list-5.0.1_rc3 (patch_list-5.0.1_rc3,371 bytes, text/plain)
2007-01-31 08:47 UTC, Dmitry S. Kulyabov
Details
net-fs:autofs-5.0.2:20070620-105529.log buildlog (net-fs:autofs-5.0.2:20070620-105529.log,20.72 KB, text/plain)
2007-06-20 10:59 UTC, Alexander Skwar
Details
net-fs/autofs/autofs-5.0.2.ebuild (autofs-5.0.2.ebuild,3.33 KB, text/plain)
2007-06-21 09:02 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/patch_order-5.0.2 (patch_order-5.0.2,70 bytes, text/plain)
2007-09-12 11:31 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/autofs5.conf (autofs5.conf,1.10 KB, text/plain)
2007-09-12 13:30 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/autofs5.init (autofs5.init,1.99 KB, text/plain)
2007-09-12 13:31 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/auto.smb (auto.smb,558 bytes, text/plain)
2007-09-12 13:32 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/auto.home (auto.home,239 bytes, text/plain)
2007-09-12 13:32 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/autofs_ldap_auth.conf (autofs_ldap_auth.conf,149 bytes, text/plain)
2007-09-12 13:33 UTC, Dmitry S. Kulyabov
Details
fixed version of "net-fs/autofs/files/autofs5.init" (autofs5.init,1.52 KB, text/plain)
2007-09-13 07:53 UTC, Alexander Skwar
Details
Fixed version "autofs-5.0.2.ebuild" (autofs-5.0.2.ebuild,3.29 KB, text/plain)
2007-09-13 07:58 UTC, Alexander Skwar
Details
net-fs/autofs/autofs-5.0.2-r1.ebuild (autofs-5.0.2-r1.ebuild,3.33 KB, text/plain)
2007-11-04 20:02 UTC, Dmitry S. Kulyabov
Details
net-fs/autofs/files/patch_order-5.0.2-r1 (patch_order-5.0.2-r1,1.48 KB, text/plain)
2007-11-04 20:03 UTC, Dmitry S. Kulyabov
Details
autofs-5.0.2-r2.ebuild (autofs-5.0.2-r2.ebuild,2.11 KB, text/plain)
2008-01-12 14:02 UTC, Jonas Jonsson
Details
patch_order-5.0.2-r2 (patch_order-5.0.2-r2,2.74 KB, text/plain)
2008-01-12 14:02 UTC, Jonas Jonsson
Details
autofs5.init for autofs-5.0.2-r2.ebuild (autofs5.init,1.39 KB, text/plain)
2008-01-12 14:04 UTC, Jonas Jonsson
Details
autofs-5.0.3 ebuild (autofs-5.0.3.ebuild,3.70 KB, text/plain)
2008-01-31 17:39 UTC, DrChandra the Gentoo Person
Details
patch order file for version 5.0.3 (patch_order-5.0.3,201 bytes, text/plain)
2008-01-31 17:40 UTC, DrChandra the Gentoo Person
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry S. Kulyabov 2006-12-18 04:42:18 UTC
autofs-5
Comment 1 Dmitry S. Kulyabov 2006-12-18 04:44:14 UTC
Created attachment 104278 [details]
net-fs/autofs/autofs-5.0.1_rc2.ebuild
Comment 2 Dmitry S. Kulyabov 2006-12-18 04:44:35 UTC
Created attachment 104279 [details]
net-fs/autofs/files/patch_list-5.0.1_rc2
Comment 3 Dmitry S. Kulyabov 2007-01-31 08:47:13 UTC
Created attachment 108736 [details]
net-fs/autofs/autofs-5.0.1_rc3.ebuild
Comment 4 Dmitry S. Kulyabov 2007-01-31 08:47:54 UTC
Created attachment 108738 [details]
net-fs/autofs/files/patch_list-5.0.1_rc3
Comment 5 Alexander Skwar 2007-06-20 10:39:12 UTC
FWIW, autofs v5 is now at 5.0.2, released at 2007-06-18.

See ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5
Comment 6 Alexander Skwar 2007-06-20 10:59:36 UTC
Created attachment 122584 [details]
net-fs:autofs-5.0.2:20070620-105529.log buildlog

Furthermore, 5.0.2 doesn't compile with USE=ldap:

gcc -shared -march=pentium-m -O2 -pipe -fomit-frame-pointer -D_REENTRANT -D_REENTRANT -I../include -I../lib -fPIC -D_GNU_SOURCE -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc/autofs\" -o mount_nfs.so \
                mount_nfs.c replicated.o ../lib/autofs.a -lnsl
strip --strip-debug lookup_nisplus.so
strip --strip-debug mount_nfs.so
In file included from cyrus-sasl.c:60:
../include/lookup_ldap.h:42: error: expected specifier-qualifier-list before 'krb5_principal'
cyrus-sasl.c: In function 'sasl_do_kinit':
cyrus-sasl.c:377: error: 'krb5_error_code' undeclared (first use in this function)
cyrus-sasl.c:377: error: (Each undeclared identifier is reported only once
cyrus-sasl.c:377: error: for each function it appears in.)
cyrus-sasl.c:377: error: expected ';' before 'ret'
cyrus-sasl.c:378: error: 'krb5_principal' undeclared (first use in this function)
cyrus-sasl.c:378: error: expected ';' before 'tgs_princ'
cyrus-sasl.c:379: error: 'krb5_creds' undeclared (first use in this function)
cyrus-sasl.c:379: error: expected ';' before 'my_creds'
cyrus-sasl.c:391: error: 'ret' undeclared (first use in this function)
cyrus-sasl.c:391: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:397: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:397: error: 'struct lookup_context' has no member named 'krb5_ccache'
cyrus-sasl.c:401: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:410: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:411: error: 'krb5_client_princ' undeclared (first use in this function)
cyrus-sasl.c:425: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:426: error: 'KRB5_NT_SRV_HST' undeclared (first use in this function)
cyrus-sasl.c:437: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:449: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:453: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:453: error: 'tgs_princ' undeclared (first use in this function)
cyrus-sasl.c:454: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:454: error: invalid type argument of '->'
cyrus-sasl.c:455: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:455: error: invalid type argument of '->'
cyrus-sasl.c:456: error: 'KRB5_TGS_NAME' undeclared (first use in this function)
cyrus-sasl.c:457: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:457: error: invalid type argument of '->'
cyrus-sasl.c:458: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:458: error: invalid type argument of '->'
cyrus-sasl.c:466: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:475: error: 'my_creds' undeclared (first use in this function)
cyrus-sasl.c:476: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:495: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:496: error: 'struct lookup_context' has no member named 'krb5_ccache'
cyrus-sasl.c:509: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:509: error: 'struct lookup_context' has no member named 'krb5_ccache'
cyrus-sasl.c:526: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:531: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:538: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:538: error: 'struct lookup_context' has no member named 'krb5_ccache'
cyrus-sasl.c:540: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:540: error: 'struct lookup_context' has no member named 'krb5_ccache'
cyrus-sasl.c:549: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c: In function 'autofs_sasl_bind':
cyrus-sasl.c:693: error: 'struct lookup_context' has no member named 'sasl_conn'
cyrus-sasl.c: In function 'autofs_sasl_unbind':
cyrus-sasl.c:703: error: 'struct lookup_context' has no member named 'sasl_conn'
cyrus-sasl.c:704: error: 'struct lookup_context' has no member named 'sasl_conn'
cyrus-sasl.c:705: error: 'struct lookup_context' has no member named 'sasl_conn'
cyrus-sasl.c: In function 'autofs_sasl_done':
cyrus-sasl.c:759: error: 'struct lookup_context' has no member named 'sasl_conn'
cyrus-sasl.c:760: error: 'struct lookup_context' has no member named 'sasl_conn'
cyrus-sasl.c:761: error: 'struct lookup_context' has no member named 'sasl_conn'
cyrus-sasl.c:770: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:770: error: 'struct lookup_context' has no member named 'krb5_ccache'
cyrus-sasl.c:772: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:772: error: 'struct lookup_context' has no member named 'krb5_ccache'
cyrus-sasl.c:782: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:787: error: 'struct lookup_context' has no member named 'krb5ctxt'
cyrus-sasl.c:788: error: 'struct lookup_context' has no member named 'krb5_ccache'
make[1]: *** [cyrus-sasl.o] Fehler 1
make[1]: Leaving directory `/Gentoo/Portage/build/portage/net-fs/autofs-5.0.2/work/autofs-5.0.2/modules'
make: *** [daemon] Fehler 2

!!! ERROR: net-fs/autofs-5.0.2 failed.
Call stack:
  ebuild.sh, line 1629:   Called dyn_compile
  ebuild.sh, line 975:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  autofs-5.0.2.ebuild, line 56:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/Gentoo/Portage/logs/net-fs:autofs-5.0.2:20070620-105529.log'.

!!! This ebuild is from an overlay: '/Gentoo/Portage/local-tree/misc'


But I guess that's something for upstream?
Comment 7 Dmitry S. Kulyabov 2007-06-21 09:02:44 UTC
Created attachment 122666 [details]
net-fs/autofs/autofs-5.0.2.ebuild
Comment 8 Alexander Skwar 2007-09-12 11:17:19 UTC
(In reply to comment #7)
> Created an attachment (id=122666) [edit]
> net-fs/autofs/autofs-5.0.2.ebuild

Your ebuild requires a patch_order-5.0.2 file. Could you please upload that as well?

Thanks a lot!

BTW: May we see that autofs-5 is in the tree any time soon?
Comment 9 Dmitry S. Kulyabov 2007-09-12 11:31:20 UTC
Created attachment 130691 [details]
net-fs/autofs/files/patch_order-5.0.2
Comment 10 Alexander Skwar 2007-09-12 11:34:31 UTC
(In reply to comment #9)
> Created an attachment (id=130691) [edit]
> net-fs/autofs/files/patch_order-5.0.2

Thx.

And maybe the used patches as well? :)

eg. autofs-5.0.1-rc3-consistent-dquote-handling.patch
Comment 11 Alexander Skwar 2007-09-12 11:36:25 UTC
Nevermind my last comment...
Comment 12 Alexander Skwar 2007-09-12 11:43:48 UTC
Well, don't completely disregard my (now) 2nd to last comment :)

I installed autofs-5.0.2 using Dmitry's ebuild and during install phase, the following error messages were quickly shown:

install: Aufruf von stat für „/Gentoo/Portage/local-tree/misc/net-fs/autofs/files/auto.home“ nicht möglich: Datei oder Verzeichnis nicht gefunden
install: Aufruf von stat für „/Gentoo/Portage/local-tree/misc/net-fs/autofs/files/autofs_ldap_auth.conf“ nicht möglich: Datei oder Verzeichnis nicht gefunden
install: Aufruf von stat für „/Gentoo/Portage/local-tree/misc/net-fs/autofs/files/auto.smb“ nicht möglich: Datei oder Verzeichnis nicht gefunden
cp: Aufruf von stat für „/Gentoo/Portage/local-tree/misc/net-fs/autofs/files/autofs5.init“ nicht möglich: Datei oder Verzeichnis nicht gefunden
cp: Aufruf von stat für „/Gentoo/Portage/local-tree/misc/net-fs/autofs/files/autofs5.conf“ nicht möglich: Datei oder Verzeichnis nicht gefunden


Ie. the following files are missing:

auto.home
autofs_ldap_auth.conf
auto.smb
autofs5.init
autofs5.conf

Dimitry, could you please upload those files here as well?

Thanks again!
Comment 13 Dmitry S. Kulyabov 2007-09-12 13:30:37 UTC
Created attachment 130706 [details]
net-fs/autofs/files/autofs5.conf
Comment 14 Dmitry S. Kulyabov 2007-09-12 13:31:12 UTC
Created attachment 130707 [details]
net-fs/autofs/files/autofs5.init
Comment 15 Dmitry S. Kulyabov 2007-09-12 13:32:10 UTC
Created attachment 130709 [details]
net-fs/autofs/files/auto.smb
Comment 16 Dmitry S. Kulyabov 2007-09-12 13:32:59 UTC
Created attachment 130711 [details]
net-fs/autofs/files/auto.home
Comment 17 Dmitry S. Kulyabov 2007-09-12 13:33:36 UTC
Created attachment 130713 [details]
net-fs/autofs/files/autofs_ldap_auth.conf
Comment 18 Alexander Skwar 2007-09-12 13:51:27 UTC
I can confirm that 5.0.2 works fine on my system as well.

It would be oh so great to see this version in the tree - "someday" :)
Comment 19 Alexander Skwar 2007-09-13 07:27:32 UTC
Well, sorry to be a PITA, but one more issue...

When I emerge -C autofs-5.0.2, I get the following messages at the end:

[...]
--- !empty   dir /etc/init.d
--- !empty   dir /etc/conf.d
--- !empty   dir /etc/autofs
--- !empty   dir /etc
/var/db/pkg/net-fs/autofs-5.0.2/autofs-5.0.2.ebuild: line 22: /var/db/pkg/net-fs/autofs-5.0.2/files/patch_order-5.0.2: Datei oder Verzeichnis nicht gefunden
/var/db/pkg/net-fs/autofs-5.0.2/autofs-5.0.2.ebuild: line 22: /var/db/pkg/net-fs/autofs-5.0.2/files/patch_order-5.0.2: Datei oder Verzeichnis nicht gefunden
>>> Regenerating /etc/ld.so.cache...

Ie., it cannot find /var/db/pkg/net-fs/autofs-5.0.2/files/patch_order-5.0.2.


I just noticed, that I also get that message during installation.

[...]
>>> /usr/share/man/man8/automount.8.bz2
>>> /usr/share/man/man8/autofs.8.bz2
/Gentoo/Portage/build/portage/net-fs/autofs-5.0.2/build-info/autofs-5.0.2.ebuild: line 22: /Gentoo/Portage/build/portage/net-fs/autofs-5.0.2/build-info/files/patch_order-5.0.2: Datei oder Verzeichnis nicht gefunden
 * Note: If you plan on using autofs for automounting
 * remote NFS mounts without having the NFS daemon running
[...]

--(askwar@winnb000488)-(97/pts/7)-(09:27:17/2007-09-13)--
--($:/etc)-- head -n 22 /Gentoo/Portage/local-tree/misc/net-fs/autofs/autofs-5.0.2.ebuild | tail -n 3

SRC_URI="${SRC_URI_BASE}/${MY_P}.tar.bz2
            ${SRC_PATCHES_URI}"



--($:/Gentoo/Portage/local-tree/misc/net-fs)-- emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r2.r08.mit-ide-mod i686)
=================================================================
System uname: 2.6.22-gentoo-r2.r08.mit-ide-mod i686 Genuine Intel(R) CPU T2400 @ 1.83GHz
Timestamp of tree: Thu, 13 Sep 2007 05:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="buildpkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="        http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/    http://ftp.heanet.ie/pub/gentoo/        http://ftp.gentoo.or.kr/       http://ftp.uni-erlangen.de/pub/mirrors/gentoo/  http://distfiles.gentoo.org/ "
LANG="de_CH.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /Gentoo/Portage/local-tree/misc"
SYNC="rsync://winds03:10873/gentoo-portage"
USE="X acpi alsa berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus dmi doc dri dvd dvdr dvdread encode fam firefox fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility ldap libnotify mad midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs x86 xine xinerama xml xorg xv zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m usb-audio usb-usx3y" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga none"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 20 Alexander Skwar 2007-09-13 07:53:42 UTC
Created attachment 130788 [details]
fixed version of "net-fs/autofs/files/autofs5.init"

(In reply to comment #18)
> I can confirm that 5.0.2 works fine on my system as well.

Well, "fine" would've been better :)

Running "eselect rc stop autofs" doesn't stop autofs. I suppose, that this is so because of the way automount is started:

--($:/etc)-- ps awux|grep autom
root     19048  0.0  0.1   7220  1532 ?        Ssl  09:30   0:00 /usr/sbin/automount --pid-file= /etc/autofs/auto.master

Please notice, that --pid-file= has no value. In the init script, we find:

        start-stop-daemon --start --pidfile $pidfile --quiet \                                                                         
                        --exec $DAEMON -- --pid-file=$pidfile $MASTERMAP                                                               

$pidfile isn't set in that file.

I'll attach a fixed version of the init script. It fixes this issue as well as any other issue I could spot.
Comment 21 Alexander Skwar 2007-09-13 07:58:41 UTC
Created attachment 130789 [details]
Fixed version "autofs-5.0.2.ebuild"

(In reply to comment #7)
> Created an attachment (id=122666) [edit]
> net-fs/autofs/autofs-5.0.2.ebuild
> 

The attached version of the ebuild drops the /var/run/autofs directory. It's not used anymore by the init script and is thus superflous.
Comment 22 Dmitry S. Kulyabov 2007-11-04 20:02:46 UTC
Created attachment 135187 [details]
net-fs/autofs/autofs-5.0.2-r1.ebuild
Comment 23 Dmitry S. Kulyabov 2007-11-04 20:03:33 UTC
Created attachment 135188 [details]
net-fs/autofs/files/patch_order-5.0.2-r1
Comment 24 t35t0r 2007-12-05 18:25:29 UTC
 * Starting automounter ...
/usr/sbin/automount: kernel protocol version 5.00 or above required.
Could not start automount

I'm using vanilla-sources-2.6.22.9 . How do I get autofs5 support into the kernel?  Is there a patch? I have CONFIG_AUTOFS4_FS and CONFIG_AUTOFS_FS enabled in the kernel.

Comment 25 t35t0r 2007-12-05 21:50:32 UTC
> I'm using vanilla-sources-2.6.22.9 . How do I get autofs5 support into the
> kernel?  Is there a patch? I have CONFIG_AUTOFS4_FS and CONFIG_AUTOFS_FS
> enabled in the kernel.

The trick was to completely disable CONFIG_AUTOFS_FS. Since I'm using NIS I found some other problems:

Dec  5 15:37:07 trigger automount[4709]: open_lookup:95: cannot open lookup module nis (/usr/lib/autofs/lookup_nis.so: cannot open shared object file: No such file or directory)

I resolved that issue by doing "ln -s /usr/lib/autofs/lookup_yp.so /usr/lib/autofs/lookup_nis.so"

Dec  5 15:43:24 trigger automount[5747]: open_lookup:95: cannot open lookup module files (/usr/lib/autofs/lookup_files.so: cannot open shared object file: No such file or directory)

I have no idea what that file is or what functionality it provides but you guys may want to look into providing an official fix for both missing files. Other than that, things are working wonderfully for me.
Comment 26 Robert Buchholz (RETIRED) gentoo-dev 2007-12-19 00:54:21 UTC
When bumping this, please take care of CVE-2007-5964.
Comment 27 Robert Buchholz (RETIRED) gentoo-dev 2007-12-22 21:06:01 UTC
.. and CVE-2007-6285.

In case of questions, please CC me to this bug.
Comment 28 t35t0r 2007-12-23 05:12:03 UTC
> Dec  5 15:43:24 trigger automount[5747]: open_lookup:95: cannot open lookup
> module files (/usr/lib/autofs/lookup_files.so: cannot open shared object file:
> No such file or directory)
> 
> I have no idea what that file is or what functionality it provides but you 

ahh lookup_files means local files. I think this works regardless of this error.
Comment 29 Jonas Jonsson 2008-01-12 14:02:32 UTC
Created attachment 140809 [details]
autofs-5.0.2-r2.ebuild

Updated ebuild, cleaner. It only depends on two files, autofs5.init and patch_order-5.0.2-r2. I have only tested it on x86 againast LDAP + StartTLS + auto.master in Ldap.

With the new patches it fixes some LDAP problem I had as well as the CVE-2007-6285
Comment 30 Jonas Jonsson 2008-01-12 14:02:56 UTC
Created attachment 140810 [details]
patch_order-5.0.2-r2
Comment 31 Jonas Jonsson 2008-01-12 14:04:11 UTC
Created attachment 140811 [details]
autofs5.init for autofs-5.0.2-r2.ebuild

I have just removed the restart command (redundant), cvs id tag and updated the copyright year.
Comment 32 DrChandra the Gentoo Person 2008-01-31 17:39:26 UTC
Created attachment 142301 [details]
autofs-5.0.3 ebuild

This will install autofs-5.0.3.
ADDED: symlinks in /usr/lib/autofs to enable nis maps to work.
Comment 33 DrChandra the Gentoo Person 2008-01-31 17:40:37 UTC
Created attachment 142302 [details]
patch order file for version 5.0.3

Patch order file for autofs-5.0.3, to be placed in files directory.
Comment 34 DrChandra the Gentoo Person 2008-01-31 17:44:40 UTC
(In reply to comment #32)
> ADDED: symlinks in /usr/lib/autofs to enable nis maps to work.
> 
See the ${S}/modules/Makefile "install" target to see the symlinks being
created. This addition is the same was what the Redhat spec file does.

Comment 35 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-03 11:40:03 UTC
New maintainer, net-fs/autofs-5.0.3-r1 is now in the tree.  
Comment 36 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-04 09:08:05 UTC
version bump done.

you are invited to test the new ebuild and provide feedback.
thanks