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

Macports packaging issues #82

Closed
wbl opened this issue Jul 18, 2016 · 8 comments
Closed

Macports packaging issues #82

wbl opened this issue Jul 18, 2016 · 8 comments

Comments

@wbl
Copy link

wbl commented Jul 18, 2016

I'm working on making ChezScheme availible in macports. Unfortunately this requires linking against macports zlib, not the vendored one. Is there a configuration option for this/is there a reason it is vendored?

Also it seems the $CC environmental variable is not honored, and we'd like it to be. There was also a problem with build and configure downloading things, but that seems to be a more a nice to avoid. We have our own mirroring system.

The ticket in Macports is https://trac.macports.org/ticket/51863.

@dybvig
Copy link
Member

dybvig commented Jul 18, 2016

Thanks for working on this. It would be nice to have Chez Scheme available via macports.

Honoring the CC variable (preferably at configure time, ala CFLAGS, CPPFLAGS, and LDFLAGS) seems like a reasonable and straightforward change to make. Feel free to make the change yourself and put in a pull request or let me know if you'd prefer we do it.

The complaints about zlib in the ticket are due to a couple of misunderstandings. First, we link statically against libz.a, so the install location for the dynamic library is irrelevant. Second, X11 is required by the expression editor, not by zlib. So I would push back on this so we don't have to hook the configure / build process to support other mechanisms for including zlib.

That begs the question about the X11 include files. The reason why they're needed by the expression editor is covered in the discussion of issue 9. The macports version should support use under X11 if possible. If compiling against the X11 libraries is not possible, we'll have to provide a way to build without X11 and leave Xquartz users with a choice between using macports to install Chez Scheme or getting full functionality.

@wbl
Copy link
Author

wbl commented Jul 19, 2016

I will try to modify the Makefile.in appropriately to honor CC.

I see your point about zlib, and will add X as a dependency. I think that will be enough, but will check with the committers to Macports.

@ryandesign
Copy link

MacPorts contains all of Xquartz, in separate ports for each X library, so it's no problem for the ChezScheme port @wbl is developing to declare dependencies on whatever X libraries it needs.

MacPorts, and macOS in general, prefers dynamic linking over static linking. ChezScheme should dynamically link to MacPorts zlib, not download and build its own copy.

Generally, all fetching of data from the Internet should be done by MacPorts during the fetch phase, not by the build system during later phases.

@wbl
Copy link
Author

wbl commented Aug 3, 2016

Looks like I won't get to the CC issues anytime soon, so you might be able to solve them faster.

@wbl
Copy link
Author

wbl commented Oct 16, 2016

Okay, I have some more time now to work on this. Are all of @ryandesign's things still issues? I've got the X dependence declared, but am unsure how to fix the fetch issue.

@tisonkun
Copy link
Contributor

With macports/macports-ports@d4ef3b6 I think this issue is fixed.

cc @wbl @ryandesign @dybvig

@jltaylor-us
Copy link
Contributor

Is this issue resolved?

@wbl
Copy link
Author

wbl commented Jun 11, 2021

It's in MacPorts now, so I think so.

@wbl wbl closed this as completed Jun 11, 2021
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

5 participants