Opened 7 years ago

Last modified 4 years ago

#54841 assigned defect

auctex @11.91+mactex: depends on texlive-basic

Reported by: jbouttier Owned by: jjstickel (Jonathan Stickel)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: ballapete (Peter "Pete" Dyballa)
Port: auctex

Description

Hi,

It seems that auctex now requires having some texlive-* ports installed despite being installed with the +mactex variant (and a MacTeX distribution being installed and /Library/TeX/texbin being declared in binpath).

$ sudo port uninstall texlive-basic
Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents.
The following ports will break: auctex @11.91_0
Continue? [y/N]:

I did not have the problem before, texlive ports must have been pulled during some upgrade. Thanks,

Jérémie

Attachments (1)

auctex.diff (857 bytes) - added by jbouttier 4 years ago.

Download all attachments as: .zip

Change History (15)

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

Indeed it looks like the texlive dependencies should be removed when using the +mactex variant.

$ port info --depends auctex +mactex 
depends_test: 
depends_build: texlive-latex
depends_run: texlive
depends_fetch: 
depends_lib: emacs
depends_extract: 

Can you please test that it still works if you force the uninstall?

sudo port -f uninstall texlive texlive-basic

comment:2 Changed 7 years ago by jbouttier

Yes the package still works correctly if I force the uninstall.

comment:3 Changed 7 years ago by mf2k (Frank Schima)

There is a comment in the variant saying "# Note: This also needs /usr/texbin in binpath in macports.conf". Have you tried that? If that fixes it, then this needs to be displayed somewhere.

comment:4 in reply to:  3 Changed 5 years ago by jbouttier

Replying to mf2k:

There is a comment in the variant saying "# Note: This also needs /usr/texbin in binpath in macports.conf". Have you tried that? If that fixes it, then this needs to be displayed somewhere.

I tried adding /usr/texbin in binpath but it does not seem to change anything :

$ grep texbin /opt/local/etc/macports/macports.conf
binpath             	/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/Library/TeX/texbin:/usr/texbin
$ sudo port install auctex +mactex                 
--->  Computing dependencies for auctex
The following dependencies will be installed: 
 graphite2
 harfbuzz
 harfbuzz-icu
 libzzip
 mpfr
 potrace
 texlive-basic
 texlive-bin
 texlive-common
 texlive-latex
 xorg-libXaw
Continue? [Y/n]: n

Let me also point out that, since El Capitan, MacTeX does not use /usr/texbin anymore (as /usr is protected), but /Library/TeX/texbin instead.

comment:5 Changed 5 years ago by jbouttier

As a side remark, the variant +emacs_app also seems to be ineffective now.

comment:6 Changed 4 years ago by ballapete (Peter "Pete" Dyballa)

Cc: ballapete added

comment:7 Changed 4 years ago by ballapete (Peter "Pete" Dyballa)

This problem still exists in Big Sur. During the configure stage this is found:

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_auctex/auctex/work/auctex-12.1" && ./configure --prefix=/opt/local --with-lispdir=/opt/local/share/emacs/site-lisp --with-auto-dir=/opt/local/share/emacs/site-lisp/auctex/auto --with-texmf-dir=/usr/local/texlive/texmf-local
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_auctex/auctex/work/auctex-12.1" && ./configure --prefix=/opt/local --with-lispdir=/opt/local/share/emacs/site-lisp --with-auto-dir=/opt/local/share/emacs/site-lisp/auctex/auto --with-texmf-dir=/usr/local/texlive/texmf-local
checking for make... make
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for date with git... git not found, checking for date in ChangeLog:
2017-12-10
checking for release with git... git not found, checking for release in ChangeLog:
12.1
checking for date with git... git not found, checking for date in ChangeLog:
2017-12-10
checking for release with git... git not found, checking for release in ChangeLog:
12.1
checking for emacs... /opt/local/bin/emacs
checking if /opt/local/bin/emacs is XEmacs... no
checking for Emacs prefix... "/opt/local"
checking if Emacs is recent enough... yes
checking for MULE support... yes
checking if build directory is valid... yes
checking where lisp files go... /opt/local/share/emacs/site-lisp
checking what file to use for auctex startup... /opt/local/share/emacs/site-lisp/auctex.el
checking what file to use for preview startup... /opt/local/share/emacs/site-lisp/preview-latex.el
checking where the package lisp files go... /opt/local/share/emacs/site-lisp/auctex
checking where the data files go... /opt/local/share/emacs/site-lisp/auctex
checking where the info files go... ${datarootdir}/info
checking where automatically generated global style hooks go... /opt/local/share/emacs/site-lisp/auctex/auto
checking for tex... /usr/local/texlive/2020/bin/x86_64-darwin/tex
checking for pdftex... /usr/local/texlive/2020/bin/x86_64-darwin/pdftex
checking for dvips... /usr/local/texlive/2020/bin/x86_64-darwin/dvips
checking for gs... gs
checking for latex... /usr/local/texlive/2020/bin/x86_64-darwin/latex
checking for pdflatex... /usr/local/texlive/2020/bin/x86_64-darwin/pdflatex
checking for tex... (cached) /usr/local/texlive/2020/bin/x86_64-darwin/tex
Preview will be placed in /usr/local/texlive/texmf-local/tex/latex/preview
Preview docs will be placed in /usr/local/texlive/texmf-local/doc/latex/styles
checking for texhash... /usr/local/texlive/2020/bin/x86_64-darwin/texhash
checking for initexmf... /usr/local/texlive/2020/bin/x86_64-darwin/texhash
checking for glaring installation conflicts... probably none
checking for perl... /opt/local/bin/perl
checking for makeinfo... /opt/local/bin/makeinfo
checking for texi2html... :
checking for texi2dvi... /opt/local/bin/texi2dvi
checking for texi2pdf... /opt/local/bin/texi2pdf
checking for texi2pdf... /opt/local/bin/texi2pdf
checking for install-info... /opt/local/bin/install-info
configure: creating ./config.status

The texlive dependencies should be put into a clause for non-MacTeX installation. The git problem is suspicious – I have installed:

  git @2.29.2_0+credential_osxkeychain+diff_highlight+doc+pcre+perl5_30 (active) platform='darwin 20' archs='x86_64' date='2020-11-16T11:02:05+0100'

The texi2* and makeinfo utilities come from the texinfo port which does not depend on TeX Live. So there is obviously no need for MacPorts' TeX Live.

comment:8 Changed 4 years ago by jjstickel (Jonathan Stickel)

I recently volunteered to be maintainer of auctex (it was previously nomaintainer). I don't use mactex, and so I'm not able to fix the mactex variant myself. Happy to entertain patches or pull-requests, though.

comment:9 Changed 4 years ago by jjstickel (Jonathan Stickel)

Cc: jjstickel added

comment:10 in reply to:  8 Changed 4 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jjstickel: I stopped using MacTeX…

comment:11 Changed 4 years ago by jjstickel (Jonathan Stickel)

I'll leave this ticket up for awhile to see if there is anymore activity. If not, I'll likely deprecate and then remove the mactex variant.

comment:12 Changed 4 years ago by mf2k (Frank Schima)

Cc: jjstickel removed
Owner: set to jjstickel
Status: newassigned

Changed 4 years ago by jbouttier

Attachment: auctex.diff added

comment:13 Changed 4 years ago by jbouttier

Thanks jjstickel for picking up the torch. I have just attached a patch that seems to do the job.

Last edited 4 years ago by jbouttier (previous) (diff)

comment:14 Changed 4 years ago by ballapete (Peter "Pete" Dyballa)

configure.args-append  --with-emacs=${applications_dir}/Emacs.app/Contents/MacOS/Emacs}}}

is only *one* option. A different `configure` argument is needed for a different `variant` of `GNU Emacs`:

{{{
configure.args-append  --with-emacs=${applications_dir}/EmacsMac.app/Contents/MacOS/Emacs
}}}
Last edited 4 years ago by ballapete (Peter "Pete" Dyballa) (previous) (diff)
Note: See TracTickets for help on using tickets.