Re: make rpmdist failure (1.5.0svn)

2006-04-11 Thread Jose' Matos
On Tuesday 11 April 2006 00:02, Kayvan A. Sylvan wrote:
> make[3]: Entering directory `/home/kayvan/src/lyx/qtbuild/lib/doc'
> python ../../../lyx/lib/doc/doc_toc.py
> Traceback (most recent call last):
>   File "../../../lyx/lib/doc/doc_toc.py", line 34, in ?
>     import LyX
>   File "../../../lyx/lib/doc/../lyx2lyx/LyX.py", line 28, in ?
>     import lyx2lyx_version
> ImportError: No module named lyx2lyx_version

  Should not configure.ac have created lyx2lyx_version.py from 
lyx2lyx_version.py.in by now?

  I am puzzled. :-(
-- 
José Abílio


Re: make rpmdist failure (1.5.0svn)

2006-04-11 Thread Jose' Matos
Why does not show lyx2lyx_version.py.in in svn?

in the lyx2lyx directory:

$ svn ls
ChangeLog
LyX.py
Makefile.am
lyx2lyx
lyx_0_10.py
lyx_0_12.py
lyx_1_0_0.py
lyx_1_0_1.py
lyx_1_1_4.py
lyx_1_1_5.py
lyx_1_1_6.py
lyx_1_1_6fix3.py
lyx_1_2.py
lyx_1_3.py
lyx_1_4.py
lyx_1_5.py
parser_tools.py
profiling.py

note that lyx2lyx_version.py.in is absent.

Yet:
$ svn add lyx2lyx_version.py.in
svn: warning: 'lyx2lyx_version.py.in' is already under version control

  Any advice from svn experts? :-)
-- 
José Abílio


Re: make rpmdist failure (1.5.0svn)

2006-04-11 Thread Georg Baum
Jose' Matos wrote:

> Why does not show lyx2lyx_version.py.in in svn?
> 
> in the lyx2lyx directory:
... 
> note that lyx2lyx_version.py.in is absent.

It is not when I do the same here.


Georg



Re: make rpmdist failure (1.5.0svn)

2006-04-11 Thread Lars Gullik Bjønnes
Jose' Matos <[EMAIL PROTECTED]> writes:

| Yet:
| $ svn add lyx2lyx_version.py.in
| svn: warning: 'lyx2lyx_version.py.in' is already under version control
| 
|   Any advice from svn experts? :-)

svn st?

Looks fine from repo side:

[EMAIL PROTECTED] ~]$ svn ls svn://svn.lyx.org/lyx/lyx-devel/trunk/lib/lyx2lyx
ChangeLog
LyX.py
Makefile.am
lyx2lyx
lyx2lyx_version.py.in
lyx_0_10.py
lyx_0_12.py
lyx_1_0_0.py
lyx_1_0_1.py
lyx_1_1_4.py
lyx_1_1_5.py
lyx_1_1_6.py
lyx_1_1_6fix3.py
lyx_1_2.py
lyx_1_3.py
lyx_1_4.py
lyx_1_5.py
parser_tools.py
profiling.py

-- 
Lgb



Re: make rpmdist failure (1.5.0svn)

2006-04-17 Thread Kayvan A. Sylvan
On Tue, Apr 11, 2006 at 01:38:05PM +0200, Georg Baum wrote:
> Jose' Matos wrote:
> 
> > Why does not show lyx2lyx_version.py.in in svn?
> > 
> > in the lyx2lyx directory:
> ... 
> > note that lyx2lyx_version.py.in is absent.
> 
> It is not when I do the same here.

Do a "make dist" then use the resulting tar-ball to try and make
lyx, you will see the problem then. lyx2lyx_version does not make
it into the tarball.

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan, | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | my beautiful Queen.| Robin Gregory (2/28/92)


Re: make rpmdist failure (1.5.0svn)

2006-04-26 Thread Kayvan A. Sylvan
On Tue, Apr 25, 2006 at 09:22:33AM +0200, Lars Gullik Bjønnes wrote:
> "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:
> 
> | On Mon, Apr 24, 2006 at 02:02:44PM +0200, Lars Gullik Bjønnes wrote:
> | > | > ... 
> | > | > > note that lyx2lyx_version.py.in is absent.
> | > | > 
> | > | > It is not when I do the same here.
> | > | 
> | > | Do a "make dist" then use the resulting tar-ball to try and make
> | > | lyx, you will see the problem then. lyx2lyx_version does not make
> | > | it into the tarball.
> | > 
> | > It shoulnd't have to be in the tar ball... only lyx2lyx_version.py.in
> | > should be in the tar ball.
> | > 
> | 
> | Do the experiment. They are both absent from the tarball.
> 
> Yes, and one of them should be absent.
> 
> I added the other.

1) A fresh svn repository, ran autogen.sh.

   ./autogen.sh

2) An empty build dir:

   mkdir qtbuild
   cd qtbuild/

3) Configure it:

   ../lyx/configure --disable-debug --enable-optimization=-O2
   --with-frontend=qt --with-qt-dir=/usr/lib64/qt-3.3
   --with-qt-includes=/usr/lib64/qt-3.3/include
   --with-qt-libraries=/usr/lib64/qt-3.3/lib

   The result:

   Configuration
  Host type:  x86_64-unknown-linux-gnu
  Special build flags:compression aiksaurus assertions pch 
concept-checks stdlib-debug warnings  use-aspell use-ispell
  C   Compiler:   gcc 
  C   Compiler LyX flags:  
  C   Compiler flags: -Wextra -Wall-I/usr/X11R6/include -O2
  C++ Compiler:   g++ (4.0.2)
  C++ Compiler LyX flags:  
  C++ Compiler flags: -Wextra -Wall-I/usr/X11R6/include -O2
  Linker flags:   
  Linker user flags:  
  Qt Frontend:
  Qt version:   3.3.4
  Packaging:  posix
  LyX binary dir: /usr/local/bin
  LyX files dir:  /usr/local/share/lyx

Configuration of LyX was successful.
Type 'make' to compile the program,
and then 'make install' to install it.


4) Now, "make dist" to see the problem:

   make dist

   make[2]: Entering directory `/home/kayvan/src/lyx/qtbuild/lib/doc'
