Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#11163 closed defect (fixed)

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

Reported by: ossgil@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.3.2
Keywords: lyx, intel Cc: rsorasen@…, ryandesign (Ryan Schmidt), 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 (2)

Portfile-LyX-1.5.3.diff (992 bytes) - added by ryandesign (Ryan Schmidt) 12 years ago.
untested update to 1.5.3
Portfile-LyX-1.5.4.diff (1.3 KB) - added by ryandesign (Ryan Schmidt) 12 years ago.
untested update to 1.5.4 and add mirror sites

Download all attachments as: .zip

Change History (12)

comment:1 Changed 13 years ago by mike.patterson@…

1.4.4 is out now.

Change sha1 to 83af622af96be246180042b780f9c3c771c74067 and version to 1.4.4.

comment:2 Changed 13 years ago by pipping@…

Milestone: Available Ports

comment:3 Changed 13 years ago by pipping@…

Milestone: Available PortsPort Bugs

comment:4 Changed 13 years ago by pguyot (Paul Guyot)

Cc: rsorasen@… added

comment:5 Changed 12 years ago by ryandesign (Ryan Schmidt)

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 12 years ago by ryandesign (Ryan Schmidt)

Attachment: Portfile-LyX-1.5.3.diff added

untested update to 1.5.3

comment:6 Changed 12 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… macports.users@… added
Priority: HighNormal
Summary: BUG: LyX fails to download + compile issue on intelBUG: 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 12 years ago by ryandesign (Ryan Schmidt)

Attachment: Portfile-LyX-1.5.4.diff added

untested update to 1.5.4 and add mirror sites

comment:7 Changed 12 years ago by macports.users@…

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

Unknown frontend 'qt'

comment:8 in reply to:  7 Changed 12 years 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

comment:9 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

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.

comment:10 Changed 11 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.