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

On Linux several executables are installed as a copy of /usr/bin/miktex instead of a symlink #1317

Closed
1 task done
CastleStar14654 opened this issue Apr 13, 2023 · 4 comments
Milestone

Comments

@CastleStar14654
Copy link

On Linux, four executables in ~/bin, mktexlsr, texhash, texlinks, and updmap, are installed as a copy of /usr/bin/miktex, instead of a symlink, and is not executable by default due to copying. I wonder if it is by design or by mistake, because I tried manually replacing them as symlinks of /usr/bin/miktex, and they work fine.

@CastleStar14654
Copy link
Author

Seems to be related with

#if defined(WITH_MKTEXLSR)
{ MIKTEX_MIKTEX_EXE, { "mktexlsr" }, LinkType::Copy },
#endif
#if defined(WITH_TEXHASH)
{ MIKTEX_MIKTEX_EXE, { "texhash" }, LinkType::Copy },
#endif
#if defined(WITH_TEXLINKS)
{ MIKTEX_MIKTEX_EXE, { "texlinks" }, LinkType::Copy },
#endif
#if defined(WITH_UPDMAP)
{ MIKTEX_MIKTEX_EXE, { "updmap" }, LinkType::Copy },
#endif

@edocevoli edocevoli added this to the 23.4 milestone Apr 15, 2023
edocevoli added a commit that referenced this issue Apr 15, 2023
@edocevoli
Copy link
Member

done

@CastleStar14654
Copy link
Author

Cheers

@CastleStar14654
Copy link
Author

@edocevoli I find that your solution is to make the copy process copy the executive bit as well. However, since these four executables are still installed as a copy, when I update the MiKTeX using package manager like apt, other installed symbolic links are updated since they are only links, but these four copied executables won't. They will keep being the original version.

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

No branches or pull requests

2 participants