Skip to content
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

Set TEXDIR explicitly for removing dependence on kpsewhich #44

Merged
merged 1 commit into from
May 1, 2021

Conversation

titsuki
Copy link
Owner

@titsuki titsuki commented May 1, 2021

Fix #42

Context

See: https://github.com/gnuplot/gnuplot/blob/branch-5-4-stable/configure.ac#L121-L162
As you can see, the steps are as follows:

  1. ./configure sets with-latex=yes as a default value
  2. Check if with-latex=yes is really true
  3. If neither TEXDIR nor path to the kpsewhich (kpsewhich is the command which returns a TEXDIR) are given, this install process fails.

If you pass the step 3 without setting TEXTDIR manually, permission issue may happens because kpsewhich sometimes returns a dir that is owned by root.

Changes proposed in this PR

  • CustomBuilder.pm6 explicitly sets TEXDIR by --with-latex and --with-texdir=... arguments; and
  • Make sure TEXDIR isn't owned by root (by using the subdir undir $prefix)

@titsuki titsuki merged commit 58504f7 into master May 1, 2021
@titsuki titsuki deleted the remove-kpsewhich-dependence branch May 1, 2021 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot install on Ubuntu 20.04
1 participant