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

libamqpcpp: init at 2.7.4 #32073

Merged
merged 1 commit into from Nov 29, 2017
Merged

libamqpcpp: init at 2.7.4 #32073

merged 1 commit into from Nov 29, 2017

Conversation

MikePlayle
Copy link
Contributor

Motivation for this change
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
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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.

{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
name = "libamqpcpp-2.7.4";
Copy link
Member

Choose a reason for hiding this comment

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

We use a 2 space indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

stdenv.mkDerivation rec {
name = "libamqpcpp-2.7.4";

src = fetchurl {
Copy link
Member

Choose a reason for hiding this comment

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

fetchFromGitHub may be preferable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This looks much more suitable - thank you!
It appears to download the same file, but calculates a different hash for it; is this expected?

@grahamc
Copy link
Member

grahamc commented Nov 26, 2017

@GrahamcOfBorg build libamqpcpp

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure for system: x86_64-darwin

make -C src all
make[1]: Entering directory '/private/tmp/nix-build-libamqpcpp-2.7.4.drv-0/AMQP-CPP-2.7.4/src'
g++ -Wall -c -I. -std=c++11 -MD -g -fpic -o deferredconsumer.o deferredconsumer.cpp
/nix/store/i6xy9nh39wwzs048hh6fabb2fbqphvya-bash-4.4-p12/bin/bash: g++: command not found
make[1]: *** [Makefile:52: deferredconsumer.o] Error 127
make[1]: Leaving directory '/private/tmp/nix-build-libamqpcpp-2.7.4.drv-0/AMQP-CPP-2.7.4/src'
make: *** [Makefile:9: all] Error 2
builder for '/nix/store/lr009h2fq2wz9i4b7ljg0flpq4x36jh6-libamqpcpp-2.7.4.drv' failed with exit code 2
error: build of '/nix/store/lr009h2fq2wz9i4b7ljg0flpq4x36jh6-libamqpcpp-2.7.4.drv' failed on ‘mac1’
error: build of ‘/nix/store/lr009h2fq2wz9i4b7ljg0flpq4x36jh6-libamqpcpp-2.7.4.drv’ failed

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-linux

ln -r -s -f /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so.2.7.4 /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so.2.7
ln -r -s -f /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so.2.7.4 /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so
ln -r -s -f /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.a.2.7.4 /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.a
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4
shrinking /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so.2.7.4
stripping (with flags -S) in /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib 
patching script interpreter paths in /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4
checking for references to /tmp/nix-build-libamqpcpp-2.7.4.drv-0 in /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4...
/nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4

@MikePlayle
Copy link
Contributor Author

Should I try to fix the Darwin build failure? I've looked at the default.nix files for a few other C++ libraries, but none of them seem to include g++ as a dependency explicitly, as far as I can see. Being quite new to Nix I'm not entirely sure how to proceed.

@orivej orivej merged commit ea3daaa into NixOS:master Nov 29, 2017
@orivej
Copy link
Contributor

orivej commented Nov 29, 2017

Fixed compatibility with Darwin, moved to the proper place in all-packages.nix, and merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants