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

mapbox-gl-native: use upstream version plus patch #117052

Merged

Conversation

dotlambda
Copy link
Member

Motivation for this change
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.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 117052 run on x86_64-linux 1

3 packages built:
  • mapbox-gl-native
  • mapbox-gl-qml
  • pure-maps

@r-rmcgibbo
Copy link

Result of nixpkgs-review pr 117052 at 1f0e9124 run on aarch64-linux 1

3 packages built successfully:
2 suggestions:
  • warning: missing-patch-comment

    Please add a comment on the line above, explaining the purpose of this patch.
    Near pkgs/development/libraries/mapbox-gl-native/default.nix:17:5:

       |
    17 |     (fetchpatch {
       |     ^
    
  • warning: missing-patch-comment

    Please add a comment on the line above, explaining the purpose of this patch.
    Near pkgs/development/libraries/mapbox-gl-native/default.nix:22:5:

       |
    22 |     (fetchpatch {
       |     ^
    

Copy link
Member

@Thra11 Thra11 left a comment

Choose a reason for hiding this comment

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

This looks good to me!

@Thra11 Thra11 self-requested a review March 20, 2021 22:58
Copy link
Member

@Thra11 Thra11 left a comment

Choose a reason for hiding this comment

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

Looks good, but I think the patch name should match the commit it's from and we might as well add the other patch now to save me adding it later 😝

fetchSubmodules = true;
};

patches = [
(fetchpatch {
name = "add-support-for-using-qmapboxgl-as-proper-cmake-dependency.patch";
Copy link
Member

@Thra11 Thra11 Mar 20, 2021

Choose a reason for hiding this comment

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

This commit is actually called "Add support for qmapboxgl installation"

I think we should also add "add-support-for-using-qmapboxgl-as-proper-cmake-dependency" from the same PR as the first patch too: with it, I believe we'll be able to update to the latest mapbox-gl-qml version, switch to building mapbox-gl-qml with cmake and drop some hacks.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, I took the wrong commit. I'll fix it later.

@dotlambda
Copy link
Member Author

Can someone from @NixOS/qt-kde confirm whether it was correct to move these libraries to libsForQt5?

Copy link
Contributor

@doronbehar doronbehar left a comment

Choose a reason for hiding this comment

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

I think the move to qt5-packages.nix is good, and that the PR can consist of two squashed commits - 1 for each package.

Copy link
Member

@Thra11 Thra11 left a comment

Choose a reason for hiding this comment

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

Agree with squashing, but otherwise looks really good to me.

…to libsForQt5

The first two patches are needed for mapbox-gl-qml.
The third patch is required when building without the vendored rapidjson.
@dotlambda dotlambda force-pushed the mapbox-gl-native-upstream-version branch from 84e3856 to cccebb6 Compare March 21, 2021 17:47
@ofborg ofborg bot requested a review from Thra11 March 21, 2021 18:03
Copy link
Member

@Thra11 Thra11 left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks!

@SuperSandro2000 SuperSandro2000 merged commit 32a38d8 into NixOS:master Mar 21, 2021
@dotlambda dotlambda deleted the mapbox-gl-native-upstream-version branch March 21, 2021 22:56
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

5 participants