Skip to content

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

Draft
kquick wants to merge 7 commits into
NixOS:stagingfrom
kquick:gnatfix_upd
Draft

kquick wants to merge 7 commits into
NixOS:stagingfrom
kquick:gnatfix_upd

Conversation

@kquick

@kquick kquick commented Sep 28, 2020

Copy link
Copy Markdown
Contributor
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.
@kquick
kquick requested a review from Ericson2314 as a code owner September 28, 2020 19:51
@kquick kquick mentioned this pull request Sep 28, 2020
3 of 10 tasks
@ofborg ofborg Bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. labels Sep 28, 2020
@ofborg ofborg Bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Sep 28, 2020
@FRidh FRidh added this to the 21.03 milestone Jan 4, 2021
@SuperSandro2000 SuperSandro2000 added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 18, 2021
@stale

stale Bot commented Jul 20, 2021

Copy link
Copy Markdown

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
;;
*)
echo "@name@: used as improper sort of dependency" >2
echo "@name@: used as improper sort of dependency" >&2

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.

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
@axman6 axman6 mentioned this pull request Feb 26, 2025
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch.

Projects

No open projects
Status: Needs review

Development

Successfully merging this pull request may close these issues.

5 participants