Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119526 - new version of lyx (1.3.7)
Summary: new version of lyx (1.3.7)
Status: RESOLVED DUPLICATE of bug 118140
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL: http://www.lyx.org/announce/1_3_7.txt
Whiteboard:
Keywords:
: 119775 123406 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-19 02:58 UTC by Michiel Roeleveld
Modified: 2006-03-29 08:25 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
updated lyx-1.3.6-gentoo.diff to be applied on lyx-1.3.7 (lyx-1.3.7-gentoo.diff,1.02 KB, patch)
2006-01-19 03:02 UTC, Michiel Roeleveld
Details | Diff
lyx-1.3.7.ebuild (sans patches) (lyx-1.3.7.ebuild,3.52 KB, text/plain)
2006-02-19 12:54 UTC, Daniel Watkins
Details
lyx-1.3.7.ebuild (lyx-1.3.7.ebuild,4.97 KB, text/plain)
2006-02-21 19:41 UTC, Daniel Watkins
Details
ebuild and gentoo.diff for lyx-1.4.0 (lyx-1.4.0.ebuild.tbz,2.53 KB, application/octet-stream)
2006-03-17 16:11 UTC, dongxu li
Details
lyx-1.4.0.ebuild.tbz , qt added back (lyx-1.4.0.ebuild.tbz,2.58 KB, application/octet-stream)
2006-03-17 22:33 UTC, dongxu li
Details
lyx-1.4.0.ebuild.tbz , with xforms as dependency now (lyx-1.4.0.ebuild.tbz,2.58 KB, application/octet-stream)
2006-03-20 03:08 UTC, dongxu li
Details
lyx-1.4.0.ebuild.tbz testing (lyx-1.4.0.ebuild.tbz,2.59 KB, application/octet-stream)
2006-03-20 20:10 UTC, dongxu li
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel Roeleveld 2006-01-19 02:58:23 UTC
At January the 17th a new version of lyx has been released.
Comment 1 Michiel Roeleveld 2006-01-19 03:02:31 UTC
Created attachment 77521 [details, diff]
updated lyx-1.3.6-gentoo.diff to be applied on lyx-1.3.7
Comment 2 Michiel Roeleveld 2006-01-19 07:25:24 UTC
I renamed 1.3.6 to 1.3.7 and applied the patch. Lyx seems to work well.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-21 01:49:53 UTC
*** Bug 119775 has been marked as a duplicate of this bug. ***
Comment 4 Martin Ehmsen (RETIRED) gentoo-dev 2006-02-16 12:14:24 UTC
We will probably have to wait until cjk patches come out for this version, right cjk team?
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2006-02-17 09:18:11 UTC
i suppose so. lyx also needs to be ported modular-x. i tried applying the cjk patch for 1.3.6 on 1.3.7 and it seems to work for the most part except for conflicts in configure and Makefile.in. so as far as the source, nothing seems to have changed too much.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-02-19 10:10:33 UTC
*** Bug 123406 has been marked as a duplicate of this bug. ***
Comment 7 Daniel Watkins 2006-02-19 12:53:29 UTC
FWIW, I've attached an ebuild for 1.3.7 based on the 1.3.6 ebuild (as, currently, there doesn't seem to be a way to install it through Portage). It does not, however, implement this patch (because I'm not really sure how to do so). It has only been tested on an AMD64 system.
Comment 8 Daniel Watkins 2006-02-19 12:54:08 UTC
Created attachment 80216 [details]
lyx-1.3.7.ebuild (sans patches)
Comment 9 Daniel Watkins 2006-02-21 19:41:38 UTC
Created attachment 80396 [details]
lyx-1.3.7.ebuild

This is a less useless version which is, in essence, a version bump from 1.3.6 to 1.3.7 with all references to CJK commented out in such a way that, provided all naming schemes and requirements stay the same, they can simply be uncommented when the CJK team release their 1.3.7 patch.

I've also checked with the LyX developers and QT has moved from a compile-time dependency to a run-time one (and xforms has followed it, on the assumption that it would also be needed, though I am following this up with the LyX team).

The only issue is the use of test_flag rather than test_flags which is, apparently, deprecated. I cannot find any documentation on how test_flags is meant to work and my few experiments have failed.

This ebuild does require the patch also attached to this bug.
Comment 10 Daniel Watkins 2006-02-21 19:44:34 UTC
I knew I'd forget something. The ebuild has only been tested on my AMD64 system.
Comment 11 Trent Apted 2006-03-01 16:30:10 UTC
(In reply to comment #10)
> The ebuild has only been tested on my AMD64 system.

Tested on my x86 system.

Build/install/run all went very smoothly, after adding ~x86.

However, Lyx reports an error in /usr/share/lyx/lyxrc.defaults when it is first run, but it recovers from it fine. This is directly due to the patch file -- there are too many '+'es on each line on and after 'Gentoo systems have TrueType...'

I just deleted that whole section from my lyxrc.defaults (I've configured my fonts in my user .lyxrc).

LyX: Unknown tag `+' [around line 77 of file /usr/share/lyx/lyxrc.defaults]
LyX: Unknown tag `+#' [around line 77 of file /usr/share/lyx/lyxrc.defaults]
LyX: Unknown tag `Gentoo' [around line 77 of file /usr/share/lyx/lyxrc.defaults]
LyX: Unknown tag `systems' [around line 77 of file /usr/share/lyx/lyxrc.defaults]

 ... etc.
Comment 12 Rajil 2006-03-08 23:46:46 UTC
Lyx 1.4.0 has been released http://www.lyx.org/
Comment 13 dongxu li 2006-03-17 16:11:13 UTC
Created attachment 82414 [details]
ebuild and gentoo.diff for lyx-1.4.0

Looks like people are still waiting for lyx-cjk. Since most people don't even use cjk, I made the 1.4.0 ebuild without qt or cjk.

download the attachment, say, to /tmp/lyx-1.4.0.ebuild.tbz

mkdir /usr/local/portage
mkdir /usr/local/portage/app-office
cp -a /usr/portage/app-office/lyx /usr/local/portage/app-office/
cd /usr/local/portage/app-office/lyx
rm *.ebuild
tar jxvf /tmp/lyx-1.4.0.ebuild.tbz

If you have PORTDIR_OVERLAY="/usr/local/portage" in /etc/make.conf, you may try the ebuild.
Comment 14 dongxu li 2006-03-17 22:33:04 UTC
Created attachment 82437 [details]
lyx-1.4.0.ebuild.tbz , qt added back

there's no reason to disable qt, so it's added back, and it builds nicely.
Comment 15 Gioele Barabucci 2006-03-19 04:05:42 UTC
I can't build lyx 1.4.0 with the latest ebuild tbz.
It tries to build the xforms frontend but I don't think that I have xforms installed. And I don't need xforms support.

# emerge -pv lyx
Calculating dependencies... done!
[ebuild     U ] app-office/lyx-1.4.0 [1.3.6] USE="cups nls qt -debug" 0 kB [1]

# emerge lyx
...
make[6]: Entering directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms'
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src  -I../../../images -I../../../src -I../../../src/frontends -I../../../src/frontends/controllers -I../../../boost -I/usr/X11R6/include/X11  -fno-exceptions  -O3 -pipe -mcpu=750 -mpowerpc-gfxopt -x c++-header ./pch.h -o ./pch.h.gch \
-MT ./pch.h.gch  -MD -MP -MF "././pch.h.gch.Tdep" \
&& mv "././pch.h.gch.Tdep" "././pch.h.gch.dep" \
|| rm "././pch.h.gch.Tdep"
echo timestamp > stamp-forms
cmp -s lyx_xpm.h-tmp lyx_xpm.h || {\
        rm -f lyx_xpm.h ;\
        cp lyx_xpm.h-tmp lyx_xpm.h ;\
}
echo timestamp > stamp-xpm
In file included from ./pch.h:3:
./lyx_forms.h:8:19: forms.h: No such file or directory
make[6]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms'
make  all-recursive
make[6]: Entering directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms'
Making all in forms
make[7]: Entering directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms/forms'
make PCH_FLAGS= pch-file
make[8]: Entering directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms/forms'
g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src   -I./.. -I../../../../src -I.. -I/usr/X11R6/include/X11  -fno-exceptions -O3 -pipe -mcpu=750 -mpowerpc-gfxopt -x c++-header ./pch.h -o ./pch.h.gch \
-MT ./pch.h.gch  -MD -MP -MF "././pch.h.gch.Tdep" \
&& mv "././pch.h.gch.Tdep" "././pch.h.gch.dep" \
|| rm "././pch.h.gch.Tdep"
In file included from ./pch.h:3:
./../lyx_forms.h:8:19: forms.h: No such file or directory
make[8]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms/forms'
make  all-am
make[8]: Entering directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms/forms'
{ [ . != . ] && [ ! -r form_aboutlyx.fd ] && ln -s form_aboutlyx.fd . ; } || true
{ [ . != . ] && [ ! -r form_bibitem.fd ] && ln -s form_bibitem.fd . ; } || true
/bin/sh ./fdfix.sh form_aboutlyx.fd
/bin/sh ./fdfix.sh form_bibitem.fd
./fdfix.sh: line 64: fdesign: command not found
"fdesign -convert form_aboutlyx.fd}" failed. Please investigate.
make[8]: *** [form_aboutlyx.C] Error 1
make[8]: *** Waiting for unfinished jobs....
./fdfix.sh: line 64: fdesign: command not found
"fdesign -convert form_bibitem.fd}" failed. Please investigate.
make[8]: *** [form_bibitem.C] Error 1
make[8]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms/forms'
make[7]: *** [all] Error 2
make[7]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms/forms'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends/xforms'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src/frontends'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/lyx-1.4.0/work/lyx-1.4.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: app-office/lyx-1.4.0 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 16 Gioele Barabucci 2006-03-19 04:19:45 UTC
Looking at the ebuild I found some problems:
* IUSE should contains also cups and cjk
* the xforms frontend is always compiled in
* test_flag is used
* src_compile is intended wrongly
Comment 17 dongxu li 2006-03-20 02:52:51 UTC
(In reply to comment #16)
> Looking at the ebuild I found some problems:
> * IUSE should contains also cups and cjk
> * the xforms frontend is always compiled in
> * test_flag is used
> * src_compile is intended wrongly
> 

Just emerge x11-libs/xforms first, then it will build successfully.
Comment 18 dongxu li 2006-03-20 03:08:13 UTC
Created attachment 82645 [details]
lyx-1.4.0.ebuild.tbz , with xforms as dependency now

depends on xforms now, I don't know how to build without xforms.

Anyway, emerge lyx 1.4.0 is at least working. I think the cjk group is still working on cjk for lyx.
Comment 19 dongxu li 2006-03-20 20:10:48 UTC
Created attachment 82732 [details]
lyx-1.4.0.ebuild.tbz testing

corrected xforms dependency
USE flags: cups debug nls qt
No cjk support
-O2 optimization, other CFLAGS enabled now. (1.3.6 stable unset them, and use -Os).
Comment 20 Martin Ehmsen (RETIRED) gentoo-dev 2006-03-28 15:10:13 UTC
lyx-1.4.0 is in CVS but without CJK (see bug #118140).

*** This bug has been marked as a duplicate of 118140 ***
Comment 21 dongxu li 2006-03-29 06:14:00 UTC
Any reason to unset CFLAGS?

it wouldn't build for 1.3.6 without unsetting CFLAGS(CXXFLAGS). For 1.4.0, we have no such trouble.

Just tested, I can keep my CFLAGS for my p4, and it builds without a problem.
Comment 22 Martin Ehmsen (RETIRED) gentoo-dev 2006-03-29 08:25:50 UTC
CXXFLAGS are not unset, the lyx ebuild just uses a very wierd method for filtering some flags out.
Your flags are still used:
local flags="${CXXFLAGS}..."

The reason is that older versions of lyx failed on some archs with some gcc's with some flags (-Os, -fstack-protector -fstack-protector-all).
If you know that these problems are solved please let me know and I'll remove it from the ebuild (but that means opening another bug about it).

I'll admit that the current way for lyx to handle these things are very wierd, so I have altered the ebuild so it should be a little more clear :-)