Skip to content

treewide/applications: add sourceType binaryNativeCode for many packages#176823

Merged
Mindavi merged 3 commits intoNixOS:masterfrom
risicle:ris-native-source-provenance-applications
Jun 23, 2022
Merged

treewide/applications: add sourceType binaryNativeCode for many packages#176823
Mindavi merged 3 commits intoNixOS:masterfrom
risicle:ris-native-source-provenance-applications

Conversation

@risicle
Copy link
Contributor

@risicle risicle commented Jun 7, 2022

Description of changes

Again, not comprehensive. These are packages where binary native code makes it from the downloaded src to the output.

Done for both free and unfree packages as it seemed easier not to differentiate when it came to it.

Skips AppImages as I'm guessing it'll be easier to handle them all together. (edit see #177308)

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 22.11 Release Notes (or backporting 22.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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@risicle risicle requested review from RaghavSood and mmahut as code owners June 7, 2022 23:57
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jun 8, 2022
@risicle
Copy link
Contributor Author

risicle commented Jun 8, 2022

😕 ⁉️
what changed about mendeley?

@SuperSandro2000
Copy link
Member

Maybe because it is unfree?

@risicle
Copy link
Contributor Author

risicle commented Jun 9, 2022

There are plenty of other unfree packages I touched here though.

@risicle
Copy link
Contributor Author

risicle commented Jun 11, 2022

I'm not tremendously worried about it TBH..

@risicle risicle force-pushed the ris-native-source-provenance-applications branch 2 times, most recently from 5e068b3 to 32b8df9 Compare June 12, 2022 23:53
@risicle risicle force-pushed the ris-native-source-provenance-applications branch from 32b8df9 to 5a616c9 Compare June 14, 2022 00:12
@risicle
Copy link
Contributor Author

risicle commented Jun 14, 2022

@ofborg eval

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you share a bit of info how this change was generated? Particularly how were "packages where binary native code makes it from the downloaded src to the output" packages identified?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A few methods.

A first pass to find candidates used a grep for either architecture names in urls or uses of patchelf. Then I would look manually at the source package(s) if I had any doubts and try and figure out if the binaries made it to the output.

@risicle risicle force-pushed the ris-native-source-provenance-applications branch from 5a616c9 to c988bdb Compare June 15, 2022 21:27
@ofborg ofborg bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 15, 2022
@risicle risicle force-pushed the ris-native-source-provenance-applications branch from c988bdb to 2fb78c8 Compare June 16, 2022 19:11
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 16, 2022
@risicle risicle force-pushed the ris-native-source-provenance-applications branch from 2fb78c8 to 07a0a20 Compare June 17, 2022 18:54
@risicle risicle force-pushed the ris-native-source-provenance-applications branch from ed6323a to 16bca8d Compare June 23, 2022 17:49
@Mindavi Mindavi merged commit c100196 into NixOS:master Jun 23, 2022
@Mindavi
Copy link
Contributor

Mindavi commented Jun 23, 2022

Cherry picked some tens of packages and checked, all looked ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants