Lesstif update II
Brian Ford
ford@vss.fsi.com
Fri Feb 28 18:44:00 GMT 2003
On Fri, 28 Feb 2003, Harold L Hunt II wrote:
> Oh... I don't think that will work because I don't believe that the
> Cygwin installer guarantees installation order (or maybe it was the
> order that the post-install scripts were run in)... but I could be wrong.
>
Doh! It is the post install installation order that is not guaranteed. I
think the actual install order does take into account dependencies.
> On the other hand, you could just add the same code that creates the
> links to the lesstif package... that way the links would be sure to
> exist no matter what.
>
This just seems like a hack. Surely lesstif is not the only package that
tries to install its app-defaults in /usr/X11R6/lib/X11/app-defaults.
Attached is a new XFree86-lib.sh post install script that implements the
method described in programs/Xserver/hw/xfree86/doc/Install section 4.2
"Installing over an old installation". Please release a new XFree86-lib
with this fix.
I will consider changing the lesstif package to install its app-defaults
in /etc/X11 in the future if it does not appear to be too painful.
Thanks.
> Brian Ford wrote:
>
> > It seems to me that a simple and maybe correct solution would just be to
> > have the lesstif package require the Xlib package. That seems to make
> > sense and would assure that the links are made before lesstif (mwm) tries
> > to put something there. What do you think about that?
> >
> > On Thu, 27 Feb 2003, Harold L Hunt II wrote:
> >
> >>I honestly don't know why. I think it was something that was done by
> >>the Xinstall.sh script. Someone else with more X knowledge will have to
> >>answer this question... however, I am perfectly willing to accept a
> >>patch that maybe prevents the links from being created if the
> >>directories already exist. Or something along those lines.
> >>
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444
-------------- next part --------------
#!/bin/sh
Xconfig=/usr/X11R6/lib/X11
etcXconfig=/etc/X11
mkdir -p $etcXconfig
subconfigs="app-defaults fs lbxproxy proxymngr rstart twm xdm xinit xsm xserver"
for dir in $subconfigs; do
mkdir -p $etcXconfig/$dir
if test -d $Xconfig/$dir; then
tar -C $Xconfig/$dir -cf - . | tar -C $etcXconfig/$dir -xvpUf - && \
rm -rf $Xconfig/$dir
fi
ln -sf $etcXconfig/$dir $Xconfig
done
More information about the Cygwin-xfree
mailing list