Opened 10 years ago

Closed 9 years ago

#44340 closed defect (fixed)

texlive-bin @2014 Configure error "-arch ppc" needs "--disable-luajittex"

Reported by: stressfields@… Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: mojca (Mojca Miklavec), dgonyier (Dwaine Gonyier)
Port: texlive-bin

Description (last modified by mf2k (Frank Schima))

On Mac Mini PowerPC OSX 10.5.8 and xcode314_2809,

sudo port install texlive-bin 

fails with the message

:info:build configure: error: Sorry, can not preprocess <lj_arch.h>
:info:build === configuring in luajit failed
:info:build make[2]: *** [recurse] Error 1

(full main.log attached)

My diagnosis: luajit is not available for PowerPC+OSX10.5.8 (xcode3.1.4) and luajittex should be disabled according to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751150 http://comments.gmane.org/gmane.comp.tex.texlive.build/2371

  1. Here is a fix:

Edit the texlive-bin Portfile 122023 2014-07-13 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/tex/texlive-bin/Portfile

Change line 172 from:

                --enable-build-in-source-tree

to these two lines as 172 and 173:

                --enable-build-in-source-tree \
                --disable-luajittex

Save and rerun sudo port install texlive-bin This now runs to completion.

  1. Request: is there a way to pass the flag --disable-luajittex in from the "port build" command line? I tried a few variants but no luck. An exact example with the correct ' " and \ would be appreciated.
  1. Can the Portfile be changed so that if -arch ppc is present then --disable-luajittex is also present? That would probably help others.

Attachments (3)

fresh_build_main.log (288.7 KB) - added by stressfields@… 10 years ago.
texlive-bin.patch (982 bytes) - added by drkp (Dan Ports) 10 years ago.
proposed patch
after_patch_main.log (120.2 KB) - added by dgonyier (Dwaine Gonyier) 10 years ago.
Build failure after proposed Portfile patch

Download all attachments as: .zip

Change History (13)

Changed 10 years ago by stressfields@…

Attachment: fresh_build_main.log added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: --disable-luajittex removed
Owner: changed from macports-tickets@… to dports@…

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers texlive-bin).

comment:2 Changed 10 years ago by drkp (Dan Ports)

Status: newassigned

Changed 10 years ago by drkp (Dan Ports)

Attachment: texlive-bin.patch added

proposed patch

comment:3 Changed 10 years ago by drkp (Dan Ports)

Can you (or someone else with a ppc machine) try the attached patch? I don't have a ppc machine available anymore...

comment:4 in reply to:  3 ; Changed 10 years ago by stressfields@…

Replying to dports@…:

Can you (or someone else with a ppc machine) try the attached patch? I don't have a ppc machine available anymore...

Yes I will be happy to try it. Sorry for the simple question, but now that I have it previously compiled and installed with my old fix, how do I force port to recompile the new version after I apply the patch to Portfile?

comment:5 Changed 10 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:7 Changed 10 years ago by dgonyier (Dwaine Gonyier)

Cc: dgonyier@… added

Cc Me!

Changed 10 years ago by dgonyier (Dwaine Gonyier)

Attachment: after_patch_main.log added

Build failure after proposed Portfile patch

comment:8 in reply to:  4 ; Changed 10 years ago by dgonyier (Dwaine Gonyier)

Replying to stressfields@…:

Replying to dports@…:

Can you (or someone else with a ppc machine) try the attached patch? I don't have a ppc machine available anymore...

Yes I will be happy to try it. Sorry for the simple question, but now that I have it previously compiled and installed with my old fix, how do I force port to recompile the new version after I apply the patch to Portfile?

I tried the patch to Portfile on a PowerBook G4 running 10.5.8 and the build still fails. I attached after_patch_main.log to this ticket.

comment:9 in reply to:  8 Changed 10 years ago by dgonyier (Dwaine Gonyier)

Replying to dgonyier@…:

Replying to stressfields@…:

Replying to dports@…:

Can you (or someone else with a ppc machine) try the attached patch? I don't have a ppc machine available anymore...

Yes I will be happy to try it. Sorry for the simple question, but now that I have it previously compiled and installed with my old fix, how do I force port to recompile the new version after I apply the patch to Portfile?

I tried the patch to Portfile on a PowerBook G4 running 10.5.8 and the build still fails. I attached after_patch_main.log to this ticket.

UPDATE:

I just tried this again and the port install worked when I applied the original patch file to the Portfile

bash-3.2$ sudo port installed texlive-bin
The following ports are currently installed:
  texlive-bin @2013_6+motif+x11
  texlive-bin @2014_1+motif+x11 (active)
bash-3.2$ uname -mprs
Darwin 9.8.0 Power Macintosh powerpc
bash-3.2$ 

comment:10 Changed 9 years ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

Committed the patch in r127888.

Note: See TracTickets for help on using tickets.