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

python3Packages.orange3: setup direct dependencies to fetch from GitHub + bump #354279

Merged
merged 10 commits into from
Dec 30, 2024

Conversation

lucasew
Copy link
Contributor

@lucasew lucasew commented Nov 7, 2024

  • orange: setup update script, fetch from GitHub
  • python3Packages.orange-canvas-core: 0.2.2 -> 0.2.4
  • python3Packages.orange-widget-base: 4.24.0 -> 4.25.0

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 labels Nov 7, 2024
@lucasew
Copy link
Contributor Author

lucasew commented Nov 7, 2024

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

❌ 12 packages failed to build:
  • python311Packages.orange-canvas-core
  • python311Packages.orange-canvas-core.dist
  • python311Packages.orange-widget-base
  • python311Packages.orange-widget-base.dist
  • python311Packages.orange3
  • python311Packages.orange3.dist
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist

@lucasew lucasew force-pushed the 20241107-upd-orange3 branch 2 times, most recently from d89dea3 to f89bd30 Compare November 19, 2024 01:35
@lucasew lucasew marked this pull request as ready for review November 19, 2024 01:36
@lucasew lucasew changed the title orange3: setup direct dependencies to fetch from GitHub + bump python3Packages.orange3: setup direct dependencies to fetch from GitHub + bump Nov 19, 2024
@nix-owners nix-owners bot requested a review from natsukium November 19, 2024 01:38
@lucasew
Copy link
Contributor Author

lucasew commented Nov 19, 2024

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

✅ 16 packages built:
  • python311Packages.orange-canvas-core
  • python311Packages.orange-canvas-core.dist
  • python311Packages.orange-widget-base
  • python311Packages.orange-widget-base.dist
  • python311Packages.orange3
  • python311Packages.orange3.dist
  • python311Packages.trubar
  • python311Packages.trubar.dist
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist


nativeCheckInputs = [ pytestCheckHook ];

passthru.updateScript = gitUpdater { };
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not nix-update-script ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simpler, and the actual code is in nixpkgs already. BTW there is a generic updater that you can setup by just giving a command that list the versions available

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I was not aware of that. So basically it is (or should be) recommended over nix-update-script for all packages using fetchFromGit* ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Anything using git should work.

If they use some kind of tag prefix such as v or sscg- then you pass it using the rev-prefix parameter and that's it.

If you want always the latest commit then you use unstableGitUpdater, and there is genericUpdater when the source is not git, you basically pass a script to list versions then it takes the latest one by comparison then change the hashes automatically. This version list is a bit clunky because the system expects you to pass a expression that takes package information as an argument, I did an example of that in #354277 tho.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok good to know ! Thank you for the explanation :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, I think that specifying the updater is useless for packages under python3Packages as they all inherit an updater (nix-update-script I think) by default.

Hence, I would actually get rid of those.
Maybe @mweinelt can confirm.

@lucasew lucasew force-pushed the 20241107-upd-orange3 branch 2 times, most recently from 0408ca6 to 4c88852 Compare November 19, 2024 23:58
@lucasew lucasew requested a review from GaetanLepage November 20, 2024 00:05
@lucasew
Copy link
Contributor Author

lucasew commented Nov 20, 2024

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

✅ 16 packages built:
  • python311Packages.orange-canvas-core
  • python311Packages.orange-canvas-core.dist
  • python311Packages.orange-widget-base
  • python311Packages.orange-widget-base.dist
  • python311Packages.orange3
  • python311Packages.orange3.dist
  • python311Packages.trubar
  • python311Packages.trubar.dist
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

✅ 16 packages built:
  • python311Packages.orange-canvas-core
  • python311Packages.orange-canvas-core.dist
  • python311Packages.orange-widget-base
  • python311Packages.orange-widget-base.dist
  • python311Packages.orange3
  • python311Packages.orange3.dist
  • python311Packages.trubar
  • python311Packages.trubar.dist
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist

aarch64-linux

✅ 16 packages built:
  • python311Packages.orange-canvas-core
  • python311Packages.orange-canvas-core.dist
  • python311Packages.orange-widget-base
  • python311Packages.orange-widget-base.dist
  • python311Packages.orange3
  • python311Packages.orange3.dist
  • python311Packages.trubar
  • python311Packages.trubar.dist
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist

x86_64-darwin

⏩ 12 packages marked as broken and skipped:
  • python311Packages.orange-canvas-core
  • python311Packages.orange-canvas-core.dist
  • python311Packages.orange-widget-base
  • python311Packages.orange-widget-base.dist
  • python311Packages.orange3
  • python311Packages.orange3.dist
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
✅ 4 packages built:
  • python311Packages.trubar
  • python311Packages.trubar.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist

aarch64-darwin

⏩ 12 packages marked as broken and skipped:
  • python311Packages.orange-canvas-core
  • python311Packages.orange-canvas-core.dist
  • python311Packages.orange-widget-base
  • python311Packages.orange-widget-base.dist
  • python311Packages.orange3
  • python311Packages.orange3.dist
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
✅ 4 packages built:
  • python311Packages.trubar
  • python311Packages.trubar.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist


nativeCheckInputs = [ pytestCheckHook ];

passthru.updateScript = gitUpdater { };
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, I think that specifying the updater is useless for packages under python3Packages as they all inherit an updater (nix-update-script I think) by default.

Hence, I would actually get rid of those.
Maybe @mweinelt can confirm.

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Nov 20, 2024
@lucasew lucasew requested a review from GaetanLepage December 30, 2024 01:56
@lucasew
Copy link
Contributor Author

lucasew commented Dec 30, 2024

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

❌ 4 packages failed to build:
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 13 packages built:
  • cargo-features-manager
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

@lucasew lucasew force-pushed the 20241107-upd-orange3 branch from c4b59cb to 91ab556 Compare December 30, 2024 02:33
@lucasew
Copy link
Contributor Author

lucasew commented Dec 30, 2024

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

❌ 4 packages failed to build:
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 35 packages built:
  • automatic-timezoned
  • centrifugo
  • dwlb
  • dwlb.man
  • fcft
  • fcft.doc
  • fcft.man
  • fnott
  • foot
  • foot.debug
  • foot.terminfo
  • foot.themes
  • fuzzel
  • nanosvg
  • okms-cli
  • phrase-cli
  • polypane
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist
  • raffi
  • sandbar
  • testkube
  • wayprompt
  • yambar
  • yambar.man

@lucasew
Copy link
Contributor Author

lucasew commented Dec 30, 2024

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

❌ 4 packages failed to build:
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 12 packages built:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

@lucasew
Copy link
Contributor Author

lucasew commented Dec 30, 2024

catboost is broken, that's why orange is failing

@lucasew
Copy link
Contributor Author

lucasew commented Dec 30, 2024

catboost> FAILED: catboost/private/libs/functools/CMakeFiles/private-libs-functools.dir/forward_as_const.cpp.o                                         
catboost> /nix/store/xl0vlc2wdchfbq8536zs19pj2r3xdmma-clang-wrapper-19.1.5/bin/clang++ -DARCADIA_BUILD_ROOT=/build/source/build -DARCADIA_ROOT=/build/s
ource -DCATBOOST_OPENSOURCE=yes -I/build/source -I/build/source/build -I/build/source/contrib/libs/linux-headers -I/build/source/contrib/libs/linux-hea
ders/_nf -I/build/source/contrib/libs/cxxsupp/libcxx/include -I/build/source/contrib/libs/cxxsupp/libcxxrt/include -I/build/source/contrib/libs/clang16
-rt/include -I/build/source/contrib/libs/zlib/include -I/build/source/contrib/libs/double-conversion -I/build/source/contrib/libs/libc_compat/include/r
eadpassphrase -I/build/source/contrib/libs/libc_compat/reallocarray -I/build/source/contrib/libs/libc_compat/random -fexceptions   -fno-common   -fcolo
r-diagnostics   -faligned-allocation   -fdebug-default-version=4   -ffunction-sections   -fdata-sections   -Wall   -Wextra   -Wno-parentheses   -Wno-im
plicit-const-int-float-conversion   -Wno-unknown-warning-option   -pipe   -D_THREAD_SAFE   -D_PTHREADS   -D_REENTRANT   -D_LARGEFILE_SOURCE   -D__STDC_
CONSTANT_MACROS   -D__STDC_FORMAT_MACROS   -D__LONG_LONG_SUPPORTED  -D_GNU_SOURCE -DLIBCXX_BUILDING_LIBCXXRT -fuse-init-array -D_FILE_OFFSET_BITS=64  -
m64    -msse2     -msse3     -mssse3         -msse4.1       -msse4.2       -mpopcnt      -mcx16 -D_YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE   -Woverlo
aded-virtual   -Wimport-preprocessor-directive-pedantic   -Wno-undefined-var-template   -Wno-return-std-move   -Wno-defaulted-function-deleted   -Wno-p
essimizing-move   -Wno-deprecated-anon-enum-enum-conversion   -Wno-deprecated-enum-enum-conversion   -Wno-deprecated-enum-float-conversion   -Wno-ambig
uous-reversed-operator   -Wno-deprecated-volatile      -DSSE_ENABLED=1     -DSSE3_ENABLED=1     -DSSSE3_ENABLED=1         -DSSE41_ENABLED=1       -DSSE
42_ENABLED=1       -DPOPCNT_ENABLED=1      -DCX16_ENABLED=1 -O3 -DNDEBUG -std=c++20 -fPIC -DLIBCXX_BUILDING_LIBCXXRT -nostdinc++ -D_libunwind_ -MD -MT 
catboost/private/libs/functools/CMakeFiles/private-libs-functools.dir/forward_as_const.cpp.o -MF catboost/private/libs/functools/CMakeFiles/private-lib
s-functools.dir/forward_as_const.cpp.o.d -o catboost/private/libs/functools/CMakeFiles/private-libs-functools.dir/forward_as_const.cpp.o -c /build/sour
ce/catboost/private/libs/functools/forward_as_const.cpp                                                                                                
catboost> In file included from /build/source/catboost/private/libs/functools/forward_as_const.cpp:1:                                                  
catboost> /build/source/catboost/private/libs/functools/forward_as_const.h:107:42: error: a template argument list is expected after a name prefixed by
 the template keyword [-Wmissing-template-arg-list-after-template-kw]                                                                                  
catboost>   107 |                 return TParent::template ForwardSelfAsConst(                                                                         
catboost>       |                                          ^                                                                                           
catboost> 1 error generated. 

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

❌ 4 packages failed to build:
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 12 packages built:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

aarch64-linux

❌ 4 packages failed to build:
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 12 packages built:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

x86_64-darwin

⏩ 12 packages marked as broken and skipped:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 4 packages built:
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

aarch64-darwin

⏩ 12 packages marked as broken and skipped:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 4 packages built:
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 354279


x86_64-linux

❌ 4 packages failed to build:
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 12 packages built:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

aarch64-linux

❌ 4 packages failed to build:
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 12 packages built:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

x86_64-darwin

⏩ 12 packages marked as broken and skipped:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 4 packages built:
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

aarch64-darwin

⏩ 12 packages marked as broken and skipped:
  • python312Packages.orange-canvas-core
  • python312Packages.orange-canvas-core.dist
  • python312Packages.orange-widget-base
  • python312Packages.orange-widget-base.dist
  • python312Packages.orange3
  • python312Packages.orange3.dist
  • python313Packages.orange-canvas-core
  • python313Packages.orange-canvas-core.dist
  • python313Packages.orange-widget-base
  • python313Packages.orange-widget-base.dist
  • python313Packages.orange3
  • python313Packages.orange3.dist
✅ 4 packages built:
  • python312Packages.trubar
  • python312Packages.trubar.dist
  • python313Packages.trubar
  • python313Packages.trubar.dist

@GaetanLepage GaetanLepage merged commit f25ffb5 into NixOS:master Dec 30, 2024
23 of 25 checks passed
@lucasew lucasew deleted the 20241107-upd-orange3 branch December 30, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants