Skip to content

perf: clean up, fix compliance issue - #439229

Merged
Ma27 merged 3 commits into
NixOS:masterfrom
alyssais:perf-non-redistributable
Sep 6, 2025
Merged

Ma27 merged 3 commits into
NixOS:masterfrom
alyssais:perf-non-redistributable

Conversation

@alyssais

@alyssais alyssais commented Sep 1, 2025 •

Copy link
Copy Markdown
Member

Closes: #436678

See commit messages for motivation.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@alyssais
alyssais requested a review from emilazy September 1, 2025 15:11
@alyssais
alyssais force-pushed the perf-non-redistributable branch from 98a9966 to 09db235 Compare September 1, 2025 15:18
Comment thread pkgs/by-name/pe/perf/package.nix Outdated

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.

Could set non-redistributable when withLibbfd is enabled?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Do we have a consistent position in Nixpkgs on whether meta.license is the license of the output or of the sources?

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.

There was some discussion about it in #106471, but it never came to a conclusion, so no, we don't.

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.

nevermind then

@alyssais
alyssais force-pushed the perf-non-redistributable branch from 09db235 to cbf9c7c Compare September 1, 2025 15:42
@alyssais
alyssais requested a review from K900 September 1, 2025 15:42
@SuperSandro2000 SuperSandro2000 added the 1.severity: legal This PR or issue raises or fixes a legal issue, e.g. licensing compliance label Sep 1, 2025
@alyssais
alyssais force-pushed the perf-non-redistributable branch from cbf9c7c to b10203b Compare September 1, 2025 15:44
This doesn't depend on a kernel version, and it's depended on by other
tools that don't depend on a kernel version.  They shouldn't have to
reach into linuxPackages for an arbitrary kernel version to get it.
@alyssais
alyssais force-pushed the perf-non-redistributable branch from b10203b to e2d200f Compare September 1, 2025 15:45
Comment thread pkgs/by-name/pe/perf/package.nix Resolved
@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: kernel The Linux kernel labels Sep 1, 2025
@alyssais
alyssais force-pushed the perf-non-redistributable branch from e2d200f to 5d9815b Compare September 1, 2025 15:51
Comment thread pkgs/top-level/linux-kernels.nix Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
perf = lib.warnOnInstantiate "linuxPackages.perf is now perf"; # Added 2025-08-28
perf = lib.warnOnInstantiate "linuxPackages.perf is now perf" pkgs.perf; # Added 2025-08-28

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Whoops, thanks!

@hesiod

hesiod commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 439229
Commit: 5d9815b07b7e80fd8c7b0e57029e59604fc22647


x86_64-linux

✅ 10 packages built:
  • cargo-flamegraph
  • hotspot
  • kdePackages.qodeassist-plugin (qt6Packages.qodeassist-plugin)
  • perf
  • perf.debug
  • qtcreator
  • qtcreator.dev
  • rocmPackages.mivisionx (rocmPackages.mivisionx-hip, rocmPackages_6.mivisionx, rocmPackages_6.mivisionx-hip)
  • rocmPackages.mivisionx-cpu (rocmPackages_6.mivisionx-cpu)
  • systemtap-unwrapped

@hesiod hesiod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks goods to me.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Sep 2, 2025
@alyssais
alyssais force-pushed the perf-non-redistributable branch from 5d9815b to 1a3b05f Compare September 3, 2025 17:56
There's no reason for us to be packaging old versions of perf.  You
don't need to match it with a kernel version.  Let's build it from the
latest kernel sources, so it'll get kept up to date.
@alyssais
alyssais force-pushed the perf-non-redistributable branch from 1a3b05f to e0a33b0 Compare September 3, 2025 17:57
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Sep 3, 2025

@Ma27 Ma27 left a comment •

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.

I'm a little confused. While the changes themselves look good and build, it seems as if we didn't have a libbfd-dependency for a while because of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dd317df072071903031ab5f91b4823858445c4a0 ?

At least the store-path doesn't have any references to libbfd when building with withLibbfd=true; and I don't see any relevant diff when checking the contents with diffiscope.

Am I missing something?

@alyssais

alyssais commented Sep 4, 2025

Copy link
Copy Markdown
Member Author

Oh, cool, so we can just drop the input?

Unused since upstream commit dd317df07207 ("perf build: Make binutil
libraries opt in").

Closes: NixOS#436678
@alyssais
alyssais force-pushed the perf-non-redistributable branch from e0a33b0 to a972ce8 Compare September 6, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: legal This PR or issue raises or fixes a legal issue, e.g. licensing compliance 6.topic: kernel The Linux kernel 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. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linuxPackages.perf is non‐redistributable

9 participants