autofs-5
Created attachment 104278 [details] net-fs/autofs/autofs-5.0.1_rc2.ebuild
Created attachment 104279 [details] net-fs/autofs/files/patch_list-5.0.1_rc2
Created attachment 108736 [details] net-fs/autofs/autofs-5.0.1_rc3.ebuild
Created attachment 108738 [details] net-fs/autofs/files/patch_list-5.0.1_rc3
FWIW, autofs v5 is now at 5.0.2, released at 2007-06-18. See ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5
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?
Created attachment 122666 [details] net-fs/autofs/autofs-5.0.2.ebuild
(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?
Created attachment 130691 [details] net-fs/autofs/files/patch_order-5.0.2
(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
Nevermind my last comment...
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!
Created attachment 130706 [details] net-fs/autofs/files/autofs5.conf
Created attachment 130707 [details] net-fs/autofs/files/autofs5.init
Created attachment 130709 [details] net-fs/autofs/files/auto.smb
Created attachment 130711 [details] net-fs/autofs/files/auto.home
Created attachment 130713 [details] net-fs/autofs/files/autofs_ldap_auth.conf
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" :)
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
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.
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.
Created attachment 135187 [details] net-fs/autofs/autofs-5.0.2-r1.ebuild
Created attachment 135188 [details] net-fs/autofs/files/patch_order-5.0.2-r1
* 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.
> 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.
When bumping this, please take care of CVE-2007-5964.
.. and CVE-2007-6285. In case of questions, please CC me to this bug.
> 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.
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
Created attachment 140810 [details] patch_order-5.0.2-r2
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.
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.
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.
(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.
New maintainer, net-fs/autofs-5.0.3-r1 is now in the tree.
version bump done. you are invited to test the new ebuild and provide feedback. thanks