Re: Problems with xedit, xcalc, xfontsel, emacs

2002-11-12 Thread Igor Pechtchanski
On Tue, 12 Nov 2002, Frank-Michael Moser wrote:

> > It seems that a simlink is broken.
>
> ... but I wonder what is the reason for that.
>
> I had the same problem on my machine. After a lot of debugging I gave up
> for the first time. Then I installed Cygwin with XFree on a friend's box
> and - voila - xedit&co worked fine.
>
> So I decided to reinstall my Cygwin. First I renamed the old Cygwin
> folder and removed all entries from the registry. Then I installed
> everything what I had in my old local package directory from
> ftp://mirrors.rcn.net. But ;( the same problem again.
>
> The only difference (checking cygcheck) to my friend's box was that on
> his box I only installed a subset of my packages. Now I guess that this
> must be a problem which is related to the order of installing certain
> X-packages. There must be a package which creates app-defaults as a
> regular folder before any symbolic link is created such that instead of
>
>moser@PIP /tmp/test
>$ ls -l
>drwxr-xr-x2 moserKein   0 Nov 12 18:51 a/
>total 0
>
>moser@PIP /tmp/test
>$ ln -s a b
>
>moser@PIP /tmp/test
>$ ls -l
>total 0
>drwxr-xr-x2 moserKein0 Nov 12 18:51 a/
>lrwxrwxrwx1 moserKein   82 Nov 12 18:51 b -> a/
>
> later it looks like this:
>
>moser@PIP /tmp/test
>$ ls -l
>total 0
>drwxr-xr-x2 moserKein0 Nov 12 18:51 a/
>drwxr-xr-x2 moserKein0 Nov 12 18:53 b/
>
>moser@PIP /tmp/test
>$ ln -s a b
>
>moser@PIP /tmp/test
>$ ls -l
>total 0
>drwxr-xr-x2 moserKein0 Nov 12 18:51 a/
>drwxr-xr-x2 moserKein0 Nov 12 18:54 b/
>
>moser@PIP /tmp/test
>$ ls -l b
>total 0
>lrwxrwxrwx1 moserKein   82 Nov 12 18:54 a -> a
>
> I guess the package which installs app-defaults/Mwm must be culprit.
>
> Frank-Michael

Frank-Michael,
Actions of this sort (creating symbolic links, directories, etc) are
usually performed in postinstall scripts.  The postinstall scripts remain
after they are executed, but are renamed to .done.  They are
located in /etc/postinstall.  If you suspect a particular package, you
should be able to browse through its postinstall script.  If there is
indeed a bug (as you seem to indicate), I'm sure the maintainer of the
package would appreciate a patch (or at least a note on how to fix
things).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51




Re: Problems with xedit, xcalc, xfontsel, emacs

2002-11-12 Thread Frank-Michael Moser


It seems that a simlink is broken.


... but I wonder what is the reason for that.

I had the same problem on my machine. After a lot of debugging I gave up 
for the first time. Then I installed Cygwin with XFree on a friend's box 
and - voila - xedit&co worked fine.

So I decided to reinstall my Cygwin. First I renamed the old Cygwin 
folder and removed all entries from the registry. Then I installed 
everything what I had in my old local package directory from 
ftp://mirrors.rcn.net. But ;( the same problem again.

The only difference (checking cygcheck) to my friend's box was that on 
his box I only installed a subset of my packages. Now I guess that this 
must be a problem which is related to the order of installing certain 
X-packages. There must be a package which creates app-defaults as a 
regular folder before any symbolic link is created such that instead of

  moser@PIP /tmp/test
  $ ls -l
  drwxr-xr-x2 moserKein   0 Nov 12 18:51 a/
  total 0

  moser@PIP /tmp/test
  $ ln -s a b

  moser@PIP /tmp/test
  $ ls -l
  total 0
  drwxr-xr-x2 moserKein0 Nov 12 18:51 a/
  lrwxrwxrwx1 moserKein   82 Nov 12 18:51 b -> a/

later it looks like this:

  moser@PIP /tmp/test
  $ ls -l
  total 0
  drwxr-xr-x2 moserKein0 Nov 12 18:51 a/
  drwxr-xr-x2 moserKein0 Nov 12 18:53 b/

  moser@PIP /tmp/test
  $ ln -s a b

  moser@PIP /tmp/test
  $ ls -l
  total 0
  drwxr-xr-x2 moserKein0 Nov 12 18:51 a/
  drwxr-xr-x2 moserKein0 Nov 12 18:54 b/

  moser@PIP /tmp/test
  $ ls -l b
  total 0
  lrwxrwxrwx1 moserKein   82 Nov 12 18:54 a -> a

I guess the package which installs app-defaults/Mwm must be culprit.

Frank-Michael



Re: Re: Problems with xedit, xcalc, xfontsel, emacs

2002-11-12 Thread Dirk.Buehler
Hi Gilles, 

thanks for your quick help.  Indeed it seems that in /usr/X11R6/lib/X11 there 
existed two entries for "app-defaults".  One was a *.lnk and the other was a 
regular Windows folder that contained the same files as indicated in your 
email. 

I renamed the Windows folder and xedit & co work.  The emacs problem seems to 
be a different one, however.

Cheers,
Dirk





Re: Problems with xedit, xcalc, xfontsel, emacs

2002-11-12 Thread gilles civario
It seems that a simlink is broken.

civario@HEPATIQUE ~
$ ls -l /usr/X11R6/lib/X11/app-defaults/
total 9
-rwxrwxrwx1 Administ Aucun8779 May 11  2002 Mwm*
lrwxrwxrwx1 civario  Aucun 131 Jun  6 09:52 app-defaults -> /etc/X11/app-defaults/
civario@HEPATIQUE ~
$ xedit point.f
Error: Shell widget fileMenu has zero width and/or height
civario@HEPATIQUE ~
$ export  XENVIRONMENT=/etc/X11/app-defaults/Xedit
civario@HEPATIQUE ~
$ xedit point.f
(it works)

Gilles.




Problems with xedit, xcalc, xfontsel, emacs

2002-11-11 Thread Dirk.Buehler
Hi, 

after a recent update of my cygwin installation on windows 2000, I have 
experienced the same problems with xedit and xcalc, as described previously in 
http://sources.redhat.com/ml/cygwin-xfree/2002-06/msg00372.html . 

Specifically the problems are:

- xedit fails with "Error: Shell widget fileMenu has zero width and/or height"
- xcalc shows incorrect layout
- xfontsel shows incorrect layout and displays "Warning: app-defaults file not 
properly installed."
- emacs does not start up but consumes nearly 100% of the cpu time

I have not been using ntsec so far, and the proposed changes to /etc/passwd do 
not seem to have an effect on the behaviour of the above applications.  I did 
not have the xterm problem.

I would be very grateful for any hints to resolve the problem.

Best regards,
Dirk