From sean-freebsd@farley.org  Wed Oct 29 00:07:22 2008
Return-Path: <sean-freebsd@farley.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 784DA106564A;
	Wed, 29 Oct 2008 00:07:22 +0000 (UTC)
	(envelope-from sean-freebsd@farley.org)
Received: from mail.farley.org (farley.org [67.64.95.201])
	by mx1.freebsd.org (Postfix) with ESMTP id 369FC8FC08;
	Wed, 29 Oct 2008 00:07:22 +0000 (UTC)
	(envelope-from sean-freebsd@farley.org)
Received: from thor.farley.org (root@thor.farley.org [192.168.1.5])
	by mail.farley.org (8.14.3/8.14.3) with ESMTP id m9SNZY26017345;
	Tue, 28 Oct 2008 18:35:34 -0500 (CDT)
	(envelope-from sean-freebsd@mail.farley.org)
Received: from thor.farley.org (localhost [127.0.0.1])
	by thor.farley.org (8.14.3/8.14.3) with ESMTP id m9SNZYjP032993;
	Tue, 28 Oct 2008 18:35:34 -0500 (CDT)
	(envelope-from sean-freebsd@thor.farley.org)
Received: (from root@localhost)
	by thor.farley.org (8.14.3/8.14.3/Submit) id m9SNZYu3032992;
	Tue, 28 Oct 2008 18:35:34 -0500 (CDT)
	(envelope-from sean-freebsd)
Message-Id: <200810282335.m9SNZYu3032992@thor.farley.org>
Date: Tue, 28 Oct 2008 18:35:34 -0500 (CDT)
From: "Sean C. Farley" <scf@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: des@freebsd.org
Subject: [PATCH] shells/zsh: mount completion fixes
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         128450
>Category:       ports
>Synopsis:       [PATCH] shells/zsh: mount completion fixes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 29 00:10:01 UTC 2008
>Closed-Date:    Wed Oct 29 14:50:11 UTC 2008
>Last-Modified:  Wed Oct 29 14:50:11 UTC 2008
>Originator:     Sean C. Farley
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD thor.farley.org 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0 r183960M: Thu Oct 16 16:37:00 CDT
>Description:
Improved the completion of mount for zsh:
- Renamed iso9660 to cd9660.
- Appended fs to msdos, null and union for the -t option completion.
- Added descriptions to the msdosfs options.

Added file(s):
- files/patch-Completion-Unix-Types-_file_systems

These patches were also submitted upstream.

Port maintainer (des@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- zsh-4.3.6_7.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/shells/zsh.orig/files/patch-Completion-Unix-Command-_mount /usr/ports/shells/zsh/files/patch-Completion-Unix-Command-_mount
--- /usr/ports/shells/zsh.orig/files/patch-Completion-Unix-Command-_mount	2007-08-21 19:06:30.769116000 -0500
+++ /usr/ports/shells/zsh/files/patch-Completion-Unix-Command-_mount	2008-10-28 18:22:46.986080000 -0500
@@ -1,13 +1,105 @@
---- Completion/Unix/Command/_mount.orig	2006-05-28 13:46:56.000000000 -0500
-+++ Completion/Unix/Command/_mount	2007-08-20 21:22:22.000000000 -0500
-@@ -859,8 +859,8 @@
+--- Completion/Unix/Command/_mount.orig	2008-01-22 04:13:35.000000000 -0600
++++ Completion/Unix/Command/_mount	2008-10-28 18:23:46.000000000 -0500
+@@ -41,10 +41,10 @@
+ 
+ local curcontext="$curcontext" state line expl suf ret=1
+ local args deffs=iso9660 tmp typeops=-t _nfs_access _fs_nfs _nfs_ufs \
+-_fs_ufs _fs_efs _fs_iso9660 _fs_cachefs _fs_s5fs _fs_tmpfs _fs_pcfs _fs_hsfs \
+-_fs_advfs _fs_cdfs _fs_affs _fs_ext2 _fs_fat _fs_ext3 _fs_msdos _fs_umsdos \
+-_fs_vfat _fs_hpfs _fs_ntfs _fs_reiserfs _fs_smbfs _fs_xfs _fs_std _fs_devfs \
+-_fs_fdesc _fs_kernfs _fs_linprocfs _fs_procfs
++_fs_ufs _fs_efs _fs_cd9660 _fs_iso9660 _fs_cachefs _fs_s5fs _fs_tmpfs _fs_pcfs \
++_fs_hsfs _fs_advfs _fs_cdfs _fs_affs _fs_ext2 _fs_fat _fs_ext3 _fs_msdos \
++_fs_msdosfs _fs_umsdos _fs_vfat _fs_hpfs _fs_ntfs _fs_reiserfs _fs_smbfs \
++_fs_xfs _fs_std _fs_devfs _fs_fdesc _fs_kernfs _fs_linprocfs _fs_procfs
+ 
+ typeset -A opt_args
+ 
+@@ -527,7 +527,7 @@
+       'swidth[specify stripe width]:size'
+     )
+     ;;
+-  *freebsd*|dragonfly*)
++  freebsd*|dragonfly*)
+     _fs_any=(
+       '(sync)async[do all I/O asynchronously]'
+       'current[use current options on already mounted file system]'
+@@ -548,12 +548,12 @@
+       'update[change status of already mounted filesystem]'
+       'union[cause the namespace at the mount point to appear as the union of the mounted filesystem and the existing directory]'
+     )
+-    _fs_iso9660=(
+-      'extatt[enable use of extended attributes]'
+-      "gens[don't strip version number on files]"
+-      "joliet[don't use any Joliet extensions]"
+-      "rrip[don't use any Rockridge extensions]"
+-      'strictjoliet[relax checking for Supplementary Volume Descriptor Flags field which is set to a wrong value on some Joliet formatted disks]'
++    _fs_cd9660=(
++      'extatt[enable the use of extended attributes]'
++      'gens[do not strip version numbers on files]'
++      'nojoliet[do not use any Joliet extensions]'
++      'norrip[do not use any Rockridge extensions]'
++      'nostrictjoliet[relax checking for Supplementary Volume Descriptor Flags field]'
+     )
+     _fs_std=(
+       "nodev[don't interpret devices]"
+@@ -568,10 +568,13 @@
+     _fs_linprocfs=( "$_fs_std[@]" )
+     _fs_procfs=( "$_fs_std[@]" )
+     _fs_msdos=(
+-      'shortnames[]'
+-      'longnames[]'
+-      'nowin95[]'
++      'shortnames[force only the old MS-DOS 8.3 style filenames to be visible]'
++      'longnames[force Windows 95 long filenames to be visible]'
++      'nowin95[completely ignore Windows 95 extended file information]'
+     )
++    if [[ "${OSTYPE}" =~ freebsd.* ]]; then
++      _fs_msdosfs=( "$_fs_msdos[@]" )
++    fi
+     ;;
+   esac
+ fi
+@@ -682,7 +685,7 @@
+     deffs=hsfs
+     typeops=-F
+     ;;
+-  *freebsd*|dragonfly*)
++  freebsd*|dragonfly*)
+     args=( -s
+       '(:)-a[mount all filesystems in fstab]'
+       '-d[cause everything to be done except for the actual system call]'      
+@@ -757,7 +760,7 @@
+ 	'*:dev or dir:->udevordir'
+       )
+     ;;
+-    *freebsd*|dragonfly*)
++    freebsd*|dragonfly*)
+       args=(
+ 	'(*)-a[unmount all mounted file systems]'
+ 	'-A[unmount all mounted file systems except the root]'
+@@ -819,7 +822,7 @@
+   fi
+ 
+   case "$OSTYPE" in
+-  *freebsd*|dragonfly*)
++  freebsd*|dragonfly*)
+     while read mline; do 
+       case $mline[(w)1] in
+ 	\#* )
+@@ -861,8 +864,13 @@
      ;;
    *)
      /sbin/mount | while read mline; do
 -      mp_tmp+=( $mline[(w)1] )
 -      dev_tmp+=( $mline[(w)3] )
-+      dev_tmp+=( $mline[(w)1] )
-+      mp_tmp+=( $mline[(w)3] )
++      if [[ "$OSTYPE" =~ .*freebsd.* ]]; then
++        dev_tmp+=( $mline[(w)1] )
++        mp_tmp+=( $mline[(w)3] )
++      else
++        mp_tmp+=( $mline[(w)1] )
++        dev_tmp+=( $mline[(w)3] )
++      fi
      done
      ;;
    esac
diff -ruN --exclude=CVS /usr/ports/shells/zsh.orig/files/patch-Completion-Unix-Types-_file_systems /usr/ports/shells/zsh/files/patch-Completion-Unix-Types-_file_systems
--- /usr/ports/shells/zsh.orig/files/patch-Completion-Unix-Types-_file_systems	1969-12-31 18:00:00.000000000 -0600
+++ /usr/ports/shells/zsh/files/patch-Completion-Unix-Types-_file_systems	2008-10-28 18:22:46.986080000 -0500
@@ -0,0 +1,19 @@
+--- Completion/Unix/Type/_file_systems.orig	2007-09-27 07:00:03.000000000 -0500
++++ Completion/Unix/Type/_file_systems	2008-10-28 18:23:01.000000000 -0500
+@@ -17,8 +17,14 @@
+   osf*) fss=( advfs ufs nfs mfs cdfs ) ;;
+   solaris*) fss=( ufs nfs hsfs s5fs pcfs cachefs tmpfs ) ;;
+   freebsd*|dragonfly*)
+-    fss=( cd9660 devfs ext2fs fdesc kernfs linprocfs mfs msdos nfs 
+-          ntfs null nwfs portal procfs std udf ufs umap union )
++    if [[ "${OSTYPE}" =~ freebsd.* ]]; then
++      fsext="fs"
++    else
++      fsext=""
++    fi
++    fss=( cd9660 devfs ext2fs fdesc kernfs linprocfs mfs msdos${fsext} nfs
++          ntfs null${fsext} nwfs portal procfs smbfs std udf ufs umap
++          union${fsext} )
+   ;;
+   darwin*)
+     fss=( afp cd9660 cddafs devfs fdesc hfs lfs msdos nfs
--- zsh-4.3.6_7.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->des 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Oct 29 00:10:12 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=128450 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/128450: commit references a PR
Date: Wed, 29 Oct 2008 14:43:13 +0000 (UTC)

 des         2008-10-29 14:42:58 UTC
 
   FreeBSD ports repository
 
   Modified files:
     shells/zsh           Makefile 
     shells/zsh/files     patch-Completion-Unix-Command-_mount 
   Added files:
     shells/zsh/files     patch-Completion-Unix-Type-_file_systems 
   Log:
   Various command completion improvements for mount(8).
   
   PR:             ports/128450
   Submitted by:   scf@
   
   Revision  Changes    Path
   1.104     +1 -1      ports/shells/zsh/Makefile
   1.2       +97 -5     ports/shells/zsh/files/patch-Completion-Unix-Command-_mount
   1.1       +15 -0     ports/shells/zsh/files/patch-Completion-Unix-Type-_file_systems (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Wed Oct 29 14:50:10 UTC 2008 
State-Changed-Why:  
Committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=128450 
>Unformatted:
