[PATCH] do not configure in system_support directory

2006-04-26 Thread Jean-Marc Lasgouttes
This is my long announced patch to remove the need to create lyxrc.defaults and friends in the main support directory (and build directory). I really would like to see some good testing of this one, including on windows and osx. This one is for 1.5, I can provide a 1.4 version if needed. This pat

Re: [PATCH] do not configure in system_support directory

2006-04-26 Thread Angus Leeming
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > This is my long announced patch to remove the need to create > lyxrc.defaults and friends in the main support directory (and build > directory). I really would like to see some good testing of this one, > including on windows and osx. This one is f

Re: [PATCH] do not configure in system_support directory

2006-04-26 Thread Bennett Helm
On Apr 26, 2006, at 10:22 AM, Jean-Marc Lasgouttes wrote: This is my long announced patch to remove the need to create lyxrc.defaults and friends in the main support directory (and build directory). I really would like to see some good testing of this one, including on windows and osx. This one

Re: [PATCH] do not configure in system_support directory

2006-04-26 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> I'll also note that at the moment the installer modifies Angus> configure to output a \path_prefix entry to lyxrc.defaults. As Angus> and when the LyX 1.4 series moves to configure.py, this step Angus> should either be changed to mo

Re: [PATCH] do not configure in system_support directory

2006-04-26 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> This is my long announced patch to remove the need to Jean-Marc> create lyxrc.defaults and friends in the main support Jean-Marc> directory (and build directory). I really would like to see Jean-Marc> some good testin

Re: [PATCH] do not configure in system_support directory

2006-04-26 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On Apr 26, 2006, at 10:22 AM, Jean-Marc Lasgouttes wrote: >> This is my long announced patch to remove the need to create >> lyxrc.defaults and friends in the main support directory (and build >> directory). I really would like

Re: [PATCH] do not configure in system_support directory

2006-04-26 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Comments and testing highly welcome. Works perfectly here. Note that the spec file should be changed, too. Georg

Re: [PATCH] do not configure in system_support directory

2006-04-26 Thread Angus Leeming
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Angus> Thinking about it, LyX will still need to know where sh.exe and Angus> python.exe are. That suggests that you're going to end up with Angus> a chicken-and-egg type problem: You'll need to run configure.py Angus> to generate lyxrc.defaults to r

Re: [PATCH] do not configure in system_support directory

