Skip to content

Fix QGIS in release-19.09#72249

Merged
jonringer merged 6 commits intoNixOS:release-19.09from
lsix:backport-qgis-19.09
Nov 4, 2019
Merged

Fix QGIS in release-19.09#72249
jonringer merged 6 commits intoNixOS:release-19.09from
lsix:backport-qgis-19.09

Conversation

@lsix
Copy link
Member

@lsix lsix commented Oct 29, 2019

Motivation for this change

qgis is currently broken on release-19.09.

This PR backports all necessary fixes to have it up to date and running.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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 nix-review --run "nix-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.
Notify maintainers

cc @

peterhoeg and others added 5 commits October 29, 2019 12:47
We strip the library suffix as we don't need it and it confuses various
downstream consumers.

Also replace calls to sed with substituteInPlace as the latter will complain in
case it doesn't perform a substitution.

(cherry picked from commit 76ad279)
Make sure that the both libqscintilla2_qt5.so and libqscintilla2.so are
present in `$out/lib` so all the dependant packages can find the most
appropriate library (some except the empty suffix, such as
sqlitebrowser, other expect the _qt5 suffix such as
python3Packages.qscintilla-qt5).

The mechanism would also work work for qt4 build, but it is broken at
the moment.

Also make sure python*Packages.qscintilla* are up to date

(cherry picked from commit 4bf49d9)
(cherry picked from commit 5d8ec9b)
@lsix lsix requested a review from FRidh as a code owner October 29, 2019 12:57
@lsix lsix force-pushed the backport-qgis-19.09 branch from 9443b34 to 1c3c88c Compare October 29, 2019 13:01
@FRidh
Copy link
Member

FRidh commented Oct 29, 2019

Why also update the minor version? Does it not function at 3.8.3?

@lsix
Copy link
Member Author

lsix commented Oct 29, 2019

Yes it does, but since qgis was broken since release-19.09 went out, this acts more like a new package than an update within the context of this channel.

But if you prefer, I can use pin it at 3.8.3.

@ofborg ofborg bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Oct 29, 2019
@ofborg ofborg bot requested a review from peterhoeg October 29, 2019 14:43
@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 Oct 29, 2019
@peterhoeg
Copy link
Member

We definitely need to have a broader discussion on backports (see all the huha about firefox 70), but I'm with @lsix on this - if the released version in stable is broken anyway, we might as well bump the fix to the latest version. Any issues with that @FRidh ?

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

nix-review passes on NixOS
diff LGTM
qgis, openscad, and tora open up fine

[11 built, 311 copied (1565.8 MiB), 288.8 MiB DL]
https://github.com/NixOS/nixpkgs/pull/72249
9 package are marked as broken and were skipped:
minc_widgets octave octaveFull python27Packages.qscintilla python27Packages.qscintilla-qt4 qscintilla sonic-pi sqliteman tortoisehg

8 package were build:
libsForQt5.qscintilla libsForQt511.qscintilla openscad python27Packages.qscintilla-qt5 python37Packages.qscintilla-qt5 qgis qgis-unwrapped tora

@jonringer
Copy link
Contributor

I'm assuming there's no outstanding objections, I re-did the nix-review and everything still passes as it did a week ago.

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