Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15446 closed defect (fixed)

teTeX 3.0_5 activation failed

Reported by: jmstephensjr@… Owned by: stechert@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: teTeX octave Cc: alakazam@…
Port:

Description

I have a fresh macports installation.

I have installed gcc42 and dependents. All OK so far.

I go to install octave, and it needs to install about 25 dependencies. When it reached teTex 3.0_5 there was a problem. It compiled and installed, but failed to activate. I know it installed because it shows up in the list of installed ports (without being tagged as activated).

Here is the output of the build/install...

james-stephens-computer:~ jamesstephens$ port installed The following ports are currently installed:

gcc42 @4.2.4_0 (active) gmp @4.2.2_1 (active) libiconv @1.12_0+darwin_8 (active) mpfr @2.3.1_0+darwin_i386 (active)

james-stephens-computer:~ jamesstephens$ sudo port install octave ---> Fetching metis ---> Attempting to fetch metis-4.0.tar.gz from http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ ---> Verifying checksum(s) for metis ---> Extracting metis

...

---> Cleaning qhull ---> Fetching teTeX ---> Attempting to fetch tetex-src-3.0.tar.gz from ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ ---> Attempting to fetch tetex-texmf-3.0po.tar.gz from ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ ---> Verifying checksum(s) for teTeX ---> Extracting teTeX ---> Configuring teTeX ---> Building teTeX with target all ---> Staging teTeX into destroot ---> Installing teTeX 3.0_5 ---> Activating teTeX 3.0_5 Error: Target org.macports.activate returned: Image error: /opt/local/bin/a2ping is being used by the active pTeX port. Please deactivate this port first, or use the -f flag to force the activation. Error: The following dependencies failed to build: teTeX texlive texlive_base texlive_texmf-minimal texlive_texmf-full Error: Status 1 encountered during processing. james-stephens-computer:~ jamesstephens$

Please let me know if I am doing something silly here. Thanks in advance for the help.

-- JMS

Change History (6)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Cc: alakazam@… added
Milestone: Port Bugs
Owner: changed from macports-tickets@… to stechert@…

I think this is a problem with the octave port. It lists three dependencies on bin:tex:$whatever, and consequently tries to install teTeX, texlive and pTeX, which as you discovered is impossible. It should list only one port for the TeX dependency, preferably bin:tex:texlive.

For an immediate workaround, I'd recommend uninstalling teTeX and pTeX and then installing texlive. Then you can try installing octave again, and since TeX will be present from the start of the process, the dependencies will all register as being fulfilled and it should work.

comment:2 in reply to:  1 Changed 16 years ago by jmstephensjr@…

Replying to jmr@macports.org:

I think this is a problem with the octave port. It lists three dependencies on bin:tex:$whatever, and consequently tries to install teTeX, texlive and pTeX, which as you discovered is impossible. It should list only one port for the TeX dependency, preferably bin:tex:texlive.

For an immediate workaround, I'd recommend uninstalling teTeX and pTeX and then installing texlive. Then you can try installing octave again, and since TeX will be present from the start of the process, the dependencies will all register as being fulfilled and it should work.

As suggested, I uninstalled/cleaned all flavors of TeX in my macports directory. I then installed texlive. I then installed octave.

Everything seems OK.

Many thanks.

-- James

comment:3 Changed 16 years ago by alakazam@…

Sorry for missing this issue.

I believe that jmr's revision 37228 should fix this bug ; I am currently attempting to build texlive (but am encountering difficulties ; that will be for another ticket). I agree that having multiple dependencies for the tex binary is evil. However, I think that keeping the pTeX dependency was explicitly requested when upgrading the octave port recently ; is it possible to handle multiple ports providing the same dependencies without resorting to variants ? I would imagine that the answer is no, which would mean I need to add a variant for pTeX so as to avoid the difficulties encountered in this ticket, and at the same time allow japanese octave users to rely on pTeX instead of texlive.

comment:4 in reply to:  3 Changed 16 years ago by milosh@…

Replying to alakazam@melix.net:

Is it possible to handle multiple ports providing the same dependencies without resorting to variants ? I would imagine that the answer is no, which would mean I need to add a variant for pTeX so as to avoid the difficulties encountered in this ticket, and at the same time allow japanese octave users to rely on pTeX instead of texlive.

It is possible to accept a dependency provided by serveral ports without variants: the bin:tex:texlive dependency scheme is fulfilled as soon as some port (or even apple) installed a program named tex in the PATH. To ensure it was installed through macports, you can use path:${prefix}/bin/tex:texlive which searches for the said file (a file that ptex, teTeX and texlive should all create), and installs texlive if the file doesn't exist.

This is exactly why most dependency on LaTeX are written as a bin: or path: instead of the most used port: dependency scheme.

comment:5 Changed 16 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

This was indeed fixed by r37228.

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.