2006-04-26 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Jean-Marc Lasgouttes wrote: >> Comments and testing highly welcome. Georg> Works perfectly here. Note that the spec file should be Georg> changed, too. That is what I meant with 'rpm installer' :) JMarc

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes a écrit : This is my long announced patch to remove the need to create lyxrc.defaults and friends in the main support directory (and build directory). I really would like to see some good testing of this one, including on windows and osx. This one is for 1.5, I can provide a

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jean-Marc Lasgouttes a écrit : >> This is my long announced patch to remove the need to create >> lyxrc.defaults and friends in the main support directory (and build >> directory). I really would like to see some good

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Call it lyxrc.defaults and I'd agree with you I think ;-) I'd like to separate lyxrc.dist and lyxrc.defaults because they are not created by the same mechanism. JMarc

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Angus Leeming
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Angus> Call it lyxrc.defaults and I'd agree with you I think > I'd like to separate lyxrc.dist and lyxrc.defaults because they are > not created by the same mechanism. I've changed my mind: I don't care what it's called actually ;-) A.

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes a écrit : "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jean-Marc Lasgouttes a écrit : This is my long announced patch to remove the need to create lyxrc.defaults and friends in the main support directory (and build directory). I really would li

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes a écrit : "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: [...] Abdelrazak> The patch does not apply cleanly against latest revision Abdelrazak> (configure.py and Makefile.am have changed). Could you Abdelrazak> regenerate against trunk please? I regenerate

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> I regenerated it, but it looks the same to me... Are you sure you >> are up to date? Abdelrazak> Yes, svn says: What is your version of lib/configure.py? JMarc

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes a écrit : "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: I regenerated it, but it looks the same to me... Are you sure you are up to date? Abdelrazak> Yes, svn says: What is your version of lib/configure.py? JMarc svn property tab says 13757 (which is

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Georg Baum
Abdelrazak Younes wrote: > svn property tab says 13757 (which is the last revision) and last > modified at 13744. That is correct. > I erased the two files and svn updated again but the > problem persist. Does TourtoiseSVN not allow to apply the patch anyway? The commandline client creates .re

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Abdelrazak Younes
Georg Baum a écrit : Abdelrazak Younes wrote: svn property tab says 13757 (which is the last revision) and last modified at 13744. That is correct. I erased the two files and svn updated again but the problem persist. Does TourtoiseSVN not allow to apply the patch anyway? No, it allows

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Abdelrazak Younes
Georg Baum a écrit : Abdelrazak Younes wrote: Please find attached my lib/configure.py and lib/Makefile.am so that you can compare to your local version. They are identical to mine, and the patch applies cleanly here. It looks like a bug of TourtoiseSVN then. I send you the patched files. O

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> OK thanks. There's a new version of TortoiseSVN so I'll Abdelrazak> try to upgrade and see to it. Could it be an eol style problem? JMarc

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes a écrit : "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> OK thanks. There's a new version of TortoiseSVN so I'll Abdelrazak> try to upgrade and see to it. Could it be an eol style problem? Nope. I just upgraded TortoiseSVN and I could apply you

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Bennett Helm
On Apr 26, 2006, at 11:13 AM, Jean-Marc Lasgouttes wrote: Bennett> What testing in particular should I do? See whether it still works and begin to look at what parts of your installer could be removed due to that (no reconfigure when starting up). Something that is important with this patch

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> And no, I didn't see that patch -- what thread? It is applied now anyway :) Please test that, with the proper language setting, you can get non-english localization of the menus. JMarc

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Jean-Marc Lasgouttes wrote: >> Comments and testing highly welcome. Georg> Works perfectly here. Note that the spec file should be Georg> changed, too. So shall I apply it to branch and trunk, so that people can adapt their installer

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > So shall I apply it to branch and trunk, so that people can adapt > their installers and see what else is needed? I'd say yes. Georg

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Jean-Marc Lasgouttes wrote: >> So shall I apply it to branch and trunk, so that people can adapt >> their installers and see what else is needed? Georg> I'd say yes. I did that. Packagers, please begin to update your installers to th

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Andre Poenitz
On Thu, Apr 27, 2006 at 12:59:53PM +0200, Abdelrazak Younes wrote: > Jean-Marc Lasgouttes a écrit : > >>"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > > [...] > >Abdelrazak> The patch does not apply cleanly against latest revision > >Abdelrazak> (configure.py and Makefile.am

Re: [PATCH] do not configure in system_support directory

2006-04-27 Thread Abdelrazak Younes
Andre Poenitz a écrit : On Thu, Apr 27, 2006 at 12:59:53PM +0200, Abdelrazak Younes wrote: Jean-Marc Lasgouttes a écrit : "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: [...] Abdelrazak> The patch does not apply cleanly against latest revision Abdelrazak> (configure.py and Make

Re: [PATCH] do not configure in system_support directory

2006-04-28 Thread Andre Poenitz
On Thu, Apr 27, 2006 at 09:03:42PM +0200, Abdelrazak Younes wrote: > >>> I regenerated it, but it looks the same to me... Are you sure you are > >>> up to date? > >> I am up to date and I still cannot apply the patch (same error). I guess > >> this an eol issue. > > > >Just out of curiosity: Is th

Re: [PATCH] do not configure in system_support directory

2006-04-28 Thread Abdelrazak Younes
Andre Poenitz a écrit : On Thu, Apr 27, 2006 at 09:03:42PM +0200, Abdelrazak Younes wrote: I regenerated it, but it looks the same to me... Are you sure you are up to date? I am up to date and I still cannot apply the patch (same error). I guess this an eol issue. Just out of curiosity: Is thi

Re: [PATCH] do not configure in system_support directory

2006-04-30 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: This is my long announced patch to remove the need to create lyxrc.defaults and friends in the main support directory (and build directory). I really would like to see some good testing of this one, including on windows and osx. This one is for 1.5, I can provide a 1.4

Re: [PATCH] do not configure in system_support directory

2006-05-01 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> The idea is to have no lyxrc.defaults, textclass.lst and Joost> packages.lst in the LyX directory but only in the users Joost> directory? Yes. Joost> It doesn't seem to work on Windows. When I start LyX for the Joost> first time,

Re: [PATCH] do not configure in system_support directory

2006-05-01 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> The idea is to have no lyxrc.defaults, textclass.lst and Joost> packages.lst in the LyX directory but only in the users Joost> directory? Yes. Joost> It doesn't seem to work on Windows. When I start LyX fo

Re: [PATCH] do not configure in system_support directory

2006-05-02 Thread Bennett Helm
On Apr 26, 2006, at 11:13 AM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On Apr 26, 2006, at 10:22 AM, Jean-Marc Lasgouttes wrote: This is my long announced patch to remove the need to create lyxrc.defaults and friends in the main support direc

Re: [PATCH] do not configure in system_support directory

2006-05-02 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> It seems to work fine, though accents do not show up Bennett> properly. (That's been a long-standing bug.) In the menus, right? Can you show me how locales look like on your system? Here I have fantomas: locale -a |grep fr_FR f

Re: [PATCH] do not configure in system_support directory

2006-05-02 Thread Bennett Helm
On May 2, 2006, at 9:38 AM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> It seems to work fine, though accents do not show up Bennett> properly. (That's been a long-standing bug.) In the menus, right? Menus and dialogs. (In Preferences dialog, I

Re: [PATCH] do not configure in system_support directory

2006-05-02 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> The idea is to have no lyxrc.defaults, textclass.lst and Joost> packages.lst in the LyX directory but only in the users Joost> directory? Joost> It doesn't seem to work on Windows. When I start LyX for the Joost> first time, I woul

Re: [PATCH] do not configure in system_support directory

2006-05-02 Thread Enrico Forestieri
On Tue, May 02, 2006 at 09:23:20AM -0400, Bennett Helm wrote: > On Apr 26, 2006, at 11:13 AM, Jean-Marc Lasgouttes wrote: > >BTW, did you see the small patch about locale detection? Could you try > >it out? > > It seems to work fine, though accents do not show up properly. > (That's been a long

Re: [PATCH] do not configure in system_support directory

2006-05-02 Thread Bennett Helm
On May 2, 2006, at 1:04 PM, Enrico Forestieri wrote: On Tue, May 02, 2006 at 09:23:20AM -0400, Bennett Helm wrote: On Apr 26, 2006, at 11:13 AM, Jean-Marc Lasgouttes wrote: BTW, did you see the small patch about locale detection? Could you try it out? It seems to work fine, though accent

Re: [PATCH] do not configure in system_support directory

2006-05-02 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: Could you try one of the following patches? They make sure that reconfiguration is done if lyxrc.defaults is not found. JMarc It still doesn't work on Windows. Again, when no configuration files exist, I get the error "unable to find textclass file". It looks like

Re: [PATCH] do not configure in system_support directory

2006-05-02 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> I have the same. (I've been accessing other languages by Bennett> doing "export LANG=FR_fr" and running LyX from the same Bennett> terminal session. What happens if you do export LANG=FR_fr.ISO-8859-1 ? JMarc

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> Jean-Marc Lasgouttes wrote: >> Could you try one of the following patches? They make sure that >> reconfiguration is done if lyxrc.defaults is not found. JMarc Joost> It still doesn't work on Windows. Again, when no configuration J

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: Try these updated patches. This is really embarassing, Georg pointed out the bug a long time ago, but for some reason I did not look at it at the time. Still no difference, same error. Note that it does reconfigure when I put some old textclass.lst in Resources\lyx

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> Jean-Marc Lasgouttes wrote: >> Try these updated patches. This is really embarassing, Georg >> pointed out the bug a long time ago, but for some reason I did not >> look at it at the time. Joost> Still no difference, same error. No

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: Weird. Could you send the result of "lyx -dbg init,tclass"? Initializing LyX::init... About to read lyxrc.dist... Found in c:/Program Files/LyX14/Resources/lyxrc.dist About to read lyxrc.defaults... Not found. About to read preferences... Not found. About to read e

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Bennett Helm
On May 3, 2006, at 2:10 AM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> I have the same. (I've been accessing other languages by Bennett> doing "export LANG=FR_fr" and running LyX from the same Bennett> terminal session. What happens if you do e

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> Jean-Marc Lasgouttes wrote: >> Try these updated patches. This is really embarassing, Georg >> pointed out the bug a long time ago, but for some reason I did not >> look at it at the time. Joost> Still no difference, same error. No

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: Joost> Still no difference, same error. Note that it does reconfigure Joost> when I put some old textclass.lst in Resources\lyx. So it Joost> probably looks for textclass.lst before it gets to this code in Joost> lyx_main.C. Is it that you have lyxrc.defaults, but not

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: >> Is it that you have lyxrc.defaults, but not textclass.lst in your >> user directory. In this case, the following should help. Joost> No, see the debug output I mailed earlier today. This one misses the ... part. Could you add it? Jo

Re: [PATCH] do not configure in system_support directory

2006-05-03 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: Joost> No, see the debug output I mailed earlier today. This one misses the ... part. Could you add it? That part is totally normal, see below. Joost> I have no configuration files (except lyxrc.dist) at all in Joost> both the LyX Resources directory and the user

Re: [PATCH] do not configure in system_support directory

2006-05-04 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: >> And the users directory exists? Joost> That makes no difference, it doesn't work in both cases. LyX Joost> automatically creates the users directory for me. Joost> I expect it to run configure, but it won't do so unless I put Joost> s

Re: [PATCH] do not configure in system_support directory

2006-05-04 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: Is python available when you run LyX? It should be in the path at the first run, I guess. If you added it to extra_path in lyxrc.dist, then the fix would be to load lyxrc.dist before trying to reconfigure. Does this make sense? Python is available and has been add

Re: [PATCH] do not configure in system_support directory

2006-05-04 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> Python is available and has been added to path_prefix in Joost> lyxrc.dist. What is the difference between path_prefix and Joost> extra_path? I meant path_prefix. The problem was that reconfiguration was done before readong lyxrc.d

Re: [PATCH] do not configure in system_support directory

2006-05-05 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: I meant path_prefix. The problem was that reconfiguration was done before readong lyxrc.dist. Try the following (I did not test it). There are still two major issues: * The rest of the code doesn't wait for configure.py to complete. Since this takes a few seconds,

Re: [PATCH] do not configure in system_support directory

2006-05-05 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> There are still two major issues: Joost> * The rest of the code doesn't wait for configure.py to Joost> complete. Since this takes a few seconds, it attempts to read Joost> textclass.lst and friends before they are even generated.

Re: [PATCH] do not configure in system_support directory

2006-05-05 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: Wow! You always manage to both find new bugs... I assume the problem is that system() does not wait for completion on windows, right? Yes, indeed. So how do we execute a program and wait for termination? Look how it is done in the Reconfigure function in lyx_cb.

Re: [PATCH] do not configure in system_support directory

2006-05-05 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: >> So how do we execute a program and wait for termination? Joost> Look how it is done in the Reconfigure function in lyx_cb.C. That is what I did at first, and I came up with the attached. However, then I read systemcall.C, and saw tha

Re: [PATCH] do not configure in system_support directory

2006-05-05 Thread Joost Verburg
Jean-Marc Lasgouttes wrote: Joost> Look how it is done in the Reconfigure function in lyx_cb.C. That is what I did at first, and I came up with the attached. Great, finally it works fine! Please put it in. Joost

Re: [PATCH] do not configure in system_support directory

2006-05-09 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> Jean-Marc Lasgouttes wrote: Look how it is done in the Joost> Reconfigure function in lyx_cb.C. >> That is what I did at first, and I came up with the attached. Joost> Great, finally it works fine! Please put it in. I did so. JMa