Re: make rpmdist failing

2023-07-26 Thread Richard Kimberly Heck

On 7/26/23 18:46, Pavel Sanda wrote:

On Mon, Jul 24, 2023 at 07:51:07PM -0400, Richard Kimberly Heck wrote:

Documentation in lyx.rpm.README mentions qt4 + i386, I'm not sure how
much is our rpm-build being used during recent years...

Yes, that seems to fix it. It's using Qt5, as far as I can see.

It's now in.


Thanks!

Riki


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist failing

2023-07-26 Thread Pavel Sanda
On Mon, Jul 24, 2023 at 07:51:07PM -0400, Richard Kimberly Heck wrote:
> >Documentation in lyx.rpm.README mentions qt4 + i386, I'm not sure how
> >much is our rpm-build being used during recent years...
> 
> Yes, that seems to fix it. It's using Qt5, as far as I can see.

It's now in. Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist failing

2023-07-25 Thread Scott Kostyshak
On Mon, Jul 24, 2023 at 07:51:07PM -0400, Richard Kimberly Heck wrote:
> On 7/24/23 05:52, Pavel Sanda wrote:
> > On Sun, Jul 23, 2023 at 08:19:29PM -0400, Richard Kimberly Heck wrote:
> > > RPM build errors:
> > >      Installed (but unpackaged) file(s) found:
> > >     /usr/share/metainfo/org.lyx.LyX.metainfo.xml
> > > 
> > Does this patch help?
> > 
> > Documentation in lyx.rpm.README mentions qt4 + i386, I'm not sure how
> > much is our rpm-build being used during recent years...
> 
> Yes, that seems to fix it. It's using Qt5, as far as I can see.
> 
> Scott suggested a while back I do this instead of installing directly, the
> thought being that constantly over-writing my installation with new updates
> could lead to problems, or at least to stray files that never get removed.

Indeed, I think I learned that from Kornel. I can install with a .deb and that 
way it is easy to uninstall. Perhaps checkinstall is an alternative, but I 
never tried it.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist failing

2023-07-24 Thread Richard Kimberly Heck

On 7/24/23 05:52, Pavel Sanda wrote:

On Sun, Jul 23, 2023 at 08:19:29PM -0400, Richard Kimberly Heck wrote:

RPM build errors:
     Installed (but unpackaged) file(s) found:
    /usr/share/metainfo/org.lyx.LyX.metainfo.xml


Does this patch help?

Documentation in lyx.rpm.README mentions qt4 + i386, I'm not sure how
much is our rpm-build being used during recent years...


Yes, that seems to fix it. It's using Qt5, as far as I can see.

Scott suggested a while back I do this instead of installing directly, 
the thought being that constantly over-writing my installation with new 
updates could lead to problems, or at least to stray files that never 
get removed.


Riki


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist failing

2023-07-24 Thread José Matos
On Mon, 2023-07-24 at 11:52 +0200, Pavel Sanda wrote:
> Does this patch help?

I would expect this to fix the issue.

> Documentation in lyx.rpm.README mentions qt4 + i386, I'm not sure how
> much is our rpm-build being used during recent years...

I have dabbled about this before. :-)
The issue is that the rpm spec is dependent on the distribution being
used.

> Pavel

-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist failing

2023-07-24 Thread Pavel Sanda
On Sun, Jul 23, 2023 at 08:19:29PM -0400, Richard Kimberly Heck wrote:
> RPM build errors:
>     Installed (but unpackaged) file(s) found:
>    /usr/share/metainfo/org.lyx.LyX.metainfo.xml
> 

Does this patch help?

Documentation in lyx.rpm.README mentions qt4 + i386, I'm not sure how
much is our rpm-build being used during recent years...

Pavel
diff --git a/development/lyx.spec.in b/development/lyx.spec.in
index b5333b27a8..9ee9555bcf 100644
--- a/development/lyx.spec.in
+++ b/development/lyx.spec.in
@@ -90,3 +90,4 @@ texhash
 %{_datadir}/texmf/tex/latex/%{name}
 %{_datadir}/icons/*
 %{_datadir}/applications/*
+%{_datadir}/metainfo/*
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist failing

2023-07-23 Thread Richard Kimberly Heck

On 7/22/23 20:10, José Matos wrote:

On Sat, 2023-07-22 at 23:59 +0200, Jean-Marc Lasgouttes wrote:

I suspect rpmdist dislikes the hyphens after RC1. Are you sure that
this is typical of rpm naming? You could try underscores instead.

In the past our release nme were more like lyx-2.4.0rc1

Jean-Marc is right regarding the name scheme:

[name]-[version]-[release].[arch].rpm

2.4.0-RC1-devel

does not work but

2.4.0-RC1.devel

would

where 2.4.0 is the version and RC1-devel is the release.


Notice also that nowadays rpm supports the pre-release naming scheme
like

2.4.0~rc1 for the version.

This is only relevant if you plan to later release

lyx-2.4.0-1

to ensure that rpm considers that this version is newer than

lyx-2.4.0~rc1-1 (for example)


OK, after changing the version in configure.ac to 2.4.0~RC1.1, I get 
further. But then I get:


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/share/metainfo/org.lyx.LyX.metainfo.xml

Any idea what that is?

Full rpm-related output below.

Riki



+ TEXMF=/usr/share/texmf
+ mkdir -p 
/home/rikiheck/rpmbuild/BUILDROOT/lyx-2.4.0~RC1.1-2.x86_64/usr/share/texmf/tex/

latex
+ mv 
/home/rikiheck/rpmbuild/BUILDROOT/lyx-2.4.0~RC1.1-2.x86_64/usr/share/lyx/tex 
/home/ri
kiheck/rpmbuild/BUILDROOT/lyx-2.4.0~RC1.1-2.x86_64//usr/share/texmf/tex/latex/lyx 

+ cp -a lib/images/lyx.png 
/home/rikiheck/rpmbuild/BUILDROOT/lyx-2.4.0~RC1.1-2.x86_64/usr/

share/lyx/images/
+ /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 
2.4.0~RC1.1-2 --uni
que-debug-suffix -2.4.0~RC1.1-2.x86_64 --unique-debug-src-base 
lyx-2.4.0~RC1.1-2.x86_64 --
run-dwz --dwz-low-mem-die-limit 1000 --dwz-max-die-limit 11000 
-S debugsourcefiles

.list /home/rikiheck/rpmbuild/BUILD/lyx-2.4.0~RC1.1
extracting debug info from 
/home/rikiheck/rpmbuild/BUILDROOT/lyx-2.4.0~RC1.1-2.x86_64/usr/

bin/lyx
extracting debug info from 
/home/rikiheck/rpmbuild/BUILDROOT/lyx-2.4.0~RC1.1-2.x86_64/usr/

bin/lyxclient
extracting debug info from 
/home/rikiheck/rpmbuild/BUILDROOT/lyx-2.4.0~RC1.1-2.x86_64/usr/

bin/tex2lyx
/usr/bin/gdb
/usr/bin/gdb
/tmp/tmp.OR6YbGHPBg (1/1)
 100 %   4136 B / 21.3 KiB = 0.190
/tmp/tmp.MOjAyU9Hxr (1/1)
 100 %    23.5 KiB / 187.6 KiB = 0.125
/usr/bin/gdb
/tmp/tmp.LMb3FJ2a5s (1/1)
 100 %  130.1 KiB / 1016.2 KiB = 0.128
original debug info size: 279980kB, size after compression: 232736kB
/usr/bin/sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match.
19714 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
*** WARNING: ./usr/share/lyx/scripts/csv2lyx.py is executable but has no 
shebang, removing

executable bit
*** WARNING: ./usr/share/lyx/scripts/fen2ascii.py is executable but has 
no shebang, removi

ng executable bit
*** WARNING: ./usr/share/lyx/scripts/prefs2prefs_prefs.py is executable 
but has no shebang

, removing executable bit
*** WARNING: ./usr/share/lyx/scripts/fig2pdftex.py is executable but has 
no shebang, remov

ing executable bit
*** WARNING: ./usr/share/lyx/scripts/lyxpak.py is executable but has no 
shebang, removing

executable bit
*** WARNING: ./usr/share/lyx/scripts/convertDefault.py is executable but 
has no shebang, r

emoving executable bit
*** WARNING: ./usr/share/lyx/scripts/clean_dvi.py is executable but has 
no shebang, removi

ng executable bit
*** WARNING: ./usr/share/lyx/scripts/legacy_lyxpreview2ppm.py is 
executable but has no she

bang, removing executable bit
*** WARNING: ./usr/share/lyx/scripts/fig2pstex.py is executable but has 
no shebang, removi

ng executable bit
*** WARNING: ./usr/share/lyx/scripts/lyxpreview2bitmap.py is executable 
but has no shebang

, removing executable bit
*** WARNING: ./usr/share/lyx/scripts/lyxpreview_tools.py is executable 
but has no shebang,

removing executable bit
*** WARNING: ./usr/share/lyx/scripts/docbook_copy.py is executable but 
has no shebang, rem

oving executable bit
*** WARNING: ./usr/share/lyx/scripts/prefs2prefs.py is executable but 
has no shebang, remo

ving executable bit
*** WARNING: ./usr/share/lyx/scripts/TeXFiles.py is executable but has 
no shebang, removin

g executable bit
*** WARNING: ./usr/share/lyx/scripts/include_bib.py is executable but 
has no shebang, remo

ving executable bit
*** WARNING: ./usr/share/lyx/scripts/ext_copy.py is executable but has 
no shebang, removin

g executable bit
*** WARNING: ./usr/share/lyx/scripts/html2latexwrapper.py is executable 
but has no shebang

, removing executable bit
*** WARNING: ./usr/share/lyx/scripts/convert_pdf.py is executable but 
has no shebang, remo

ving executable bit
*** WARNING: ./usr/share/lyx/scripts/docbook2epub.py is executable but 
has no shebang, rem

oving executable bit
*** WARNING: ./usr/share/lyx/scripts/layout2layout.py is executable but 
has no shebang, 

Re: make rpmdist failing

2023-07-22 Thread José Matos
On Sat, 2023-07-22 at 23:59 +0200, Jean-Marc Lasgouttes wrote:
> I suspect rpmdist dislikes the hyphens after RC1. Are you sure that
> this is typical of rpm naming? You could try underscores instead.
> 
> In the past our release nme were more like lyx-2.4.0rc1

Jean-Marc is right regarding the name scheme:

[name]-[version]-[release].[arch].rpm

2.4.0-RC1-devel

does not work but

2.4.0-RC1.devel

would

where 2.4.0 is the version and RC1-devel is the release.


Notice also that nowadays rpm supports the pre-release naming scheme
like

2.4.0~rc1 for the version.

This is only relevant if you plan to later release

lyx-2.4.0-1

to ensure that rpm considers that this version is newer than

lyx-2.4.0~rc1-1 (for example)

Best regards,
-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist failing

2023-07-22 Thread Jean-Marc Lasgouttes

Le 22/07/2023 à 21:05, Richard Kimberly Heck a écrit :
I've finally decided to use the rpmdist target rather than installing 
directly, but it is failing here:


     $(LN_S) $(srcdir)/lib/images/lyx.png . ; \

The problem is that LN_S does not seem to be defined, so it is trying to 
execute the image.


Try to add AC_PROG_LN_S somewhere in configure.ac



$RPMBUILD -ta lyx-2.4.0-RC1-devel.tar.gz ; saved_status=$?; \
rm lyx.png; exit $saved_status
error: line 5: Illegal char '-' (0x2d) in: Version: 2.4.0-RC1-devel


I suspect rpmdist dislikes the hyphens after RC1. Are you sure that this 
is typical of rpm naming? You could try underscores instead.


In the past our release nme were more like lyx-2.4.0rc1

JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist failing

2023-07-22 Thread Kornel Benko
Am Sat, 22 Jul 2023 15:05:11 -0400
schrieb Richard Kimberly Heck :

> I've finally decided to use the rpmdist target rather than installing 
> directly, but it is failing here:
> 
>      $(LN_S) $(srcdir)/lib/images/lyx.png . ; \
> 
> The problem is that LN_S does not seem to be defined, so it is trying to 
> execute the image.
> 
> Temporarily replacing that with cp leads to:
> 
> rpm: -ta: unknown option
> 
> I needed to install the rpm-build package, but shouldn't this adapt? or 
> warn me?
> 
> Next problem:
> 
> $RPMBUILD -ta lyx-2.4.0-RC1-devel.tar.gz ; saved_status=$?; \
> rm lyx.png; exit $saved_status
> error: line 5: Illegal char '-' (0x2d) in: Version: 2.4.0-RC1-devel
> 
> This seems to be in the lyx.spec file, not in the filename itself.
> 
> Finally, does a similar target exist for cmake? If so, how to call it?

Not yet.
But in cmake it would be something like
   set(RPM_VERSION_SUFFIX whatever_that_may_be)
   set(PACKAGE whatever_that_may_be)
   set(VERSION whatever_that_may_be)
   set(DESTINATION whatever_that_may_be)
   configure_file("${TOP_SRC_DIR}/development/lyx.spec.in"
   "${DESTINATION}/lyx${PROGRAM_SUFFIX}.spec")

OTOH, why would we need it in cmake? We create already the rpm-package there.

> Riki

Kornel



pgpfjZBBA5kEz.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: make rpmdist

2007-03-21 Thread Andre Poenitz
On Wed, Mar 21, 2007 at 06:01:29PM +, José Matos wrote:
> >[ ] For some undisclosed technical reason that I will never be told
> >about.
> 
>   To simulate a clean build without any contamination from the surrounding 
> environment.

If the result is the same working package in both ways the user should
not care. It's pretty much C++'s  as-if  rule.

>   Also it should be dependent on a pristine package source, that should be 
> package coming from make dist. After all that is the whole idea of an rpm 
> project.

The idea is to provide binary package. Whether the binary in the package
comes from a previously packed and unpacked tgz or whether it comes from
a build tree with zero svn diff result is a ivory tower type of discussion...

'pristine sources' is a nice concept, but having a 40 minutes rpm build
failing for some obscure reason in the final step does not encourage
building packages.

Andre'


Re: make rpmdist

2007-03-21 Thread José Matos
On Monday 19 March 2007 5:11:49 pm Andre Poenitz wrote:
> In some very successful attempt to waste some time I run 'make rpmdist'
> and now have a few questions (apart from the obvoius 'Is it really
> supposed to fail?' and possibly 'Why?')
>
> 1. Why contain 3781 out of 7528 file names in the .tar.gz the pattern
>'/.svn/'? Is it really necessary to pack the whole svn text-base
>on top of the 'real' files?

  Probably a leftover from the previous cvs experience, it is a bug.

> 2. Why is that process 'pack sources, unpack, compile, break, retry'
>used instead of 'compile until succeeded, pack interesting
>stuff only'? Please indicate your answer below:
>
>[ ] Because it was easy to implement on top of the 'dist:' target.
>
>[ ] Because it is the way we like it (i.e. extensive usability
>studies showed that this is the way that hurt most without
>any visible gain).
>
>[ ] For some undisclosed technical reason that I will never be told
>about.

  To simulate a clean build without any contamination from the surrounding 
environment.

  Also it should be dependent on a pristine package source, that should be 
package coming from make dist. After all that is the whole idea of an rpm 
project.

> Of course I am asking to gain some secret knowledge for my "Project At
> Work" (tm).  LyX takes around four minutes to inform me that it can't
> find qmake when running 'make rpmdist' (which, of course, is found by an
> ordinary 'make').  OTOH, my PaW(tm) happens to build .rpms in half a
> minute or so, so I am obviously doing something wrong there. Building
> .rpms is suppopsed to hurt, isn't it?

  Sometimes. ;-)
  I am the maintainer from several packages in Fedora so I can speak from my 
self experience. :-)

> Andre'

-- 
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)


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-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 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-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: [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



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-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-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



[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: 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-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-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 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 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

2003-02-04 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Tue, Feb 04, 2003 at 02:38:52PM +0100, Lars Gullik Bjønnes wrote:
| > | I seem to remember this worked a while ago.
| > | Now I get:
| > 
| > You probably have a too old gettext installed on your box.
| > 
| > gettext 0.11.4 works fine.
| 
| 0.10.37 does not.
| 
| 0.11.5 seem to work though.
| 
| Now I get dozens of
| 
| msgmerge: warning: The following msgid contains non-ASCII characters.
|This will cause problems to translators who use a character 
|encoding
|different from yours. Consider using a pure ASCII msgid
| instead.
|!(£ @)
| msgmerge: warning: The following msgid contains non-ASCII characters.
|This will cause problems to translators who use a
| character encoding
|different from yours. Consider using a pure ASCII msgid
| instead.
|Rotate 90°|#9
| msgmerge: internationalized messages should not contain the `\f' escape
| sequence
| msgmerge: internationalized messages should not contain the `\f' escape
| sequence
| msgmerge: warning: The following msgid contains non-ASCII characters
| 
| 
| Is that the way it should look like?

Yes, I have not botherd to fix up these yet. I have that as part of my
1.4.0cvs schedule.

-- 
Lgb



Re: make rpmdist

2003-02-04 Thread Andre Poenitz
On Tue, Feb 04, 2003 at 02:38:52PM +0100, Lars Gullik Bjønnes wrote:
> | I seem to remember this worked a while ago.
> | Now I get:
> 
> You probably have a too old gettext installed on your box.
> 
> gettext 0.11.4 works fine.

0.10.37 does not.

0.11.5 seem to work though.

Now I get dozens of

msgmerge: warning: The following msgid contains non-ASCII characters.
   This will cause problems to translators who use a character encoding
   different from yours. Consider using a pure ASCII msgid
instead.
   !(£ @)
msgmerge: warning: The following msgid contains non-ASCII characters.
   This will cause problems to translators who use a
character encoding
   different from yours. Consider using a pure ASCII msgid
instead.
   Rotate 90°|#9
msgmerge: internationalized messages should not contain the `\f' escape
sequence
msgmerge: internationalized messages should not contain the `\f' escape
sequence
msgmerge: warning: The following msgid contains non-ASCII characters


Is that the way it should look like?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2003-02-04 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes:

| I seem to remember this worked a while ago.
| Now I get:

You probably have a too old gettext installed on your box.

gettext 0.11.4 works fine.
 
-- 
Lgb



Re: make rpmdist

2002-09-27 Thread Kayvan A. Sylvan

On Fri, Sep 27, 2002 at 12:11:22PM +0200, Lars Gullik Bjønnes wrote:
> Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> | fails here with:
> 
> You are using srcdir != builddir?
> 
> I am not sure that this will work...
> 
> it seems that the spec file is not found at all...

Yes, that's the problem. My automated builds always use
srcdir == builddir.

The results are always at ftp://ftp.sylvan.com/pub/lyx/devel

-- 
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 | "crown of her husband" | Robin Gregory (2/28/92)



Re: make rpmdist

2002-09-27 Thread Andre Poenitz

On Fri, Sep 27, 2002 at 12:11:22PM +0200, Lars Gullik Bjønnes wrote:
> You are using srcdir != builddir?

Aah... Yes. I remember now that I had problem because of that last time I
tried, too...

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-09-27 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| fails here with:

You are using srcdir != builddir?

I am not sure that this will work...

it seems that the spec file is not found at all...

-- 
Lgb



Re: make rpmdist

2002-05-21 Thread Lars Gullik Bjønnes

"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

| On Thu, May 16, 2002 at 02:52:14PM +0200, Andre Poenitz wrote:
>> On Thu, May 16, 2002 at 02:46:04PM +0200, Lars Gullik Bjønnes wrote:
>> > And you are sure you do not have any strange .deps or .libs dirs
>> > w/files?
>> 
>> This is  'rm -rf lyx-devel lyx-build ; cvs co lyx-devel ; cd lyx-devel ; 
>> ./autogen ; cd ../lyx-build ; ../lyx-devel/configure'
>> 
>> [no script, typed by hand, but there should be no trace of old stuff]
>> 
>
| Ah, yes. I know the problem, but not the fix.
>
| You have to do your "make rpmdist" in the CVS checkout directory, it
| does not work in ../lyx-build for reasons that I can not fathom.

I'll have a look at this when I get the time.

-- 
Lgb



Re: make rpmdist

2002-05-21 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Thu, May 16, 2002 at 03:06:15PM +0200, Lars Gullik Bjønnes wrote:
>> rpm -q automake
>> automake-1.5-8
>
| Ok. 1.5.1 now.
>
>
|   Building Makefile templates...
|   .
|   src/Makefile.am:12: LIBS was set with `+=' and is now set with `='
|   src/frontends/Makefile.am:12: LIBS was set with `+=' and is now set with `='
|   lib/reLyX
|   sigc++
|   done.
|   Building configure...
>
>
| But it seems to go further, 'make dist' works, but 'make rpmdist' fails
| with
>
|   Name field must be present in package: (main package)
|   Version field must be present in package: (main package)
|   Release field must be present in package: (main package)
|   Summary field must be present in package: (main package)
|   Group field must be present in package: (main package)
|   License field must be present in package: (main package)

And you do all this in the source dir and not in a separate builddir?

| Apart from that, there seem to be too much make dependencies. 'msgmerge' is
| _always_ run etc...

And this is (kindo) a got thing, sine without this we would run
msgmerge way too seldom, we even now run it often only during the
actual release cycle.

-- 
Lgb



Re: make rpmdist

2002-05-17 Thread Lars Gullik Bjønnes

Angus Leeming <[EMAIL PROTECTED]> writes:

| I haven't paid any attention to these different make targets. Could someone 
| tell me which one I should use if I wanted to make a tarball for the DEC 
| Alpha users out there? "make dist"? 

binary distribution?

make bindist of course

| And can I build that with src dir != build dir?

I do not know, not widely tested.

-- 
Lgb





Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 08:56:51AM -0700, Kayvan A. Sylvan wrote:
> It is now in ftp://ftp.sylvan.com/pub/lyx/devel

I just noticed that the dependencies are "redhat like".

There is neither tetex-latex  nor tetex-dvi on SuSE, the stuff is in
te_latex and tetex proper.

[OTOH, SuSE users a used to --nodeps when installing rpms ;-}]

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Angus Leeming

I haven't paid any attention to these different make targets. Could someone 
tell me which one I should use if I wanted to make a tarball for the DEC 
Alpha users out there? "make dist"? 

And can I build that with src dir != build dir?

Angus



Re: make rpmdist

2002-05-16 Thread Kayvan A. Sylvan

On Thu, May 16, 2002 at 05:36:16PM +0200, Andre Poenitz wrote:
> On Thu, May 16, 2002 at 08:16:52AM -0700, Kayvan A. Sylvan wrote:
> > > How does rpm now what spec file to use?
> > 
> > It looks for a spec file in the tarball.
> 
> Ok. It works when build with  sourcedir == builddir and automake 1.5
> (neither 1.4 nor 1.6). Should be documented somehow. Maybe even some kind
> of 'assert' in the make target for 'rpmdist'.
> 
> Andre'
> 
> PS: I've put a  lyx-1.2.0pre5-1-suse73.i386.rpm into yur incoming/forlyx.
> Actually it was called lyx-1.3.0cvs-1.i386.rpm, but we are not in the
> 1.3.0series, are we?

It is now in ftp://ftp.sylvan.com/pub/lyx/devel

-- 
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 | "crown of her husband" | Robin Gregory (2/28/92)



msg38077/pgp0.pgp
Description: PGP signature


Re: make rpmdist

2002-05-16 Thread Angus Leeming

On Thursday 16 May 2002 4:36 pm, Andre Poenitz wrote:
> PS: I've put a  lyx-1.2.0pre5-1-suse73.i386.rpm into yur incoming/forlyx.
> Actually it was called lyx-1.3.0cvs-1.i386.rpm, but we are not in the
> 1.3.0series, are we?

Since Lars moved 1.2 off into it's own branch, we are yes.

Angus



Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 08:16:52AM -0700, Kayvan A. Sylvan wrote:
> > How does rpm now what spec file to use?
> 
> It looks for a spec file in the tarball.

Ok. It works when build with  sourcedir == builddir and automake 1.5
(neither 1.4 nor 1.6). Should be documented somehow. Maybe even some kind
of 'assert' in the make target for 'rpmdist'.

Andre'

PS: I've put a  lyx-1.2.0pre5-1-suse73.i386.rpm into yur incoming/forlyx.
Actually it was called lyx-1.3.0cvs-1.i386.rpm, but we are not in the
1.3.0series, are we?


-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Kayvan A. Sylvan

On Thu, May 16, 2002 at 05:01:31PM +0200, Andre Poenitz wrote:
> On Thu, May 16, 2002 at 03:27:09PM +0100, John Levon wrote:
> > And are they ? (in spec file)
> 
> Where is the spec file anyway? (I have not used 'rpm -ta' yet)
> 
> development/lyx.spec?
> 
> There isn't any in the .tar.gz...

Yes, there is one in the tarball.

> How does rpm now what spec file to use?

It looks for a spec file in 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 | "crown of her husband" | Robin Gregory (2/28/92)



msg38070/pgp0.pgp
Description: PGP signature


Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 03:27:09PM +0100, John Levon wrote:
> And are they ? (in spec file)

Where is the spec file anyway? (I have not used 'rpm -ta' yet)

development/lyx.spec?

There isn't any in the .tar.gz...

How does rpm now what spec file to use?

Andre'
-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Kayvan A. Sylvan

On Thu, May 16, 2002 at 02:52:14PM +0200, Andre Poenitz wrote:
> On Thu, May 16, 2002 at 02:46:04PM +0200, Lars Gullik Bjønnes wrote:
> > And you are sure you do not have any strange .deps or .libs dirs
> > w/files?
> 
> This is  'rm -rf lyx-devel lyx-build ; cvs co lyx-devel ; cd lyx-devel ; 
> ./autogen ; cd ../lyx-build ; ../lyx-devel/configure'
> 
> [no script, typed by hand, but there should be no trace of old stuff]
> 

Ah, yes. I know the problem, but not the fix.

You have to do your "make rpmdist" in the CVS checkout directory, it
does not work in ../lyx-build for reasons that I can not fathom.

-- 
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 | "crown of her husband" | Robin Gregory (2/28/92)



msg38067/pgp0.pgp
Description: PGP signature


Re: make rpmdist

2002-05-16 Thread Kayvan A. Sylvan

On Thu, May 16, 2002 at 11:12:18AM +0200, Andre Poenitz wrote:
> 
> Is there anything special required to run this?
> 
> I was trying it for the first time and got soon stuck with
> 
> 
> make[4]: Entering directory `/usr/src/lyx/lyx-devel/src/frontends/qt2/xforms'
> make[4]: *** No rule to make target `libqt2xforms.la.c', needed by `distdir'. 
> 
> Andre'

``make rpmdist'' is used by my automated daily builds all the time.

No problems here.

-- 
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 | "crown of her husband" | Robin Gregory (2/28/92)



msg38066/pgp0.pgp
Description: PGP signature


Re: make rpmdist

2002-05-16 Thread John Levon

On Thu, May 16, 2002 at 03:35:36PM +0200, Andre Poenitz wrote:

> Ok. 1.5.1 now.

Where do we document this ?

Thou must use 1.5.1. No more, no less. 1.5.1 must be the number thou
must use, and the number of the use must be 1.5.1. 1.6 shalt thou not
use, nor either use thou 1.4, excepting that thou then proceed to 1.5.1

Apologies to everyone.

>   Name field must be present in package: (main package)

And are they ? (in spec file)

regards
john
-- 
"It is very difficult to prophesy, especially when it pertains to the
 future."
- Patrick Kurzawe



Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 03:06:15PM +0200, Lars Gullik Bjønnes wrote:
> rpm -q automake
> automake-1.5-8

Ok. 1.5.1 now.


Building Makefile templates...
.
src/Makefile.am:12: LIBS was set with `+=' and is now set with `='
src/frontends/Makefile.am:12: LIBS was set with `+=' and is now set with `='
lib/reLyX
sigc++
done.
Building configure...


But it seems to go further, 'make dist' works, but 'make rpmdist' fails
with

Name field must be present in package: (main package)
Version field must be present in package: (main package)
Release field must be present in package: (main package)
Summary field must be present in package: (main package)
Group field must be present in package: (main package)
License field must be present in package: (main package)

Apart from that, there seem to be too much make dependencies. 'msgmerge' is
_always_ run etc...


Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| I get a step further if I replace the 'noinst_' prefix with 'EXTRA_' but I
| really don't know what I am doing there...

That is not where you want to change things.

-- 
Lgb



Re: make rpmdist

2002-05-16 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Thu, May 16, 2002 at 02:46:04PM +0200, Lars Gullik Bjønnes wrote:
>> And you are sure you do not have any strange .deps or .libs dirs
>> w/files?
>
| This is  'rm -rf lyx-devel lyx-build ; cvs co lyx-devel ; cd lyx-devel ; 
| ./autogen ; cd ../lyx-build ; ../lyx-devel/configure'
>
| [no script, typed by hand, but there should be no trace of old stuff]

Then it is your version of automake, I use:

rpm -q automake
automake-1.5-8

-- 
Lgb



Re: make rpmdist

2002-05-16 Thread Andre Poenitz


I get a step further if I replace the 'noinst_' prefix with 'EXTRA_' but I
really don't know what I am doing there...

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 02:46:04PM +0200, Lars Gullik Bjønnes wrote:
> And you are sure you do not have any strange .deps or .libs dirs
> w/files?

This is  'rm -rf lyx-devel lyx-build ; cvs co lyx-devel ; cd lyx-devel ; 
./autogen ; cd ../lyx-build ; ../lyx-devel/configure'

[no script, typed by hand, but there should be no trace of old stuff]

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Thu, May 16, 2002 at 01:30:28PM +0200, Lars Gullik Bjønnes wrote:
>> Look lower and see the link_files target.
>> 
>> It is possible that on your bot it should be
>> $(nodist_libqt2xforms_la_OBJECTS).
>
| The problem seems to be that automake fails and link_files is not called
| afterwards.
>
| If I touch the Makefile in order not to trigger the automake run,
| 'make link_files' works.
>
| But even then 'make dist' aborts with:
>
>
| make[4]: Entering directory
| `/usr/src/lyx/lyx-devel/src/frontends/qt2/xforms'
| make[4]: *** No rule to make target `libqt2xforms.la.c', needed by
| `distdir'.  Stop.
| libqt2xforms.la: link_files $(libqt2xforms_la_OBJECTS)
>
>
>
| But 'libqt2xforms.la.c' is an unusal file name, isn't it?

And you are sure you do not have any strange .deps or .libs dirs
w/files?


-- 
Lgb



Re: make rpmdist

2002-05-16 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Thu, May 16, 2002 at 02:02:37PM +0200, Lars Gullik Bjønnes wrote:
>> >> It is possible that on your bot it should be
>> >> $(nodist_libqt2xforms_la_OBJECTS).
>> >
>> | Well, it is just $(libqt2xforms_la_OBJECTS)
>> 
>> Yes, and: 
>> 
>> 
>> >> It is possible that on your bot it should be
>> >> $(nodist_libqt2xforms_la_OBJECTS).
>> 
>
| Aehm.. I am lost. I have:
>
|   libqt2xforms.la: link_files $(libqt2xforms_la_OBJECTS)
>
|   link_files:
|   for i in $(nodist_libqt2xforms_la_SOURCES); do \
|   ln -sf "$(top_srcdir)/src/frontends/xforms/$$i" . ; \
|   done
>
| So there is a 'nodist' in the 'link_files' target, but it's '...SOURCES'
| there, not '...OBJECTS'.
>
| What should this look like?

Just as it does now.

-- 
Lgb



Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 02:02:37PM +0200, Lars Gullik Bjønnes wrote:
> >> It is possible that on your bot it should be
> >> $(nodist_libqt2xforms_la_OBJECTS).
> >
> | Well, it is just $(libqt2xforms_la_OBJECTS)
> 
> Yes, and: 
> 
> 
> >> It is possible that on your bot it should be
> >> $(nodist_libqt2xforms_la_OBJECTS).
> 

Aehm.. I am lost. I have:

libqt2xforms.la: link_files $(libqt2xforms_la_OBJECTS)

link_files:
for i in $(nodist_libqt2xforms_la_SOURCES); do \
ln -sf "$(top_srcdir)/src/frontends/xforms/$$i" . ; \
done

So there is a 'nodist' in the 'link_files' target, but it's '...SOURCES'
there, not '...OBJECTS'.

What should this look like?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 01:30:28PM +0200, Lars Gullik Bjønnes wrote:
> Look lower and see the link_files target.
> 
> It is possible that on your bot it should be
> $(nodist_libqt2xforms_la_OBJECTS).

The problem seems to be that automake fails and link_files is not called
afterwards.

If I touch the Makefile in order not to trigger the automake run,
'make link_files' works.

But even then 'make dist' aborts with:


make[4]: Entering directory
`/usr/src/lyx/lyx-devel/src/frontends/qt2/xforms'
make[4]: *** No rule to make target `libqt2xforms.la.c', needed by
`distdir'.  Stop.
libqt2xforms.la: link_files $(libqt2xforms_la_OBJECTS)



But 'libqt2xforms.la.c' is an unusal file name, isn't it?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Thu, May 16, 2002 at 01:30:28PM +0200, Lars Gullik Bjønnes wrote:
>> Look lower and see the link_files target.
>> 
>> It is possible that on your bot it should be
>> $(nodist_libqt2xforms_la_OBJECTS).
>
| Well, it is just $(libqt2xforms_la_OBJECTS)

Yes, and: 


>> It is possible that on your bot it should be
>> $(nodist_libqt2xforms_la_OBJECTS).


s/bot/box/

-- 
Lgb



Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 01:30:28PM +0200, Lars Gullik Bjønnes wrote:
> Look lower and see the link_files target.
> 
> It is possible that on your bot it should be
> $(nodist_libqt2xforms_la_OBJECTS).

Well, it is just $(libqt2xforms_la_OBJECTS)

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Thu, May 16, 2002 at 01:19:54PM +0200, Lars Gullik Bjønnes wrote:
>> |nodist_libqt2xforms_la_SOURCES = \
>> |bmtable.h \
>> |bmtable.c \
>> |combox.h \
>> |combox.C \
>> | [.]
>> >
>> >
>> | This somehow does not look sound
>> 
>> To me it looks perfectly sound...
>
| And where should 'combox.C' reside?

Look lower and see the link_files target.

It is possible that on your bot it should be
$(nodist_libqt2xforms_la_OBJECTS).

-- 
Lgb



Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 01:19:54PM +0200, Lars Gullik Bjønnes wrote:
> | nodist_libqt2xforms_la_SOURCES = \
> | bmtable.h \
> | bmtable.c \
> | combox.h \
> | combox.C \
> | [.]
> >
> >
> | This somehow does not look sound
> 
> To me it looks perfectly sound...

And where should 'combox.C' reside?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Thu, May 16, 2002 at 11:20:59AM +0200, Lars Gullik Bjønnes wrote:
>> Then you have something fishy in your source/build tree or on your
>> box, I use "make dist" "make distdir" and "make distcheck" all the
>> time.
>
| 'make dist' already does not work on a clean check out.
>
>> Are you trying to compile with qt?
>
| No.
>
>> a "rm -rf qt2" and then recheckout + autogen + configure 
>> would probably help.
>
| The directory frontends/qt2/xforms is empty but for a 'Makefile.am' which
| is not empty:
>
|   include $(top_srcdir)/config/common.am
>
|   noinst_LTLIBRARIES = libqt2xforms.la
>
|   INCLUDES = -I$(top_srcdir)/src/ -I$(top_srcdir)/src/frontends/ \
|   $(SIGC_CFLAGS) -I$(top_srcdir)/images \
|   $(FRONTEND_INCLUDES) $(BOOST_INCLUDES) \
|   -I$(top_srcdir)/src/frontends/controllers
>
|   if USE_BASIC_IMAGE_LOADER
|   else
|   XFORMSGIMAGE = xformsGImage.C xformsGImage.h
|   endif
>
|   nodist_libqt2xforms_la_SOURCES = \
|   bmtable.h \
|   bmtable.c \
|   combox.h \
|   combox.C \
| [.]
>
>
| This somehow does not look sound

To me it looks perfectly sound...

-- 
Lgb



Re: make rpmdist

2002-05-16 Thread Andre Poenitz

On Thu, May 16, 2002 at 11:20:59AM +0200, Lars Gullik Bjønnes wrote:
> Then you have something fishy in your source/build tree or on your
> box, I use "make dist" "make distdir" and "make distcheck" all the
> time.

'make dist' already does not work on a clean check out.

> Are you trying to compile with qt?

No.

> a "rm -rf qt2" and then recheckout + autogen + configure 
> would probably help.

The directory frontends/qt2/xforms is empty but for a 'Makefile.am' which
is not empty:

include $(top_srcdir)/config/common.am

noinst_LTLIBRARIES = libqt2xforms.la

INCLUDES = -I$(top_srcdir)/src/ -I$(top_srcdir)/src/frontends/ \
$(SIGC_CFLAGS) -I$(top_srcdir)/images \
$(FRONTEND_INCLUDES) $(BOOST_INCLUDES) \
-I$(top_srcdir)/src/frontends/controllers

if USE_BASIC_IMAGE_LOADER
else
XFORMSGIMAGE = xformsGImage.C xformsGImage.h
endif

nodist_libqt2xforms_la_SOURCES = \
bmtable.h \
bmtable.c \
combox.h \
combox.C \
[.]


This somehow does not look sound


Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: make rpmdist

2002-05-16 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| Is there anything special required to run this?
>
| I was trying it for the first time and got soon stuck with
>
>
| make[4]: Entering directory `/usr/src/lyx/lyx-devel/src/frontends/qt2/xforms'
| make[4]: *** No rule to make target `libqt2xforms.la.c', needed by
| `distdir'. 

Then you have something fishy in your source/build tree or on your
box, I use "make dist" "make distdir" and "make distcheck" all the
time.

Are you trying to compile with qt?

a "rm -rf qt2" and then recheckout + autogen + configure 
would probably help.


-- 
Lgb