mkdir -p -- 
/home/kayvan/src/lyx/qtbuild/lyx-1.5.0svn/lib/doc/../../../lyx/lib/doc 
/home/kayvan/src/lyx/qtbuild/lyx-1.5.0svn/lib/doc/../../config
make  \
  top_distdir="/home/kayvan/src/lyx/qtbuild/lyx-1.5.0svn" 
distdir="/home/kayvan/src/lyx/qtbuild/lyx-1.5.0svn/lib/doc" \
  dist-hook
make[3]: Entering directory `/home/kayvan/src/lyx/qtbuild/lib/doc'
python ../../../lyx/lib/doc/doc_toc.py
Traceback (most recent call last):
  File "../../../lyx/lib/doc/doc_toc.py", line 34, in ?
import LyX
  File "../../../lyx/lib/doc/../lyx2lyx/LyX.py", line 28, in ?
import lyx2lyx_version
ImportError: No module named lyx2lyx_version
make[3]: *** [TOC.lyx] Error 1
make[3]: Leaving directory `/home/kayvan/src/lyx/qtbuild/lib/doc'
make[2]: *** [distdir] Error 2
make[2]: Leaving directory `/home/kayvan/src/lyx/qtbuild/lib/doc'
make[1]: *** [distdir] Error 1
make[1]: Leaving directory `/home/kayvan/src/lyx/qtbuild/lib'
make: *** [distdir] Error 1




Re: make rpmdist failure (1.5.0svn)

2006-04-27 Thread Lars Gullik Bjønnes
"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

| On Tue, Apr 25, 2006 at 09:22:33AM +0200, Lars Gullik Bjønnes wrote:
| > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:
| > 
| > | On Mon, Apr 24, 2006 at 02:02:44PM +0200, Lars Gullik Bjønnes wrote:
| > | > | > ... 
| > | > | > > note that lyx2lyx_version.py.in is absent.
| > | > | > 
| > | > | > It is not when I do the same here.
| > | > | 
| > | > | Do a "make dist" then use the resulting tar-ball to try and make
| > | > | lyx, you will see the problem then. lyx2lyx_version does not make
| > | > | it into the tarball.
| > | > 
| > | > It shoulnd't have to be in the tar ball... only lyx2lyx_version.py.in
| > | > should be in the tar ball.
| > | > 
| > | 
| > | Do the experiment. They are both absent from the tarball.
| > 
| > Yes, and one of them should be absent.
| > 
| > I added the other.
| 
| 1) A fresh svn repository, ran autogen.sh.
| 
|./autogen.sh
| 
| 2) An empty build dir:
| 
|mkdir qtbuild
|cd qtbuild/
| 
| 3) Configure it:
| 
|../lyx/configure --disable-debug --enable-optimization=-O2
|--with-frontend=qt --with-qt-dir=/usr/lib64/qt-3.3
|--with-qt-includes=/usr/lib64/qt-3.3/include
|--with-qt-libraries=/usr/lib64/qt-3.3/lib

make dist from a build dir?
why? (whatever you used as configure params does not matter then)

I'll see if I can find a fix.

-- 
Lgb


Re: make rpmdist failure (1.5.0svn)

2006-04-27 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:

| I'll see if I can find a fix.

This fix the problem for me. Is this an aceptable fix?
Or should we do the fix through sys.path instead?

(actually with this patch we can get rid of the sys.pach in doc_toc.py
if we want to.)

Index: lib/doc/depend.py
===
--- lib/doc/depend.py   (revision 13762)
+++ lib/doc/depend.py   (working copy)
@@ -68,7 +68,7 @@

 # The default language is english and doesn't need any prefix
 print 'TOC.lyx: $(srcdir)/' + '.lyx
 $(srcdir)/'.join(possible_documents) +
'.lyx'
-print '\tpython $(srcdir)/doc_toc.py'
+print '\tPYTHONPATH=$(top_builddir)/lib/lyx2lyx python
 $(srcdir)/doc_toc.py
'
 print
 tocs = ['TOC.lyx']

@@ -82,7 +82,7 @@
 languages[lang].sort()

 print toc_name + ': $(srcdir)/' + '
 $(srcdir)/'.join(languages[lang])
-print '\tpython $(srcdir)/doc_toc.py %s' % lang
+print '\tPYTHONPATH=$(top_builddir)/lib/lyx2lyx python
 $(srcdir)/doc_to
c.py %s' % lang
 print

 # Write meta-rule to call all the other rules

-- 
Lgb



Re: make rpmdist failure (1.5.0svn)

2006-04-27 Thread Jose' Matos
On Thursday 27 April 2006 15:54, Lars Gullik Bjønnes wrote:
> This fix the problem for me. Is this an aceptable fix?
> Or should we do the fix through sys.path instead?

  It is an acceptable fix, no doubt. :-)

> (actually with this patch we can get rid of the sys.pach in doc_toc.py
> if we want to.)

  True. I will do it later, it does not hurt as it is now. :-)

  Meanwhile I have a thesis to write, something that I should have done 7 or 8 
years ago. :-)

-- 
José Abílio


Re: make rpmdist failure (1.5.0svn)

2006-04-28 Thread Kayvan A. Sylvan
On Thu, Apr 27, 2006 at 04:01:04PM +0100, Jose' Matos wrote:
> On Thursday 27 April 2006 15:54, Lars Gullik Bjønnes wrote:
> > This fix the problem for me. Is this an aceptable fix?
> > Or should we do the fix through sys.path instead?
> 
>   It is an acceptable fix, no doubt. :-)

It worked for me.

My daily builds are now back in operation! Thanks!

This fix, along with ensuring that gcc is not using precompiled
headers, seems to work just fine.

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan, | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | my beautiful Queen.| Robin Gregory (2/28/92)


[EMAIL PROTECTED]: Re: make rpmdist failure (1.5.0svn)]

2006-04-22 Thread Kayvan A. Sylvan
Is anyone looking at this problem?

Do a "make dist" and try to use the tarball. You won't succeed, since
lyx2lyx_version.py is not there.

- Forwarded message from "Kayvan A. Sylvan" <[EMAIL PROTECTED]> -

Date: Mon, 17 Apr 2006 22:54:13 -0700
From: "Kayvan A. Sylvan" <[EMAIL PROTECTED]>
To: lyx-devel@lists.lyx.org
In-Reply-To: <[EMAIL PROTECTED]>
Subject: Re: make rpmdist failure (1.5.0svn)

On Tue, Apr 11, 2006 at 01:38:05PM +0200, Georg Baum wrote:
> Jose' Matos wrote:
> 
> > Why does not show lyx2lyx_version.py.in in svn?
> > 
> > in the lyx2lyx directory:
> ... 
> > note that lyx2lyx_version.py.in is absent.
> 
> It is not when I do the same here.

Do a "make dist" then use the resulting tar-ball to try and make
lyx, you will see the problem then. lyx2lyx_version does not make
it into the tarball.

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan, | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | my beautiful Queen.| Robin Gregory (2/28/92)

- End forwarded message -


Re: [EMAIL PROTECTED]: Re: make rpmdist failure (1.5.0svn)]

2006-04-23 Thread Georg Baum
Am Sonntag, 23. April 2006 05:49 schrieb Kayvan A. Sylvan:
> Is anyone looking at this problem?

Yes, I sent a patch based on Jean-Marcs idea yesterday. I am only awaiting 
input from Lars before it goes in, since he also wanted to have a look.


Georg



Re: [EMAIL PROTECTED]: Re: make rpmdist failure (1.5.0svn)]

2006-04-24 Thread Lars Gullik Bjønnes
"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

| Is anyone looking at this problem?
| 
| Do a "make dist" and try to use the tarball. You won't succeed, since
| lyx2lyx_version.py is not there.
| 
| From: "Kayvan A. Sylvan" <[EMAIL PROTECTED]>
| Subject: Re: make rpmdist failure (1.5.0svn)
| To: lyx-devel@lists.lyx.org
| Date: Mon, 17 Apr 2006 22:54:13 -0700
| 
| On Tue, Apr 11, 2006 at 01:38:05PM +0200, Georg Baum wrote:
| > Jose' Matos wrote:
| > 
| > > Why does not show lyx2lyx_version.py.in in svn?
| > > 
| > > in the lyx2lyx directory:
| > ... 
| > > note that lyx2lyx_version.py.in is absent.
| > 
| > It is not when I do the same here.
| 
| Do a "make dist" then use the resulting tar-ball to try and make
| lyx, you will see the problem then. lyx2lyx_version does not make
| it into the tarball.

It shoulnd't have to be in the tar ball... only lyx2lyx_version.py.in
should be in the tar ball.

-- 
Lgb



Re: [EMAIL PROTECTED]: Re: make rpmdist failure (1.5.0svn)]

2006-04-24 Thread Kayvan A. Sylvan
On Mon, Apr 24, 2006 at 02:02:44PM +0200, Lars Gullik Bjønnes wrote:
> | > ... 
> | > > note that lyx2lyx_version.py.in is absent.
> | > 
> | > It is not when I do the same here.
> | 
> | Do a "make dist" then use the resulting tar-ball to try and make
> | lyx, you will see the problem then. lyx2lyx_version does not make
> | it into the tarball.
> 
> It shoulnd't have to be in the tar ball... only lyx2lyx_version.py.in
> should be in the tar ball.
> 

Do the experiment. They are both absent from the tarball.

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan, | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | my beautiful Queen.| Robin Gregory (2/28/92)


Re: [EMAIL PROTECTED]: Re: make rpmdist failure (1.5.0svn)]

2006-04-25 Thread Lars Gullik Bjønnes
"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

| On Mon, Apr 24, 2006 at 02:02:44PM +0200, Lars Gullik Bjønnes wrote:
| > | > ... 
| > | > > note that lyx2lyx_version.py.in is absent.
| > | > 
| > | > It is not when I do the same here.
| > | 
| > | Do a "make dist" then use the resulting tar-ball to try and make
| > | lyx, you will see the problem then. lyx2lyx_version does not make
| > | it into the tarball.
| > 
| > It shoulnd't have to be in the tar ball... only lyx2lyx_version.py.in
| > should be in the tar ball.
| > 
| 
| Do the experiment. They are both absent from the tarball.

Yes, and one of them should be absent.

I added the other.

-- 
Lgb