Skip to content

python3Packages.pyfuse3: Fix cross-compilation - #524083

Merged
happysalada merged 1 commit into
NixOS:masterfrom
onny:pyfuse3-cross
Jul 24, 2026
Merged

python3Packages.pyfuse3: Fix cross-compilation#524083
happysalada merged 1 commit into
NixOS:masterfrom
onny:pyfuse3-cross

Conversation

@onny

@onny onny commented May 25, 2026

Copy link
Copy Markdown
Contributor

adding patch, otherwise cross-compilation, for example for riscv, will fail because the pkg-config name here will be different

Things done

@onny onny added the backport release-26.05 Backport PR automatically label May 25, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested review from dotlambda and nyanloutre May 25, 2026 16:15
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: python Python is a high-level, general-purpose programming language. labels May 25, 2026
@SuperSandro2000 SuperSandro2000 added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label May 25, 2026
@SuperSandro2000

Copy link
Copy Markdown
Member

Do you think we can get this upstreamed?

def pkg_config(pkg, cflags=True, ldflags=False, min_ver=None):
"""Frontend to pkg-config"""

+ PKG_CONFIG = os.environ.get('PKG_CONFIG', 'pkg-config').split()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's the .split() for? Isn't $PKG_CONFIG the path to the executable, which might actually contain spaces if the store path does?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sometimes PKG_CONFIG can be set to more than just the binary name, including additional params. for subprocess we need to feed this as list

@onny
onny force-pushed the pyfuse3-cross branch from 4778d99 to 353b0a2 Compare July 9, 2026 12:53
@onny
onny requested a review from SuperSandro2000 July 9, 2026 12:53
@onny

onny commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Do you think we can get this upstreamed?

done

Comment thread pkgs/development/python-modules/pyfuse3/default.nix Outdated
@onny
onny requested a review from happysalada July 23, 2026 13:25
@happysalada

Copy link
Copy Markdown
Contributor

Can we get a nixpkgs review ?

@onny

onny commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 524083
Commit: 6f7c0ea9c6e79b286552c2d8b3f12918c5a8009a


x86_64-linux

✅ 13 packages built:
  • borgbackup
  • borgmatic
  • deja-dup
  • emborg (python314Packages.emborg)
  • pika-backup
  • prometheus-borgmatic-exporter
  • python313Packages.emborg
  • python313Packages.pyfuse3
  • python314Packages.pyfuse3
  • rmfuse
  • s3ql
  • vorta
  • weblate

@happysalada
happysalada added this pull request to the merge queue Jul 24, 2026
Merged via the queue into NixOS:master with commit e2cffc0 Jul 24, 2026
25 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: python Python is a high-level, general-purpose programming language. 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants