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

btrfs-progs: allow to build without python bindings #186527

Merged
merged 1 commit into from Sep 2, 2022
Merged

btrfs-progs: allow to build without python bindings #186527

merged 1 commit into from Sep 2, 2022

Conversation

ghost
Copy link

@ghost ghost commented Aug 13, 2022

Description of changes

Python cross-compilation is quite difficult, and doesn't work in several situations, such as:

#186525

Let's give people the option of cross-compiling btrfs-progs to hostPlatforms for which we cannot cross-compile python. Unfortunately btrfs-progs insists on a special configure flag --disable-python; simply being unable to find python isn't enough.

Things done
  • Built on platform(s)
    • mips64el-linux-gnuabin32 (cross from powerpc64le-linux)
  • 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/)
  • Fits CONTRIBUTING.md.

@7c6f434c
Copy link
Member

@ofborg eval

@7c6f434c
Copy link
Member

Hm, it sounds like the second commit does more than the commit message claims and then the third commit undos the part actually in the commit message? Maybe squash then?

@ghost ghost marked this pull request as draft August 17, 2022 17:25
@ghost
Copy link
Author

ghost commented Aug 17, 2022

Yeah sorry the second commit was made in order to reduce the rebuilds to zero (so ofborg would remove the "red oval of shame" from my PR), and then the third commit reverted some parts of the second commit that turned out not to be necessary.

In any event: squashed.

@ghost ghost marked this pull request as ready for review August 17, 2022 17:27
Copy link
Contributor

@ck3d ck3d left a comment

Choose a reason for hiding this comment

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

LGTM

@ghost ghost marked this pull request as draft September 1, 2022 04:10
@ghost ghost marked this pull request as ready for review September 1, 2022 04:10
@ghost
Copy link
Author

ghost commented Sep 1, 2022

Merge conflict resolved.

Copy link
Contributor

@ck3d ck3d left a comment

Choose a reason for hiding this comment

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

I seems you merged master into your branch. Could you please make a rebase on master instead.

@ghost ghost marked this pull request as draft September 1, 2022 05:34
Python cross-compilation is quite difficult, and doesn't work in
several situations, such as:

#186525

Let's give people the option of cross-compiling `btrfs-progs` to
hostPlatforms for which we cannot cross-compile python.  Unfortunately
btrfs-progs insists on a special configure flag `--disable-python`;
simply being unable to find python isn't enough.
@ghost ghost marked this pull request as ready for review September 1, 2022 05:36
@ghost ghost requested review from ck3d and removed request for 7c6f434c and ck3d September 1, 2022 05:36
@rapenne-s
Copy link
Member

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

@ghost
Copy link
Author

ghost commented Sep 1, 2022

I seems you merged master into your branch. Could you please make a rebase on master instead.

Done.

@ck3d ck3d merged commit 7d9947f into NixOS:master Sep 2, 2022
@ghost ghost deleted the pr/btrfs-progs/enablePython branch January 23, 2024 06:47
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.

4 participants