Skip to content

proj: 7.2.1 -> 8.1.1#138479

Merged
dotlambda merged 12 commits intoNixOS:masterfrom
dotlambda:proj-8.1.1
Sep 27, 2021
Merged

proj: 7.2.1 -> 8.1.1#138479
dotlambda merged 12 commits intoNixOS:masterfrom
dotlambda:proj-8.1.1

Conversation

@dotlambda
Copy link
Member

@dotlambda dotlambda commented Sep 19, 2021

Motivation for this change

Cartopy is no longer compatible with older versions of PROJ: SciTools/cartopy#1854

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages 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/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

cc @mpickering @MatthewCroughan @tollb

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Sep 19, 2021
@ofborg ofborg bot added 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package labels Sep 19, 2021
@ofborg ofborg bot requested a review from vbgl September 19, 2021 01:13
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Sep 19, 2021
@dotlambda
Copy link
Member Author

dotlambda commented Sep 19, 2021

Does somebody know the URLs for GPlates 2.3.0? See https://www.earthbyte.org/download-gplates-2-3/
cc @kmicklas

@dotlambda dotlambda requested a review from knedlsepp September 19, 2021 15:52
@dotlambda

This comment has been minimized.

@dotlambda
Copy link
Member Author

Does somebody know the URLs for GPlates 2.3.0? See https://www.earthbyte.org/download-gplates-2-3/

I managed to update GPlates but I'm still trying to convince upstream to make the tarball available under a nice URL: https://discourse.gplates.org/t/gplates-2-3-released/374/3

@dotlambda dotlambda marked this pull request as ready for review September 19, 2021 18:28
@dotlambda
Copy link
Member Author

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

3 packages marked as broken and skipped:
  • openspace
  • python39Packages.basemap
  • qlandkartegt
52 packages built:
  • cloudcompare
  • gdal (python39Packages.gdal)
  • gdal_2
  • gmt
  • gplates
  • libLAS
  • libgeotiff
  • libspatialite
  • mapproxy
  • merkaartor
  • octavePackages.octproj
  • openorienteering-mapper
  • osm2pgsql
  • osm2xmap
  • paraview
  • pdal
  • postgis (postgresql13Packages.postgis)
  • postgresql11Packages.postgis
  • postgresql12Packages.postgis
  • proj
  • proj7
  • python38Packages.basemap
  • python38Packages.cartopy
  • python38Packages.fiona
  • python38Packages.gdal
  • python38Packages.geopandas
  • python38Packages.osmnx
  • python38Packages.owslib
  • python38Packages.pygmt
  • python38Packages.pyproj
  • python38Packages.rasterio
  • python38Packages.worldengine
  • python39Packages.cartopy
  • python39Packages.fiona
  • python39Packages.geopandas
  • python39Packages.osmnx
  • python39Packages.owslib
  • python39Packages.pygmt
  • python39Packages.pyproj
  • python39Packages.rasterio
  • python39Packages.worldengine
  • pytrainer
  • qgis
  • qgis-unwrapped
  • qmapshack
  • readosm
  • saga
  • spatialite_tools
  • sumo
  • udig
  • valhalla
  • xastir

@risicle
Copy link
Contributor

risicle commented Sep 19, 2021

