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

opencryptoki, pkcs11-helper, simple-tpm-pk11 #31573

Merged
merged 3 commits into from Nov 20, 2017
Merged

Conversation

c0bw3b
Copy link
Contributor

@c0bw3b c0bw3b commented Nov 12, 2017

Motivation for this change

Refresh of unattended packages loosely related
Plus homepages refresh (#30636)

  • opencryptoki: update to v3.8.1
  • pkcs11-helper: update to v1.22
  • simple-tpm-pk11: update to v0.06 (and yes this 'stable' release is more recent than the git rev previously fetched)
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.

--replace "groupadd" "true" \
--replace "chmod" "true" \
--replace "chgrp" "true"
substituteInPlace usr/lib/Makefile.am --replace "DESTDIR" "out"
Copy link
Member

Choose a reason for hiding this comment

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

is it possible to replace this substitute by makeFlags = ["DESTDIR=$(out)"];? I have not looked at the code.

Copy link
Contributor Author

@c0bw3b c0bw3b Nov 13, 2017

Choose a reason for hiding this comment

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

It's what the previous definition was doing but it is actually needed only for installing "/etc/ld.so.conf.d/opencryptoki-xxx.conf" under $out.
Using DESTDIR=$(out) messes up the the arborescence of everything else (it installs under /nix/store/hash-opencryptoki/nix/store/hash-opencryptoki ...) and you end up with having to do that ugly cp -r $out/$out/* $out in postInstall.

Plus I'm pretty sure the path in .la files were wrong. I'd have to double-check on that. no they are good

@c0bw3b
Copy link
Contributor Author

c0bw3b commented Nov 14, 2017

Just completed a nox-review successfully on nixos-17.09:

Result in /tmp/nox-review-hg7punxr
total 16
lrwxrwxrwx 1 demo users 62 Nov 14 15:29 result -> /nix/store/wbxylsxdhszwbr48kykwk3xy4xcm2dxy-pkcs11-helper-1.22
lrwxrwxrwx 1 demo users 56 Nov 14 15:29 result-2 -> /nix/store/4727g7ng70zclff0harv8rshnx12rhhk-meo-20121113
lrwxrwxrwx 1 demo users 62 Nov 14 15:29 result-3 -> /nix/store/zi7vzrk5s6n7mkiyk9dp2mlqqyh2dqnk-opencryptoki-3.8.1
lrwxrwxrwx 1 demo users 61 Nov 14 15:29 result-4 -> /nix/store/4sjlc4k1sl42as6dlmrl7lmmwh5x4lbi-tpm-tools-1.3.9.1
lrwxrwxrwx 1 demo users 64 Nov 14 15:29 result-5 -> /nix/store/nmiihs4cfsjv88bcs1vlvjhcdcbcqdsy-simple-tpm-pk11-0.06

@c0bw3b c0bw3b merged commit 1d6f3ea into NixOS:master Nov 20, 2017
@c0bw3b c0bw3b deleted the pkg/pkcs11 branch November 21, 2017 22:54
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