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

check-wmiplus: init at 1.64 #34250

Merged
merged 1 commit into from Sep 24, 2019
Merged

check-wmiplus: init at 1.64 #34250

merged 1 commit into from Sep 24, 2019

Conversation

peterhoeg
Copy link
Member

@peterhoeg peterhoeg commented Jan 25, 2018

Motivation for this change

This PR includes 2 dependencies in addition to pulling callPackage into the perl-modules.nix file so we can have perl packages in separate files like we do for other languages.

Been using this for ages.

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.

@grahamc
Copy link
Member

grahamc commented Jan 27, 2018

@GrahamcOfBorg build sensu-check-wmiplus

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: aarch64-linux

make[2]: Leaving directory '/build/build'
make[1]: *** [Makefile:17160: stage1-bubble] Error 2
make[1]: Leaving directory '/build/build'
make: *** [Makefile:858: all] Error 2
builder for '/nix/store/8l3yam1kpp37blvq466pa66sryd5dm5v-gcc-4.5.4.drv' failed with exit code 2
cannot build derivation '/nix/store/9qj201w8cwacihyp4mpr8q0g5f7r72mf-gcc-wrapper-4.5.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/lv10hqy7zc3qfl5gafd9kyw24m19zvaa-stdenv.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/lgysn1sdis3im73r0gasnli84y1zshhi-wmi-1.3.14.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xh64imqy4z7hxnqfz5gl3knsb1h8mz32-sensu-check-wmiplus-1.63.drv': 1 dependencies couldn't be built
error: build of '/nix/store/xh64imqy4z7hxnqfz5gl3knsb1h8mz32-sensu-check-wmiplus-1.63.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

configuring
no configure script, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/hvds13x07mw0b6ghw805qiazszdj659l-sensu-check-wmiplus-1.63
strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/hvds13x07mw0b6ghw805qiazszdj659l-sensu-check-wmiplus-1.63/bin 
patching script interpreter paths in /nix/store/hvds13x07mw0b6ghw805qiazszdj659l-sensu-check-wmiplus-1.63
checking for references to /tmp/nix-build-sensu-check-wmiplus-1.63.drv-0 in /nix/store/hvds13x07mw0b6ghw805qiazszdj659l-sensu-check-wmiplus-1.63...
/nix/store/hvds13x07mw0b6ghw805qiazszdj659l-sensu-check-wmiplus-1.63

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

Package ‘sensu-check-wmiplus-1.63’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/servers/monitoring/sensu/checks/wmiplus.nix:78 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@Mic92
Copy link
Member

Mic92 commented Feb 10, 2018

@GrahamcOfBorg build sensu-check-wmiplus

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘sensu-check-wmiplus-1.63’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/servers/monitoring/sensu/checks/wmiplus.nix:78 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

make[2]: Leaving directory '/build/build'
make[1]: *** [Makefile:17160: stage1-bubble] Error 2
make[1]: Leaving directory '/build/build'
make: *** [Makefile:858: all] Error 2
builder for '/nix/store/6gqfbz5jq6z5ja3p9kwgrgad5r80gx80-gcc-4.5.4.drv' failed with exit code 2
cannot build derivation '/nix/store/l24aw96c529vj3qdzkgbvrn8gvvvhwnv-gcc-wrapper-4.5.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vkjybb8q4pjqhscvlf4dlaq00km8qx76-stdenv.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6nlrfymbqd56bpikvnsxdbsynswzfhqd-wmi-1.3.14.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/jb5ab613k7gxn9wbzd2fkslq4j10i1ra-sensu-check-wmiplus-1.63.drv': 1 dependencies couldn't be built
error: build of '/nix/store/jb5ab613k7gxn9wbzd2fkslq4j10i1ra-sensu-check-wmiplus-1.63.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

configuring
no configure script, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/6v9l6x20x6qjnf8z7a31k27zbhrq3bw7-sensu-check-wmiplus-1.63
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/6v9l6x20x6qjnf8z7a31k27zbhrq3bw7-sensu-check-wmiplus-1.63/bin
patching script interpreter paths in /nix/store/6v9l6x20x6qjnf8z7a31k27zbhrq3bw7-sensu-check-wmiplus-1.63
checking for references to /build in /nix/store/6v9l6x20x6qjnf8z7a31k27zbhrq3bw7-sensu-check-wmiplus-1.63...
/nix/store/6v9l6x20x6qjnf8z7a31k27zbhrq3bw7-sensu-check-wmiplus-1.63

@peterhoeg
Copy link
Member Author

@Mic92 should I set platforms to x86_64-linux only?

@Mic92
Copy link
Member

Mic92 commented Feb 11, 2018

@GrahamcOfBorg build sensu-check-wmiplus

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘sensu-check-wmiplus-1.63’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/servers/monitoring/sensu/checks/wmiplus.nix:78 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

