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

php.extensions.sqlsrv: 5.8.0 -> 5.8.1 #85319

Merged
merged 2 commits into from May 3, 2020
Merged

Conversation

aanderse
Copy link
Member

@aanderse aanderse commented Apr 15, 2020

Motivation for this change

https://github.com/microsoft/msphpsql/releases/tag/v5.8.1

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@aanderse
Copy link
Member Author

@etu @talyz I'm having a little issue with this one... any ideas?

~/nixpkgs> nix-build -E 'with import ~/nixpkgs {}; php.withExtensions (e: [ e.pdo_sqlsrv ])'                                                                                                        
error: attribute 'pdo' missing, at /home/aaron/nixpkgs/lib/strings-with-deps.nix:67:71
(use '--show-trace' to show detailed location information)

@etu
Copy link
Contributor

etu commented Apr 15, 2020

pdo_sqlsrv needs the pdo extension, so php refuse to build it without it 🙂

Try:

nix-build -E 'with import ~/nixpkgs {}; php.withExtensions (e: [ e.pdo e.pdo_sqlsrv ])'

@aanderse
Copy link
Member Author

Verified pdo_sqlsrv works with php72, php73, and php74 by executing a simple php script to hit a database.

@aanderse aanderse marked this pull request as ready for review April 15, 2020 19:15
@aanderse aanderse requested a review from etu as a code owner April 15, 2020 19:15
@aanderse
Copy link
Member Author

@GrahamcOfBorg build php72.extensions.pdo_sqlsrv php73.extensions.pdo_sqlsrv php74.extensions.pdo_sqlsrv
@GrahamcOfBorg build php72.extensions.sqlsrv php73.extensions.sqlsrv php74.extensions.sqlsrv

@talyz
Copy link
Contributor

talyz commented Apr 15, 2020

Yeah, the error message is sadly pretty cryptic, since it originates in strings-with-deps.nix. We should try to catch it earlier and say something a bit more informational than attribute xxx missing..

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-in-distress/3604/17

@aanderse
Copy link
Member Author

aanderse commented May 3, 2020

@GrahamcOfBorg build php72.extensions.pdo_sqlsrv php73.extensions.pdo_sqlsrv php74.extensions.pdo_sqlsrv
@GrahamcOfBorg build php72.extensions.sqlsrv php73.extensions.sqlsrv php74.extensions.sqlsrv

@aanderse
Copy link
Member Author

aanderse commented May 3, 2020

I don't have a mac so can't effectively troubleshoot the issue... 🤷‍♂️

Look good @etu and @talyz?

@talyz
Copy link
Contributor

talyz commented May 3, 2020

@aanderse It builds just fine in my mac, so whatever the build error was, it was probably just a CI glitch - they seem rather frequent on darwin..

@aanderse
Copy link
Member Author

aanderse commented May 3, 2020

In that case I'm merging based on your feedback 👍
Thank you @talyz 🎉

@aanderse aanderse merged commit dc05d93 into NixOS:master May 3, 2020
@aanderse aanderse deleted the msphpsql branch May 3, 2020 11:27
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