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

conan: Fix build #36806

Merged
merged 1 commit into from Mar 13, 2018
Merged

conan: Fix build #36806

merged 1 commit into from Mar 13, 2018

Conversation

timokau
Copy link
Member

@timokau timokau commented Mar 11, 2018

conan has very strict requirements on the versions of its dependencies.
This patch adds downgraded versinos of node-semver and distro to
statisfy these requirements.

Motivation for this change

/cc ZHF #36453 (please backport)

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.

@@ -317,7 +317,9 @@ stdenv.mkDerivation ({

NIX_LDFLAGS = stdenv.lib.optionalString hostPlatform.isSunOS "-lm -ldl";

preConfigure = stdenv.lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) ''
preConfigure = ''
patchShebangs configure
Copy link
Member

Choose a reason for hiding this comment

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

Why is this change to gcc6 necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, its not. That was the fix for #36754 that I forgot to remove before commiting. Good catch.

I removed it and force pushed.

conan has very strict requirements on the versions of its dependencies.
This patch adds downgraded versinos of node-semver and distro to
statisfy these requirements.
@fpletz
Copy link
Member

fpletz commented Mar 13, 2018

@GrahamcOfBorg build conan

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin

The following builds were skipped because they don't evaluate on x86_64-darwin: conan

No log is available.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: conan

Partial log (click to expand)

/tmp/nix-build-conan-1.1.1.drv-0/conan-1.1.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/1186502jrg3n16zpp4mjzidgi2bf8hsl-conan-1.1.1
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/1186502jrg3n16zpp4mjzidgi2bf8hsl-conan-1.1.1/lib  /nix/store/1186502jrg3n16zpp4mjzidgi2bf8hsl-conan-1.1.1/bin 
patching script interpreter paths in /nix/store/1186502jrg3n16zpp4mjzidgi2bf8hsl-conan-1.1.1
checking for references to /tmp/nix-build-conan-1.1.1.drv-0 in /nix/store/1186502jrg3n16zpp4mjzidgi2bf8hsl-conan-1.1.1...
wrapping `/nix/store/1186502jrg3n16zpp4mjzidgi2bf8hsl-conan-1.1.1/bin/conan_server'...
wrapping `/nix/store/1186502jrg3n16zpp4mjzidgi2bf8hsl-conan-1.1.1/bin/conan_build_info'...
wrapping `/nix/store/1186502jrg3n16zpp4mjzidgi2bf8hsl-conan-1.1.1/bin/conan'...

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: conan

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1/lib  /nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1/bin
patching script interpreter paths in /nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1
checking for references to /build in /nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1...
wrapping `/nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1/bin/conan'...
wrapping `/nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1/bin/conan_build_info'...
wrapping `/nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1/bin/conan_server'...
/nix/store/qpbiad446d7lv9l07mxk523wb35j7px3-conan-1.1.1

@fpletz fpletz merged commit 4b72196 into NixOS:master Mar 13, 2018
@dotlambda
Copy link
Member

dotlambda commented Mar 14, 2018

@timokau The dependencies' versions should be pinned in another way. We do not want to have multiple version inside the pythonPackages prefix. Have a look at https://github.com/NixOS/nixpkgs/blob/staging/pkgs/servers/home-assistant/appdaemon.nix for how to do it correctly.
Please open another PR that removes the added pythonPackages and uses packageOverrides instead.

/cc @FRidh

@dotlambda
Copy link
Member

@timokau Regarding the tests: nose-parameterized was removed from pythonPackages because it has been renamed to parameterized, see https://pypi.org/project/nose-parameterized/. I already opened an upstream PR (conan-io/conan#2549) which you can use with fetchpatch.

{ stdenv, fetchPypi, buildPythonPackage, pytest, tox }:

buildPythonPackage rec {
name = "${pname}-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

name should not be added to python packages anymore.

{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov, tox }:

buildPythonPackage rec {
name = "${pname}-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

name should not be added to python packages anymore.

@dotlambda
Copy link
Member

@timokau Please be quick with the follow-up PR as this is hindering me from updating Home Assistant! (Some issue where a script of mine finds two versions of distro and doesn't know which one to choose)

@timokau
Copy link
Member Author

timokau commented Mar 15, 2018

If you need it quick, its usually best you do it yourself.

That said: #37094

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

4 participants