At January the 17th a new version of lyx has been released.
Created attachment 77521 [details, diff] updated lyx-1.3.6-gentoo.diff to be applied on lyx-1.3.7
I renamed 1.3.6 to 1.3.7 and applied the patch. Lyx seems to work well.
*** Bug 119775 has been marked as a duplicate of this bug. ***
We will probably have to wait until cjk patches come out for this version, right cjk team?
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.
*** Bug 123406 has been marked as a duplicate of this bug. ***
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.
Created attachment 80216 [details] lyx-1.3.7.ebuild (sans patches)
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.
I knew I'd forget something. The ebuild has only been tested on my AMD64 system.
(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.
Lyx 1.4.0 has been released http://www.lyx.org/
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.
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.
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.
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
(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.
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.
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).
lyx-1.4.0 is in CVS but without CJK (see bug #118140). *** This bug has been marked as a duplicate of 118140 ***
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.
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 :-)