* can't compile Gnus under Cygwin
@ 2002-02-14 1:12 Katsumi Yamaoka
2002-02-14 4:35 ` Katsumi Yamaoka
0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2002-02-14 1:12 UTC (permalink / raw)
Cc: Takenobu Sugiyama
[-- Attachment #1: Type: text/plain, Size: 770 bytes --]
Hi,
It is reported that someone can't compile Gnus under Cygwin.
While compiling toplevel forms in file c:/home/gnus/lisp/earcon.el:
!! File error (("Searching for program" "no such file or directory" "/bin/sh"))
There is c:/cygwin/bin/sh.exe and it can be used as /bin/sh
normally, but it won't be found at the compile time. Since I
don't have Cygwin, I'm not sure what's happened. But it seems
that the use of `shell-command-to-string' in the top level is
harmful for compiling Gnus. Is the attached patch acceptable?
If there's no objection, I'll commit it in Gnus CVS. :-)
2002-02-14 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (gnus-treat-display-xface): Don't use
`shell-command-to-string' when compiling.
(gnus-treat-display-grey-xface): Ditto.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnus-art.el.diff --]
[-- Type: text/x-patch, Size: 792 bytes --]
--- gnus-art.el~ Wed Feb 13 02:20:52 2002
+++ gnus-art.el Thu Feb 14 01:09:29 2002
@@ -1070,7 +1070,8 @@
(put 'gnus-treat-overstrike 'highlight t)
(defcustom gnus-treat-display-xface
- (and (or (and (fboundp 'image-type-available-p)
+ (and (not noninteractive)
+ (or (and (fboundp 'image-type-available-p)
(image-type-available-p 'xbm)
(string-match "^0x" (shell-command-to-string "uncompface")))
(and (featurep 'xemacs)
@@ -1086,7 +1087,8 @@
(put 'gnus-treat-display-xface 'highlight t)
(defcustom gnus-treat-display-grey-xface
- (and (string-match "^0x" (shell-command-to-string "uncompface"))
+ (and (not noninteractive)
+ (string-match "^0x" (shell-command-to-string "uncompface"))
t)
"Display grey X-Face headers.
Valid values are nil, t."
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: can't compile Gnus under Cygwin
2002-02-14 1:12 can't compile Gnus under Cygwin Katsumi Yamaoka
@ 2002-02-14 4:35 ` Katsumi Yamaoka
2002-02-14 15:05 ` ShengHuo ZHU
0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2002-02-14 4:35 UTC (permalink / raw)
>>>>> In <yosuy9hwq331.fsf@jpl.org>
>>>>> Katsumi Yamaoka <yamaoka@jpl.org> wrote:
> But it seems that the use of `shell-command-to-string' in the top
> level is harmful for compiling Gnus.
In connection with this, not only `shell-command-to-string' but
also `shell-command-on-region' uses shell which is specified by
the user option `shell-file-name'.
Documentation:
*File name to load inferior shells from.
Initialized from the SHELL environment variable.
The value of this is "/usr/local/bin/tcsh" in my environment.
Because of this, the function `gnus-convert-gray-x-face-to-xpm'
doesn't work for me and I couldn't see gray X-Faces. :-(
(shell-command-on-region START END "pnmnoraw 2>/dev/null" ...)
=> pnmnoraw: 2 - No such file or directory
It seems that we'd better use `call-process' rather than
shell-command-* functions.
--
Katsumi Yamaoka <yamaoka@jpl.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: can't compile Gnus under Cygwin
2002-02-14 4:35 ` Katsumi Yamaoka
@ 2002-02-14 15:05 ` ShengHuo ZHU
2002-02-14 22:18 ` Katsumi Yamaoka
0 siblings, 1 reply; 4+ messages in thread
From: ShengHuo ZHU @ 2002-02-14 15:05 UTC (permalink / raw)
Katsumi Yamaoka <yamaoka@jpl.org> writes:
[...]
> The value of this is "/usr/local/bin/tcsh" in my environment.
> Because of this, the function `gnus-convert-gray-x-face-to-xpm'
> doesn't work for me and I couldn't see gray X-Faces. :-(
>
> (shell-command-on-region START END "pnmnoraw 2>/dev/null" ...)
> => pnmnoraw: 2 - No such file or directory
>
> It seems that we'd better use `call-process' rather than
> shell-command-* functions.
Done.
ShengHuo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: can't compile Gnus under Cygwin
2002-02-14 15:05 ` ShengHuo ZHU
@ 2002-02-14 22:18 ` Katsumi Yamaoka
0 siblings, 0 replies; 4+ messages in thread
From: Katsumi Yamaoka @ 2002-02-14 22:18 UTC (permalink / raw)
>>>>> In <2nbsesyuhs.fsf@zsh.cs.rochester.edu>
>>>>> ShengHuo ZHU <zsh@cs.rochester.edu> wrote:
>> (shell-command-on-region START END "pnmnoraw 2>/dev/null" ...)
>> => pnmnoraw: 2 - No such file or directory
>> It seems that we'd better use `call-process' rather than
>> shell-command-* functions.
ZSH> Done.
Cool! Thank you very much.
--
Katsumi Yamaoka <yamaoka@jpl.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-02-14 22:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-14 1:12 can't compile Gnus under Cygwin Katsumi Yamaoka
2002-02-14 4:35 ` Katsumi Yamaoka
2002-02-14 15:05 ` ShengHuo ZHU
2002-02-14 22:18 ` Katsumi Yamaoka
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 NNTP newsgroup(s).