Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #11163 (closed defect: fixed)

Opened 2 years ago

Last modified 9 months ago

BUG: lyx-1.4.0pre3 fails to download + compile issue on intel

Reported by: ossgil@… Owned by: macports-tickets@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.3.2
Keywords: lyx, intel Cc: rsorasen@…, ryandesign@…, macports.users@…
Port:

Description

First the source file for the current LyX port is no longer present on the original server (lyx-1.4.0pre3.tar.gz). Replacing it with the 1.4.3 release initially fails on intel machines since the port requires gcc-3.3, which will not compile for intel. Removing this requirement, by modifying the Portfile further, allows for a succesful install. Finally I have modified the Portfile to make LyX install into /Applications/MacPorts/ instead of the old /Applications/DarwinPorts/ directory. I have been using the compiled version and it seems to run ok, however it does exhibits crashes upon exiting.

Modified Portfile included. No changes were made to the patch.

# $Id: Portfile 19376 2006-09-02 03:19:06Z yeled@macports.org $
PortSystem      1.0
name                    LyX
version         1.4.3
platforms               darwin
categories      aqua
maintainers     rsorasen@broadpark.no
description     WYSIWYM document processor

long_description        LyX is an advanced open source document processor \
                                that encourages an approach to writing based on \
                                the structure of your documents, not their \
                                appearance. LyX lets you concentrate on writing, \
                                leaving details of visual layout to the software.

homepage                http://www.lyx.org
master_sites    ftp://ftp.devel.lyx.org/pub/lyx/
distname                lyx-${version}
checksums               ${distname}${extract.suffix} sha1 eec60f3a22d5ed75652d9564b18083b74b6b65d6
worksrcdir      lyx-${version}
depends_lib     lib:libqt.3.3:qt3-mac

patchfiles      patch-ltmain.sh

configure.env   CC="gcc" CXX="g++" \
    LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz" \
    QTDIR="/opt/local" CPPFLAGS="-I/opt/local/include/qt3"

configure.args --with-frontend=qt --without-x --with-included-gettext \
    --enable-optimization=-Os --disable-concept-checks \
    --prefix=/Applications/MacPorts/LyX.app --with-qt-dir=${prefix}

pre-destroot {
    xinstall -m 755 -d ${destroot}/Applications/DarwinPorts
    file copy ${worksrcpath}/development/MacOSX/LyX.app ${destroot}/Applications/MacPorts
}

post-destroot {
    file delete ${destroot}/Applications/MacPorts/LyX.app/Contents/Resources/LyX/images/lyx.xpm
}

Attachments

Portfile-LyX-1.5.3.diff (1.0 KB) - added by ryandesign@… 13 months ago.
untested update to 1.5.3
Portfile-LyX-1.5.4.diff (1.3 KB) - added by ryandesign@… 10 months ago.
untested update to 1.5.4 and add mirror sites

Change History

  Changed 23 months ago by mike.patterson@…

1.4.4 is out now.

Change sha1 to 83af622af96be246180042b780f9c3c771c74067 and version to 1.4.4.

  Changed 22 months ago by pipping@…

  • milestone set to Available Ports

  Changed 22 months ago by pipping@…

  • milestone changed from Available Ports to Port Bugs

  Changed 21 months ago by pguyot@…

  • cc rsorasen@… added

  Changed 13 months ago by ryandesign@…

LyX is now at version 1.5.3. Here's a diff which might work, except I can't even get the dependency qt3-mac to compile right now so I don't know.

Changed 13 months ago by ryandesign@…

untested update to 1.5.3

  Changed 10 months ago by ryandesign@…

  • cc ryandesign@…, macports.users@… added
  • priority changed from High to Normal
  • summary changed from BUG: LyX fails to download + compile issue on intel to BUG: lyx-1.4.0pre3 fails to download + compile issue on intel

Via a private email to me in follow-up to #14502 I learned that the lyx ftp server is having problems right now and that we should use their mirrors instead. Also the software is at version 1.5.4 now. I still can't try to build it because I still can't build the dependency qt3-mac, but here's an updated (and untested) patch. If anyone can built qt3-mac and verify that this patch works, please add a note here and I'll commit it. Or, if this patch doesn't work, please let me know what error you get.

Changed 10 months ago by ryandesign@…

untested update to 1.5.4 and add mirror sites

follow-up: ↓ 8   Changed 10 months ago by macports.users@…

**** The following problems have been detected by configure.
**** (see the section 'Problems' in the INSTALL file)

** Unknown frontend 'qt'

in reply to: ↑ 7   Changed 10 months ago by macports.users@…

Replying to macports.users@gmail.com:

**** The following problems have been detected by configure.
**** (see the section 'Problems' in the INSTALL file) ** Unknown frontend 'qt'

The above message turned up after

$sudo port -fvd install lyx

was run on following machine:

$ system_profiler | head  ; uname -a
Hardware:

    Hardware Overview:

      Machine Name: iBook G4
      Machine Model: PowerBook6,5
      CPU Type: PowerPC G4  (1.1)
      Number Of CPUs: 1
      CPU Speed: 1.2 GHz
      L2 Cache (per CPU): 512 KB
Darwin Mac 8.11.0 Darwin Kernel Version 8.11.0: ; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc

  Changed 9 months ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed

The main problem was that LyX now requires Qt 4. I've committed a working 1.5.4 update based on Ryan's patch in r35662.

Note: See TracTickets for help on using tickets.