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

install-asy create a symlink to the bin directory for xasy.py that is not executable #497

Open
daeho-ro opened this issue Nov 27, 2024 · 2 comments

Comments

@daeho-ro
Copy link

  • asymptote/Makefile.in

    Lines 310 to 332 in 98c698f

    install-asy: asy sty $(PYFILES)
    ${INSTALL} -d $(bindir) $(asydir) $(exampledir) $(animationsdir)
    ${INSTALL} -d $(shaderdir) $(webgldir) \
    $(GUIdir) $(GUIdir)/configs \
    $(GUIdir)/res $(GUIdir)/res/icons \
    $(GUIdir)/xasyicons $(GUIdir)/xasyqtui $(GUIdir)/xasyversion
    -${INSTALL} -d $(latexdir)
    -${INSTALL} -d $(contextdir)
    ${INSTALL} -p -m 755 $(NAME) $(bindir)
    ${INSTALL} -p -m 644 base/*.asy $(addprefix base/,$(EXTRA)) \
    asy-keywords.el $(asydir)
    ${INSTALL} -p -m 644 base/shaders/*.glsl $(shaderdir)
    ${INSTALL} -p -m 644 base/webgl/asygl.js \
    $(webgldir)
    ${INSTALL} -p -m 755 GUI/xasy.py $(GUIdir)
    ${INSTALL} -p -m 644 GUI/*.py $(GUIdir)
    -${INSTALL} -p -m 644 GUI/xasyicons/*.py $(GUIdir)/xasyicons
    -${INSTALL} -p -m 644 GUI/xasyqtui/*.py $(GUIdir)/xasyqtui
    -${INSTALL} -p -m 644 GUI/xasyversion/*.py $(GUIdir)/xasyversion
    ${INSTALL} -p -m 644 GUI/configs/*.cson $(GUIdir)/configs
    ${INSTALL} -p -m 644 GUI/res/icons/*.svg $(GUIdir)/res/icons
    ln -sf @datadir@/asymptote/GUI/xasy.py $(bindir)/$(XNAME)
    ${INSTALL} -p -m 644 examples/*.asy $(addprefix examples/,$(EXEXTRA)) \

During the installation step, a symlink for xasy.py is created to the bin directory that is not executable. Are there any way to prevent or can you add an option to avoid it? Homebrew allows to install executables only in the bin directory and so I wish to find a way. Thanks,

Ref:

@johncbowman
Copy link
Member

Are you asking us to install xasy.py with permission -m 755? We can (and should) certainly do that.
The symlink is necessary to add the command xasy, so we wouldn't want to get rid of that.

@daeho-ro
Copy link
Author

Sorry for confusion, it is just about the executable permission. Your first sentence is right.

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