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

Makefile: replace which(1) with more portable command -v #6784

Merged
merged 1 commit into from
Jun 12, 2022

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Jun 11, 2022

What do these changes do?

The which(1) program is not provided by the POSIX base system
and causes the Makefile to misbehave when it is missing on the system.
command -v is a portable replacement that is provided by the shell
as a builtin and that is guaranteed to exist by POSIX.

Are there changes in behavior for the user?

NFC.

Related issue number

n/a

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@mgorny mgorny requested review from webknjaz and asvetlov as code owners June 11, 2022 05:25
The `which(1)` program is not provided by the POSIX base system
and causes the Makefile to misbehave when it is missing on the system.
`command -v` is a portable replacement that is provided by the shell
as a builtin and that is guaranteed to exist by POSIX.
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Jun 11, 2022
@codecov
Copy link

codecov bot commented Jun 11, 2022

Codecov Report

Merging #6784 (03409c6) into master (944482f) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6784      +/-   ##
==========================================
- Coverage   93.44%   93.44%   -0.01%     
==========================================
  Files         104      104              
  Lines       30627    30627              
  Branches     3076     3076              
==========================================
- Hits        28620    28619       -1     
  Misses       1838     1838              
- Partials      169      170       +1     
Flag Coverage Δ
unit 93.36% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiohttp/web_protocol.py 89.39% <0.00%> (-0.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 944482f...03409c6. Read the comment docs.

@Dreamsorcerer Dreamsorcerer merged commit 3a41da0 into aio-libs:master Jun 12, 2022
@patchback
Copy link
Contributor

patchback bot commented Jun 12, 2022

Backport to 3.9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.9/3a41da05bcb1edde9f6f878d9092e108e70dff2a/pr-6784

Backported as #6787

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jun 12, 2022
The `which(1)` program is not provided by the POSIX base system
and causes the Makefile to misbehave when it is missing on the system.
`command -v` is a portable replacement that is provided by the shell
as a builtin and that is guaranteed to exist by POSIX.

(cherry picked from commit 3a41da0)
Dreamsorcerer pushed a commit that referenced this pull request Jun 12, 2022
…6787)

The `which(1)` program is not provided by the POSIX base system
and causes the Makefile to misbehave when it is missing on the system.
`command -v` is a portable replacement that is provided by the shell
as a builtin and that is guaranteed to exist by POSIX.

(cherry picked from commit 3a41da0)

Co-authored-by: Michał Górny <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants