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

gnat-wrapper/cc-wrapper cleanup and fixes #99027

Draft
wants to merge 7 commits into
base: staging
Choose a base branch
from

Conversation

kquick
Copy link
Contributor

@kquick kquick commented Sep 28, 2020

Motivation for this change

Observation of #98274 which fixed the gnat issue I also encountered led to some additional cleanup and corner-case fixes in both the gnat-wrapper, the cc-wrapper, and the role.bash setup hook.

Re-submitted version of #98369 to build against staging instead of master.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
    • Since this changes the core stdenv wrappers, everything rebuilds. I've run several hundred package rebuilds, along with gcc/gnat builds, but don't have the machine power or time to wait for every package to rebuild. :-)
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

The shellcheck utility looks for lines starting with "# shellcheck"
and treats those as directives controlling it's use.  These lines
start that way, but are not actual shellcheck directives, causing it
to emit errors and fail.  This patch adjusts the comments so that
shellcheck does not perceive them as directives.
These do not break the Ada compilations done with gcc, but they cause
three warnings about unused flags to be emitted with each compilation.
@stale
Copy link

stale bot commented Jul 20, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 20, 2021
@Artturin Artturin modified the milestones: 21.05, 23.05 Dec 31, 2022
@stale stale bot removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md labels Dec 31, 2022
@stale stale bot removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md labels Dec 31, 2022
@@ -17,7 +17,7 @@ function getRole() {
role_post='_FOR_TARGET'
;;
*)
echo "@name@: used as improper sort of dependency" >2
echo "@name@: used as improper sort of dependency" >&2
Copy link
Member

Choose a reason for hiding this comment

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

both changes to this file were fixed in 8ed1104

@Artturin Artturin removed this from the 23.05 milestone Feb 17, 2023
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 19, 2024
@wegank wegank marked this pull request as draft March 20, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Staging
  
Needs review
Development

Successfully merging this pull request may close these issues.

None yet

5 participants