all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* vc-sccs.el sends bad args to cmp(1) via vcdiff script
@ 2006-03-08 20:14 Jim Marks
  2006-03-09 17:21 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Marks @ 2006-03-08 20:14 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing
list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.4.1 (sparc-sun-solaris2.8, X toolkit)
 of 2005-12-14 on pkg-build
configured using `configure  --prefix=/pkg/gnu
--x-includes=/usr/openwin/include:/usr/dt/include
--x-libraries=/usr/openwin/lib:/usr/dt/lib --with-x
--with-x-toolkit=athena --without-toolkit-scroll-bars --with-xpm
--with-tiff --with-jpeg --with-gif --with-png'
Important settings:
  value of $LC_ALL: C
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: C
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

This problem surfaces on Sun Solaris when trying to use
version control with SCCS as the backend.

The source file gnu/share/emacs/21.4/lisp/vc-sccs.el has the following
defun:

(defun vc-sccs-workfile-unchanged-p (file)
  "SCCS-specific implementation of vc-workfile-unchanged-p."
  (zerop (apply 'vc-do-command nil 1 "vcdiff" (vc-name file)
                (list "--brief" "-q"
                      (concat "-r" (vc-workfile-version file))))))

The important thing here is that the "--brief" option gets passed
to vcdiff as well as the "-r" option.

On my system, vcdiff is a helper script in

gnu/libexec/emacs/21.4/sparc-sun-solaris2.8/vcdiff

It contains this code:


                case $f in
                --brief)
                        DIFF=cmp;;

and, later, executes $DIFf.  This causes cmp to be invoked
with a "-r" option.  I can't find any Unix-clone on which
cmp(1) takes "-r".  This will always cause certain vc operations
to fail on systems where SCCS is the vc backend.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: vc-sccs.el sends bad args to cmp(1) via vcdiff script
  2006-03-08 20:14 vc-sccs.el sends bad args to cmp(1) via vcdiff script Jim Marks
@ 2006-03-09 17:21 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-03-09 17:21 UTC (permalink / raw)


Jim Marks wrote:
 > This problem surfaces on Sun Solaris when trying to use
 > version control with SCCS as the backend.
 >
 > The source file gnu/share/emacs/21.4/lisp/vc-sccs.el has the following
 > defun:
 >
 > (defun vc-sccs-workfile-unchanged-p (file)
 >   "SCCS-specific implementation of vc-workfile-unchanged-p."
 >   (zerop (apply 'vc-do-command nil 1 "vcdiff" (vc-name file)
 >                 (list "--brief" "-q"
 >                       (concat "-r" (vc-workfile-version file))))))
 >
 > The important thing here is that the "--brief" option gets passed
 > to vcdiff as well as the "-r" option.
 >
 > On my system, vcdiff is a helper script in
 >
 > gnu/libexec/emacs/21.4/sparc-sun-solaris2.8/vcdiff
 >
 > It contains this code:
 >
 >
 >                 case $f in
 >                 --brief)
 >                         DIFF=cmp;;
 >
 > and, later, executes $DIFf.  This causes cmp to be invoked
 > with a "-r" option.  I can't find any Unix-clone on which
 > cmp(1) takes "-r".  This will always cause certain vc operations
 > to fail on systems where SCCS is the vc backend.

Are you sure?  I have 21.4 installed, and the vcdiff script also
processes the -rSID1 and -rSID2 options so that they are not passed to
cmp:

		-r?*)
			case $sid1 in
			'')
				sid1=$f
				;;
			*)
				case $sid2 in
				?*) echo "$usage" >&2; exit 2 ;;
				esac
				sid2=$f
				;;
			esac
			;;

Perhaps your problem is that vc-workfile-version is returning nil, which
would cause "-r" to be passed to vcdiff, which it cannot handle.

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-09 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 20:14 vc-sccs.el sends bad args to cmp(1) via vcdiff script Jim Marks
2006-03-09 17:21 ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.