nixpkgs-review throws up no new failures on macos 10.15 (but there are many existing failures, so that doesn't say too much by itself)

@dotlambda
Copy link
Member Author

@ofborg eval

@dotlambda
Copy link
Member Author

dotlambda commented Sep 20, 2021

Expected Python to be a framework

Didn't Apple have plans to not ship macOS with Python anymore?
Should I set GPlates' meta.platforms to linux?

@dotlambda dotlambda requested a review from Thra11 September 22, 2021 00:34
@dotlambda
Copy link
Member Author

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

5 packages marked as broken and skipped:
  • googleearth-pro
  • grass
  • openspace
  • python39Packages.basemap
  • qlandkartegt
52 packages built:
  • cloudcompare
  • gdal (python39Packages.gdal)
  • gdal_2
  • gmt
  • gplates
  • libLAS
  • libgeotiff
  • libspatialite
  • mapproxy
  • merkaartor
  • octavePackages.octproj
  • openorienteering-mapper
  • osm2pgsql
  • osm2xmap
  • paraview
  • pdal
  • postgresql11Packages.postgis
  • postgresql12Packages.postgis
  • postgresqlPackages.postgis (postgresql13Packages.postgis)
  • proj
  • proj_7
  • python38Packages.basemap
  • python38Packages.cartopy
  • python38Packages.fiona
  • python38Packages.gdal
  • python38Packages.geopandas
  • python38Packages.osmnx
  • python38Packages.owslib
  • python38Packages.pygmt
  • python38Packages.pyproj
  • python38Packages.rasterio
  • python38Packages.worldengine
  • python39Packages.cartopy
  • python39Packages.fiona
  • python39Packages.geopandas
  • python39Packages.osmnx
  • python39Packages.owslib
  • python39Packages.pygmt
  • python39Packages.pyproj
  • python39Packages.rasterio
  • worldengine-cli (python39Packages.worldengine)
  • pytrainer
  • qgis
  • qgis-unwrapped
  • qmapshack
  • readosm
  • saga
  • spatialite_tools
  • sumo
  • udig
  • valhalla
  • xastir

@dotlambda
Copy link
Member Author

Does anybody object to merging this? I wanna emphasize that this disables mapnik and qlandkartegt.

@sikmir
Copy link
Member

sikmir commented Sep 24, 2021

Does anybody object to merging this? I wanna emphasize that this disables mapnik and qlandkartegt.

What about using proj_7 with qlandkartegt to not broke it? I still use qlandkartegt.

@dotlambda
Copy link
Member Author

dotlambda commented Sep 24, 2021

Does anybody object to merging this? I wanna emphasize that this disables mapnik and qlandkartegt.

What about using proj_7 with qlandkartegt to not broke it? I still use qlandkartegt.

Can you try whether it works with the following patch?

diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f1a830e964e..0f847412114 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -26900,7 +26900,10 @@ with pkgs;

   qimgv = libsForQt5.callPackage ../applications/graphics/qimgv { };

-  qlandkartegt = libsForQt514.callPackage ../applications/misc/qlandkartegt {};
+  qlandkartegt = libsForQt514.callPackage ../applications/misc/qlandkartegt {
+    proj = proj_7;
+    gdal = gdal.override { proj = proj_7; };
+  };

   garmindev = callPackage ../applications/misc/qlandkartegt/garmindev.nix {};

EDIT: It can't really work because GDAL has too many dependencies using PROJ, which we'd also have to override. I suggest we stick with the current solution and you use an overlay that replaces proj with proj_7 or move to QMapShack. If you have a better suggestion, go ahead.
By the way, the AUR package has the same problem: https://aur.archlinux.org/packages/qlandkartegt/#comment-808754

@dotlambda
Copy link
Member Author

Maybe someone knows how we could define proj_7Packages in all-packages.nix? Then we could use proj_7Packages.callPackage for qlandkartegt.

@happysalada
Copy link
Contributor

The change looks good to me, I would say feel free to merge.
I unfortunately don't see a better solution for now than an override for qlandkartegt

lsix and others added 4 commits September 26, 2021 23:11
@dotlambda
Copy link
Member Author

@sikmir I added all overrides necessary to make qtlandkartegt use to the exact same dependencies as before this PR to all-packages.nix. Actually, they are only the same modulo the removal of preCheck from the expression for proj_7. Please test whether everything works as expected.

@dotlambda dotlambda merged commit 54e1db2 into NixOS:master Sep 27, 2021
@dotlambda dotlambda deleted the proj-8.1.1 branch September 27, 2021 23:46
@sikmir
Copy link
Member

sikmir commented Sep 28, 2021

@sikmir I added all overrides necessary to make qtlandkartegt use to the exact same dependencies as before this PR to all-packages.nix. Actually, they are only the same modulo the removal of preCheck from the expression for proj_7. Please test whether everything works as expected.

Yes, it works for me. Thanks for keeping it unbroken!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants