Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 2004 14:48:41 +0400
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/69475: xemacs invalidly calls xargs (witj unexisting -e flag)
Message-ID:  <E1BnxbV-0000i4-73@vbook.fbsd.ru>
Resent-Message-ID: <200407231050.i6NAoN79086766@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69475
>Category:       ports
>Synopsis:       xemacs invalidly calls xargs (witj unexisting -e flag)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 23 10:50:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Grebenschikov
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
SWsoft
>Environment:
System: FreeBSD vbook.fbsd.ru 5.2-CURRENT FreeBSD 5.2-CURRENT #61: Mon Jul 5 07:58:03 MSD 2004 root@walder.sw.ru:/ext/obj/ext/current/src/sys/VBOOK i386

$ pkg_info -I xemacs\*
xemacs-devel-mule-21.5.b16_1 XEmacs(beta version) text editor with mule(Only the executa
xemacs-mule-packages-3.7 XEmacs elisp packages for Mule(mule-packages)
xemacs-packages-10.0 Basic XEmacs elisp packages(xemacs-packages)
$

>Description:

When I call grep-find (or other functions using find... | xargs ...)
xemacs substitute invalid command line:

"find . -type f -print0 | xargs -0 -e grep -n search..."

FreeBSD does bot handle -e xargs key, run failed.

invistegation problem:
$ find /usr/local/lib/xemacs* -name '*.el' | xargs fgrep -- '-0 -e'
/usr/local/lib/xemacs/xemacs-packages/lisp/igrep/igrep.el:      ind ... -print0 | xargs -0 -e grep ...;
/usr/local/lib/xemacs/xemacs-packages/lisp/igrep/igrep.el:                 "%s %s %s %s %s -print0 | xargs -0 -e %s")
/usr/local/lib/xemacs/xemacs-packages/lisp/xemacs-base/compile.el:       (format "find . -type f -print0 | xargs -0 -e %s" grep-comm and))
/usr/local/lib/xemacs/xemacs-packages/lisp/xemacs-base/compile.el:         (format "find . %s %s -type f -print0 | xargs -0 -e %s"
/usr/local/lib/xemacs-21.5-b16/etc/sample.init.el:         (format "find . %s %s -type f -print0 | xargs -0 -e %s"
$

>How-To-Repeat:

Just run xemacs and try something grep-find "M-x grep-find"

>Fix:
Workaround, but not fix, as root:

FILES=`find /usr/local/lib/xemacs* -name '*.el'` 
perl -pi -e 's/xargs -0 -e/xargs -0/g' $FILES
xemacs -batch -f batch-byte-compile $FILES


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BnxbV-0000i4-73>