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

googleAuthenticator: 1.0 -> 1.03 #21491

Closed

Conversation

aneeshusa
Copy link
Contributor

Motivation for this change

A new release (version 1.03) of google-authenticator-libpam has been cut; this is a follow up from #19603.

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
    • Linux
  • 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.

@mention-bot
Copy link

@aneeshusa, thanks for your PR! By analyzing the history of the files in this pull request, we identified @viric, @rbvermaa and @edolstra to be potential reviewers.


preConfigure = ''
sed -i 's|libqrencode.so.3|${qrencode}/lib/libqrencode.so.3|' google-authenticator.c
sed -i "s|libqrencode.so.3|$qrencode/lib/libqrencode.so.3|" src/google-authenticator.c
Copy link
Member

Choose a reason for hiding this comment

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

why this change? I'm not sure $qrencode will work there, like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like to use environment variables where possible over Nix antiquotations. Here it doesn't make a difference. However, with version and other values that can't be overriden easily, it makes it easier to call updateAttrs since the old value of e.g. version isn't baked into the various shell snippets.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, but qrencode isn't an environment variable here.

set -u before this errors:

/nix/store/gqkczsmhc596isabbl5p2dw1i5rmwqks-stdenv/setup: line 70: qrencode: unbound variable


preConfigure = ''
sed -i 's|libqrencode.so.3|${qrencode}/lib/libqrencode.so.3|' google-authenticator.c
sed -i "s|libqrencode.so.3|$qrencode/lib/libqrencode.so.3|" src/google-authenticator.c
Copy link
Member

Choose a reason for hiding this comment

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

Yes, but qrencode isn't an environment variable here.

set -u before this errors:

/nix/store/gqkczsmhc596isabbl5p2dw1i5rmwqks-stdenv/setup: line 70: qrencode: unbound variable

@aneeshusa aneeshusa force-pushed the upgrade-google-authenticator-to-1.03 branch from be5e679 to 15762a8 Compare December 30, 2016 03:32
@aneeshusa
Copy link
Contributor Author

@grahamc I've fixed that, guess I wasn't thinking so straight at 4:30 AM :)

@grahamc
Copy link
Member

grahamc commented Dec 30, 2016

Merged in 652a870 thank you!

@grahamc grahamc closed this Dec 30, 2016
@aneeshusa aneeshusa deleted the upgrade-google-authenticator-to-1.03 branch January 7, 2022 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants