New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add historical repo paths to install cmd for old versions of texlive #17893
Conversation
* see discussion in easybuilders#17871
I also patched the |
@@ -41,6 +45,7 @@ postinstallcmds = [ | |||
'echo "TEXMFSYSCONFIG %(installdir)s/texmf-config" >> %(installdir)s/texlive.profile && ' | |||
'echo "TEXMFSYSVAR %(installdir)s/texmf-var" >> %(installdir)s/texlive.profile && ' | |||
'%(builddir)s/install-tl-%(version)s/install-tl -profile %(installdir)s/texlive.profile' | |||
' -repository ' + 'ftp://tug.org/historic/systems/texlive/%s/tlnet-final' % local_version_year |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an HTTPS mirror?
FTP is blocked on some systems (it is on ours)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rsync://tug.org/historic/
is a better option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's an https version. I'll change and test tomorrow when I'm back in the office.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/ good enough (https is also available)? There are reasons not to hammer it, but I hope it's ok? https://tex.stackexchange.com/questions/460132/historic-tex-live-distributions-https-sftp-mirror
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Maybe rsync://tug.org/historic/ is a better option?" @boegel can you please elaborate? I don't think I understand.
My current thinking is:
install-tl ||
install-tl -repository ftp:// ||
install-tl -repository https://
given how the https mirror is almost unusably slow.
I would then skip the first line when updating the already old versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hattom Makes sense to me. That should lead to a working install even on systems where FTP is blocked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do use a local variable here you just plug in the URL to use:
local_install_tl = "%%(builddir)s/install-tl-%%(version)s/install-tl -profile %(installdir)s/texlive.profile %s"
postinstallcmds = [
'echo "TEXDIR %(installdir)s/" > %(installdir)s/texlive.profile && '
'echo "TEXMFLOCAL %(installdir)s/texmf-local" >> %(installdir)s/texlive.profile && '
'echo "TEXMFSYSCONFIG %(installdir)s/texmf-config" >> %(installdir)s/texlive.profile && '
'echo "TEXMFSYSVAR %(installdir)s/texmf-var" >> %(installdir)s/texlive.profile ',
# sensible comment to explain what the command below is about goes here
' || '.join([
local_install_tl % '',
local_install_tl % '-repository ftp://...',
local_install_tl % '-repository https://...',
]),
]
The use of %%
in local_install_tl
is important...
@boegelbot please test @ generoso |
@boegel: Request for testing this PR well received on login1 PR test command '
Test results coming soon (I hope)... - notification for comment with ID 1560021570 processed Message to humans: this is just bookkeeping information for me, |
The test on I'll rerun the test with |
@boegelbot please test @ generoso |
@boegel: Request for testing this PR well received on login1 PR test command '
Test results coming soon (I hope)... - notification for comment with ID 1561382332 processed Message to humans: this is just bookkeeping information for me, |
Test report by @boegelbot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Going in, thanks @hattom! |
tl;dr: the default
-repository
location for the install script points to the default mirror, which raises an error for version_year != 2023