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

kcov: 34 -> 35 #39624

Merged
merged 2 commits into from Apr 27, 2018
Merged

kcov: 34 -> 35 #39624

merged 2 commits into from Apr 27, 2018

Conversation

Ekleog
Copy link
Member

@Ekleog Ekleog commented Apr 27, 2018

As the maintainer currently in meta.maintainers appears to not have
touched the package since 2015, I've also added myself there.

cc @FlorentBecker

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.

As the maintainer currently in `meta.maintainers` appears to not have
touched the package since 2015, I've also added myself there.
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kcov

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ci4rkshn97mnd911d3qi1p9gx53l7pzw-kcov-35
shrinking /nix/store/ci4rkshn97mnd911d3qi1p9gx53l7pzw-kcov-35/bin/kcov
shrinking /nix/store/ci4rkshn97mnd911d3qi1p9gx53l7pzw-kcov-35/bin/kcov-system-daemon
gzipping man pages under /nix/store/ci4rkshn97mnd911d3qi1p9gx53l7pzw-kcov-35/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ci4rkshn97mnd911d3qi1p9gx53l7pzw-kcov-35/bin
patching script interpreter paths in /nix/store/ci4rkshn97mnd911d3qi1p9gx53l7pzw-kcov-35
checking for references to /build in /nix/store/ci4rkshn97mnd911d3qi1p9gx53l7pzw-kcov-35...
/nix/store/ci4rkshn97mnd911d3qi1p9gx53l7pzw-kcov-35

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: kcov

Partial log (click to expand)

                                                ^~~~~~~~~~~
                                                ADJ_STATUS
make[2]: *** [src/CMakeFiles/kcov.dir/build.make:708: src/CMakeFiles/kcov.dir/engines/ptrace.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:244: src/CMakeFiles/kcov-system-daemon.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:207: src/CMakeFiles/kcov.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
builder for '/nix/store/n5p0326sqza7r9y9izwcav7k2i7syvg4-kcov-35.drv' failed with exit code 2
�[31;1merror:�[0m build of '/nix/store/n5p0326sqza7r9y9izwcav7k2i7syvg4-kcov-35.drv' failed

Apparently, without this patch `NT_PRSTATUS` is not found. So the patch
adds the include apparently necessary. `NT_PRSTATUS` is also defined in
`<linux/ptrace.h>`, which would likely have been a better name, were it
not in the `linux/` directory, which is a priori not stable.

The need to do that is kind of weird (the change was introduced in [1],
and fedora apparently didn't need this additional import), but I'll try
to upstream it.

[1] SimonKagstrom/kcov#239
};

preConfigure = "patchShebangs src/bin-to-c-source.py";
nativeBuildInputs = [ cmake pkgconfig ];

buildInputs = [ zlib curl elfutils python libiberty libopcodes ];

patches = [ ./aarch64_nt_prstatus.patch ];
Copy link
Member

Choose a reason for hiding this comment

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

Look useful. Is this pull request included in the next upstream version or does it come from a pull request?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm going to PR it to the next upstream version if it does manage the ofborg build :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Just opened SimonKagstrom/kcov#243 :)

@Mic92
Copy link
Member

Mic92 commented Apr 27, 2018

@GrahamcOfBorg build kcov

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

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

Partial log (click to expand)


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

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


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kcov

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35
shrinking /nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35/bin/kcov
shrinking /nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35/bin/kcov-system-daemon
gzipping man pages under /nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35/bin
patching script interpreter paths in /nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35
checking for references to /build in /nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35...
/nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: kcov

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35
shrinking /nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35/bin/kcov-system-daemon
shrinking /nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35/bin/kcov
gzipping man pages under /nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35/share/man/
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35/bin
patching script interpreter paths in /nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35
checking for references to /build in /nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35...
/nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: kcov

Partial log (click to expand)

/nix/store/wh0x01sxfbm64calqzi0bnzm6hw3icrz-kcov-35

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kcov

Partial log (click to expand)

/nix/store/7rcfrlhx5pnq2z9jd5x5wb09mxnh2f7q-kcov-35

@Mic92 Mic92 merged commit 68d144b into NixOS:master Apr 27, 2018
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

3 participants