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

Fix grab-site and python3Packages.lmdb #120785

Merged
merged 3 commits into from Apr 30, 2021
Merged

Conversation

ivan
Copy link
Member

@ivan ivan commented Apr 26, 2021

Motivation for this change

This fixes:

  • python3Packages.lmdb
    • upgraded lmdb to fix a failing test with lmdb 0.9.28: Test failure jnwatson/py-lmdb#278
    • removed the strange dependency on ludios_wpull, which was breaking the python38Packages.lmdb build
  • grab-site, which depends on python37Packages.lmdb
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.

cc maintainers @copumpkin @jb55 @vcunat

I confirmed that grab-site now builds and runs on NixOS master.

This makes no sense and yet was added in 65eccfa

This was breaking the build of python3Packages.lmdb because ludios_wpull does not
build on 3.8, only 3.7.
@vcunat
Copy link
Member

vcunat commented Apr 26, 2021

The C part looks good to me; I'm not really familiar with the python package.

@lukegb
Copy link
Contributor

lukegb commented Apr 26, 2021

@ofborg build python3.pkgs.lmdb

@r-rmcgibbo
Copy link

Result of nixpkgs-review pr 120785 at 6875639 run on aarch64-linux 1

61 packages marked as broken and skipped:
  • gnome3.gnome-books
  • gnome3.gnome-documents
  • libsForQt512.baloo
  • libsForQt512.baloo-widgets
  • libsForQt512.discover
  • libsForQt512.dolphin
  • libsForQt512.dolphin-plugins
  • libsForQt512.dragon
  • libsForQt512.elisa
  • libsForQt512.gwenview
  • ...
1 package failed to build:
48 packages skipped due to time constraints:
  • caffe
  • denemo
  • dero
  • gerbil
  • gerbil-unstable
  • glom
  • kdev-php
  • kdev-python
  • kdevelop-unwrapped
  • libmodsecurity
  • ...
44 packages built successfully:
  • appstream
  • bookworm
  • evince (gnome3.evince)
  • gawkextlib.lmdb
  • gnome-feeds
  • gnome3.sushi
  • grab-site
  • haskellPackages.lmdb
  • haskellPackages.lmdb-high-level
  • haskellPackages.lmdb-simple
  • knot-dns
  • knot-resolver
  • libsForQt5.appstream-qt (libsForQt515.appstream-qt ,plasma5Packages.appstream-qt)
  • libsForQt5.baloo (libsForQt515.baloo ,plasma5Packages.baloo)
  • libsForQt5.baloo-widgets (libsForQt515.baloo-widgets ,plasma5Packages.baloo-widgets)
  • libsForQt5.dragon (libsForQt515.dragon ,plasma5Packages.dragon)
  • libsForQt5.kde-cli-tools (libsForQt515.kde-cli-tools ,plasma5Packages.kde-cli-tools)
  • libsForQt5.khotkeys (libsForQt515.khotkeys ,plasma5Packages.khotkeys)
  • libsForQt5.kmenuedit (libsForQt515.kmenuedit ,plasma5Packages.kmenuedit)
  • libsForQt5.krohnkite (libsForQt515.krohnkite ,plasma5Packages.krohnkite)
  • libsForQt5.kwin-dynamic-workspaces (libsForQt515.kwin-dynamic-workspaces ,plasma5Packages.kwin-dynamic-workspaces)
  • libsForQt5.kwin-tiling (libsForQt515.kwin-tiling ,plasma5Packages.kwin-tiling)
  • libsForQt5.parachute (libsForQt515.parachute ,plasma5Packages.parachute)
  • libsForQt5.plasma-browser-integration (libsForQt515.plasma-browser-integration ,plasma5Packages.plasma-browser-integration)
  • libsForQt5.plasma-disks (libsForQt515.plasma-disks ,plasma5Packages.plasma-disks)
  • libsForQt5.plasma-workspace (libsForQt515.plasma-workspace ,plasma5Packages.plasma-workspace)
  • libsForQt5.systemsettings (libsForQt515.systemsettings ,plasma5Packages.systemsettings)
  • libsForQt514.appstream-qt
  • libsForQt514.baloo
  • libsForQt514.baloo-widgets
  • lmdb
  • metadata-cleaner
  • meteo
  • pantheon.elementary-calculator
  • pantheon.elementary-camera
  • pantheon.elementary-code
  • pantheon.elementary-greeter
  • pantheon.elementary-terminal
  • pantheon.wingpanel-applications-menu
  • pantheon.wingpanel-with-indicators
  • python38Packages.lmdb
  • python39Packages.lmdb
  • setzer
  • snippetpixie
2 suggestions:
  • warning: missing-phase-hooks

    checkPhase should probably contain runHook preCheck and runHook postCheck.

    Near pkgs/development/libraries/lmdb/default.nix:28:3:

       |
    28 |   checkPhase = "make test";
       |   ^
    
  • warning: missing-patch-comment

    Please add a comment on the line above, explaining the purpose of this patch.
    Near pkgs/development/libraries/lmdb/default.nix:15:15:

       |
    15 |   patches = [ ./hardcoded-compiler.patch ];
       |               ^
    

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement.

@jb55
Copy link
Contributor

jb55 commented Apr 26, 2021 via email

@@ -2,12 +2,12 @@

stdenv.mkDerivation rec {
pname = "lmdb";
version = "0.9.28";
version = "0.9.29";

src = fetchgit {
Copy link
Member

Choose a reason for hiding this comment

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

This could be converted to fetchFromGitLab.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, but I hope that doesn't need to hold this up

Copy link
Member

Choose a reason for hiding this comment

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

Also please update the homepage to https://symas.com/lmdb/technical/

@mweinelt mweinelt merged commit 9a88ed7 into NixOS:master Apr 30, 2021
@ivan ivan mentioned this pull request Apr 30, 2021
10 tasks
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

7 participants