unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jim Marks <jmm5491@yahoo.com>
Subject: vc-sccs.el sends bad args to cmp(1) via vcdiff script
Date: Wed, 8 Mar 2006 12:14:43 -0800 (PST)	[thread overview]
Message-ID: <20060308201443.29875.qmail@web30611.mail.mud.yahoo.com> (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 

             reply	other threads:[~2006-03-08 20:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-08 20:14 Jim Marks [this message]
2006-03-09 17:21 ` vc-sccs.el sends bad args to cmp(1) via vcdiff script Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060308201443.29875.qmail@web30611.mail.mud.yahoo.com \
    --to=jmm5491@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).