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

Makefile assumes the voc executable is /opt/voc/bin/voc #3

Open
tkurtbond opened this issue Oct 1, 2024 · 6 comments
Open

Makefile assumes the voc executable is /opt/voc/bin/voc #3

tkurtbond opened this issue Oct 1, 2024 · 6 comments

Comments

@tkurtbond
Copy link

It would probably be better to just let voc be found in the path, leaving it up to the user to ensure that. They've most likely installed voc themselves, and know to add the appropriate directories into the PATH.

Here's the trivial patch.
vipack-makefile-patch.txt

@tkurtbond
Copy link
Author

Ugh. I see it's more complicated than that. All the dependencies also set VOC to /opt/voc/bin/voc in their Makefiles. I still think that it would be better to let the user set the PATH to specify where the VOC compiler is to be found.

@shekspir55
Copy link
Collaborator

agree @tkurtbond, very good point, would you like to open a PR?
we just should make sure that this path is also included.

@norayr
Copy link
Member

norayr commented Oct 1, 2024

i pushed the changes you suggested and referenced the issue in the commit.

thank you.

@tkurtbond
Copy link
Author

tkurtbond commented Nov 29, 2024

I've been looking at vipack some more, and see that the dependencies that get cloned into github.com/norayr/ mostly have the line "VOC = /opt/voc/bin/voc" in their instance of GNUmakefile; all except unixFileSystem. This makes it very difficult to build vipack if you don't put voc in /opt/voc/bin/voc. I for instance, always put software I install in /usr/local/sw/versions/SOFTWARENAME/SOFTWAREVERSION, because I used to use a Mac, and before I stopped using it Apple had forbidden users to write anywhere outside their home directory except under /usr/local. This has the added benefit that I can have multiple versions of SOFTWARE installed and select which one I want to use by changing my path.

I think it would be better if the location of the voc executable was not hardcoded and just depended on the user having voc in their path. That way it can be found whereever the user put it.

Do you think this would be useful?

If so, would you like me to fork base64, dbg, http, Internet, mbedtls, opts, skprLogger, strutils, and time and change those lines to just "VOC = voc", test building vipack with these changes, and the submit pull requests for each of those repositories?

@norayr
Copy link
Member

norayr commented Nov 29, 2024

hello, i agree, i will fix the paths in all vipack 'submodules' tomorrow.

@norayr
Copy link
Member

norayr commented Nov 30, 2024

i think i did that, you can test. (:

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

3 participants