Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

kdigger: init at 1.2.0 #177868

Merged
merged 1 commit into from
Jun 17, 2022
Merged

kdigger: init at 1.2.0 #177868

merged 1 commit into from
Jun 17, 2022

Conversation

06kellyjac
Copy link
Member

Description of changes

Package kdigger for nixpkgs @ 1.2.0

https://github.com/quarkslab/kdigger

Wait to see if x86_64-darwin builds

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.

@06kellyjac
Copy link
Member Author

Related to #81418

@06kellyjac
Copy link
Member Author

Patch to simplify ldflags and clarify their purpose

quarkslab/kdigger#2

Since aarch64-linux and x86_64-darwin fail to build I've just marked this as x86_64-linux only

quarkslab/kdigger#3

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin and removed 10.rebuild-darwin: 1 10.rebuild-darwin: 1-10 labels Jun 16, 2022

preBuild = ''
ldflags+=" -X github.com/quarkslab/kdigger/commands.GITCOMMIT=$(cat COMMIT)"
ldflags+=" -X github.com/quarkslab/kdigger/commands.BUILDERARCH=$(uname -m)"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ldflags+=" -X github.com/quarkslab/kdigger/commands.BUILDERARCH=$(uname -m)"

Thats impure.

Copy link
Member Author

Choose a reason for hiding this comment

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

How so, shouldn't it always be x86-64 on an x86_64 builder and aarch64 if crosscompiled for x86_64-linux from an aarch64-linux platform?

It doesnt have other details like kernel label/name/whatever, date, etc

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess I can pull an equivalent value from stdenv somewhere

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, you're right. I thought it includes the x86_64 variants but we still shouldn't use it because it depends on the build machine and not the nixpkgs platform. Also it probably breaks easily on binfmt.

@github-actions
Copy link
Contributor

Successfully created backport PR #178067 for release-22.05.

@06kellyjac 06kellyjac deleted the kdigger branch June 17, 2022 20:44
@06kellyjac 06kellyjac mentioned this pull request Jun 29, 2022
13 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 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