Opened 4 years ago

Last modified 4 years ago

#60869 accepted defect

texlive-bin: building under --with-no-root-privileges fails attepting to create dir /Library/TeX

Reported by: mike142wood Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: dliessi (Davide Liessi), mojca (Mojca Miklavec)
Port: texlive-bin

Description

attempt to update (and then remove and build) texlive-bin @2020.54632_1 would not activate because creation of directory /Library/TeX needs root privelege and I am running --with-no-root-privileges. Have I missed setting up an alternate Library path to use ~/Library or /opt/local/Library.

macOS 10.14.6 ; Xcode 11.3.1 (11C504)

Change History (5)

comment:1 Changed 4 years ago by mike142wood

Appeared to build successfully for version texlive-bin @2019.50896_3+x11 on 7 July 2020

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dports@… drkp removed
Keywords: notroot removed
Owner: set to drkp
Status: newassigned
Summary: building texlive-bin under --with-no-root-privileges fails attepting to create dir /Library/TeXtexlive-bin: building under --with-no-root-privileges fails attepting to create dir /Library/TeX

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

Cc: dliessi mojca added
Status: assignedaccepted

The latest version of texlive-bin installs links into /Library/TeX so that MacTeX's TeX Live Utility can switch between active TeX distributions. That won't work for a non-root install

There's not really any point installing that directory structure anywhere else, so we should probably just skip it if non-root. Are there any other configurations where we should also skip it? Maybe it should be a default variant?

comment:4 in reply to:  3 Changed 4 years ago by dliessi (Davide Liessi)

Replying to drkp:

There's not really any point installing that directory structure anywhere else, so we should probably just skip it if non-root.

I agree.

Are there any other configurations where we should also skip it?

I don't see a technical reason to avoid cleaning the old texdists and creating the new one, if we have root privileges. The current code already sensibly deals with non-default prefixes.

Maybe it should be a default variant?

Indeed a user might want to disable the texdist creation. As for the old texdists, given that they do not work anymore and that MacTeX considers them property of MacPorts, I would delete them unconditionally.

comment:5 Changed 4 years ago by mike142wood

texlive-bin, -latex, -common, -basic were brought in as remote dependents of something else, perhaps gnuradio. They seem to uninstall without complaint. No other use of LaTeX on this system.

Perhaps user should be offered the option of going to admin to create /Library/TeX directory or omitting the directory and being told what functionality will be missing.

Note: See TracTickets for help on using tickets.