make[2]: Leaving directory '/build/build'
make[1]: *** [Makefile:17160: stage1-bubble] Error 2
make[1]: Leaving directory '/build/build'
make: *** [Makefile:858: all] Error 2
builder for '/nix/store/6gqfbz5jq6z5ja3p9kwgrgad5r80gx80-gcc-4.5.4.drv' failed with exit code 2
cannot build derivation '/nix/store/l24aw96c529vj3qdzkgbvrn8gvvvhwnv-gcc-wrapper-4.5.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vkjybb8q4pjqhscvlf4dlaq00km8qx76-stdenv.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/w2bsw5kgcsjw9z8ws7p53bwl1hacfwwr-wmi-1.3.14.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2n0vjdb563ivq538pa7zzn5qlv3dr8jl-sensu-check-wmiplus-1.63.drv': 1 dependencies couldn't be built
error: build of '/nix/store/2n0vjdb563ivq538pa7zzn5qlv3dr8jl-sensu-check-wmiplus-1.63.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

configuring
no configure script, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/mfb1ffs8yg93sf7h2asg6laxskjhgrcw-sensu-check-wmiplus-1.63
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/mfb1ffs8yg93sf7h2asg6laxskjhgrcw-sensu-check-wmiplus-1.63/bin
patching script interpreter paths in /nix/store/mfb1ffs8yg93sf7h2asg6laxskjhgrcw-sensu-check-wmiplus-1.63
checking for references to /build in /nix/store/mfb1ffs8yg93sf7h2asg6laxskjhgrcw-sensu-check-wmiplus-1.63...
/nix/store/mfb1ffs8yg93sf7h2asg6laxskjhgrcw-sensu-check-wmiplus-1.63

@Mic92
Copy link
Member

Mic92 commented Feb 28, 2018

@peterhoeg yes

@peterhoeg peterhoeg force-pushed the p/wmi branch 2 times, most recently from 22ee024 to b1c01d3 Compare March 5, 2018 09:41
@peterhoeg
Copy link
Member Author

@GrahamcOfBorg build sensu-check-wmiplus

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

error: while evaluating the attribute ‘propagatedBuildInputs’ of the derivation ‘sensu-check-wmiplus-1.63’ at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating ‘getOutput’ at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:450:23, called from undefined position:
while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/pkgs/stdenv/generic/make-derivation.nix:111:17, called from undefined position:
while evaluating ‘callPackageWith’ at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/customisation.nix:113:35, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/pkgs/top-level/perl-packages.nix:2363:20:
while evaluating ‘makeOverridable’ at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/customisation.nix:72:24, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/customisation.nix:117:8:
undefined variable ‘stdenv’ at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/pkgs/development/perl-modules/ConfigIniFiles/default.nix:13:15

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

Package ‘sensu-check-wmiplus-1.63’ in /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/pkgs/servers/monitoring/sensu/checks/wmiplus.nix:78 is not supported on ‘aarch64-linux’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@peterhoeg
Copy link
Member Author

@GrahamcOfBorg build sensu-check-wmiplus

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

error: while evaluating the attribute ‘propagatedBuildInputs’ of the derivation ‘sensu-check-wmiplus-1.63’ at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating ‘getOutput’ at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:450:23, called from undefined position:
while evaluating anonymous function at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/pkgs/stdenv/generic/make-derivation.nix:111:17, called from undefined position:
while evaluating ‘callPackageWith’ at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/customisation.nix:113:35, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/pkgs/top-level/perl-packages.nix:2363:20:
while evaluating ‘makeOverridable’ at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/customisation.nix:72:24, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/customisation.nix:117:8:
undefined variable ‘IOStringy’ at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/pkgs/development/perl-modules/ConfigIniFiles/default.nix:11:29

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

Package ‘sensu-check-wmiplus-1.63’ in /var/lib/gc-of-borg/nix-test-rs-11/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-11/pkgs/servers/monitoring/sensu/checks/wmiplus.nix:78 is not supported on ‘aarch64-linux’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@FRidh
Copy link
Member

FRidh commented Jul 20, 2019

Closing due to inactivity.

@FRidh FRidh closed this Jul 20, 2019
@peterhoeg
Copy link
Member Author

Unless anybody has any concerns about this particular PR, I would like to go ahead and merge this. We have been using here for ages without any problems, so the thing works as expected.

@peterhoeg peterhoeg reopened this Jul 22, 2019
@peterhoeg
Copy link
Member Author

After fixing the merge conflicts of course...

@peterhoeg
Copy link
Member Author

Need #68340 first.

@lheckemann lheckemann added this to the 20.03 milestone Sep 10, 2019
@peterhoeg peterhoeg changed the title sensu-check-wmiplus: init at 1.63 sensu-check-wmiplus: init at 1.64 Sep 23, 2019
@peterhoeg
Copy link
Member Author

@GrahamcOfBorg build sensu-check-wmiplus

@@ -1900,6 +1900,8 @@ in {

eth-utils = callPackage ../development/python-modules/eth-utils { };

impacket = callPackage ../development/python-modules/impacket { };
Copy link
Member

Choose a reason for hiding this comment

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

Is this required for sensu-check-wmiplus?

Copy link
Member Author

Choose a reason for hiding this comment

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

Leftover from py-wmi-client, ref #69336

I'll clean this up.

@Mic92
Copy link
Member

Mic92 commented Sep 23, 2019

@GrahamcOfBorg build python37Packages.impacket

@peterhoeg peterhoeg changed the title sensu-check-wmiplus: init at 1.64 check-wmiplus: init at 1.64 Sep 24, 2019
@peterhoeg peterhoeg merged commit e121bf8 into NixOS:master Sep 24, 2019
@peterhoeg peterhoeg deleted the p/wmi branch September 24, 2019 21:09
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

7 participants