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

Get glib, gtk+, harfbuzz and pango working on Darwin #2532

Merged
merged 1 commit into from May 23, 2014
Merged

Conversation

jwiegley
Copy link
Contributor

@jwiegley jwiegley commented May 6, 2014

With this patch I'm able to build the threadscope utility for Haskell.

Note that Xquartz must be installed on Mavericks, as 10.9 does not ship with X11 anymore. I built against Xquartz 2.7.5, the latest version.

@vcunat
Copy link
Member

vcunat commented May 6, 2014

There's something wrong around iconv + nixpkgs + darwin. Our libiconvOrEmpty (&friends) assumes that there's no libiconv without glibc, but to me it seems that darwin distributes one, which creates these collisions. However, I'm not sure if user is required to install something to have it (Xcode?) https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man3/iconv.3.html

@jwiegley
Copy link
Contributor Author

jwiegley commented May 6, 2014

Yes, darwin does distribute one.

@peti
Copy link
Member

peti commented May 7, 2014

Has this libiconv always been around on Darwin, or is that maybe a new addition from one of the recent OS updates?

@jwiegley
Copy link
Contributor Author

jwiegley commented May 7, 2014

I'm not sure how long it's been there. It's in /usr/lib/libiconv.2.4.0.dylib on Mavericks.

@peti
Copy link
Member

peti commented May 7, 2014

If we want to rely on the native iconv library, then we also need a native iconv executable. Does Darwin have that iconv in $PATH? If so, we should probably add it in pkgs/build-support/native-darwin-cctools-wrapper/default.nix and change the libiconv-* attributes to assume that we have a native one on Darwin.

peti added a commit that referenced this pull request May 7, 2014
@jwiegley
Copy link
Contributor Author

jwiegley commented May 8, 2014

Yes, it's at /usr/bin/iconv.

@vcunat
Copy link
Member

vcunat commented May 8, 2014

Well, maybe it's better to depend on our version than on the pre-installed one, as it's more predictable (related to #874).

@jwiegley
Copy link
Contributor Author

jwiegley commented May 8, 2014

@vcunat What do you mean? Rebuild the world using GNU libiconv?

@vcunat
Copy link
Member

vcunat commented May 8, 2014

Yes (that's what we do elsewhere, and we know what version it is without depending on the host).

@jwiegley
Copy link
Contributor Author

jwiegley commented May 9, 2014

I'd be up for trying it. Where do I make that change?

peti added a commit that referenced this pull request May 23, 2014
Get glib, gtk+, harfbuzz and pango working on Darwin
@peti peti merged commit 0715109 into NixOS:master May 23, 2014
@jwiegley jwiegley deleted the gtk branch May 23, 2014 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants