Skip to content

xapian: fixup darwin #25774

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

Merged
merged 1 commit into from
May 19, 2017
Merged

xapian: fixup darwin #25774

merged 1 commit into from
May 19, 2017

Conversation

matthewbauer
Copy link
Member

@matthewbauer matthewbauer commented May 14, 2017

The configure script is detecting that __exp10 is available even
though it isn’t on latest versions. This is the best fix I can find
for now.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

The configure script is detecting that __exp10 is available even
though it isn’t on latest versions. This is the best fix I can find
for now.
@mention-bot
Copy link

@matthewbauer, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Mic92, @peterhoeg and @chaoflow to be potential reviewers.

@peterhoeg
Copy link
Member

Is that with clang or gcc?

# but it’s not available on my systems (or hydra apparently)
postConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace config.h \
--replace "#define HAVE___EXP10 1" "#undef HAVE___EXP10"
Copy link
Member

@Mic92 Mic92 May 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems a GNU extension (glibc).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"exp10" is a glibc extension, but *BSD usually provide "__exp10":

http://www.manpagez.com/man/3/__exp10/

I don't know why it's broken on macOS now, but this seems to fix it.

@LnL7 LnL7 added the 6.topic: darwin Running or building packages on Darwin label May 14, 2017
@Mic92 Mic92 merged commit bde09a9 into NixOS:master May 19, 2017
@matthewbauer matthewbauer deleted the xapian-fixup branch February 22, 2019 04:41
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

5 participants