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

modules/portage: fix usage with withbdeps: false #6456

Merged
merged 1 commit into from
May 3, 2023

Conversation

living180
Copy link
Contributor

SUMMARY

Using withbdeps: false was causing the underlying emerge command to fail due to not passing an argument to the --with-bdeps flag. Fix by updating the logic for generating the emerge command arguments to ensure that withbdeps: false results in a passing an n argument with the --with-bdeps emerge flag.

Fixes #6451.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

portage

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type) labels Apr 28, 2023
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! I've added a first comment.

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-6 labels Apr 28, 2023
Using ``withbdeps: false`` was causing the underlying emerge command to
fail due to not passing an argument to the ``--with-bdeps`` flag.  Fix
by updating the logic for generating the emerge command arguments to
ensure that ``withbdeps: false`` results in a passing an ``n`` argument
with the ``--with-bdeps`` emerge flag.
@russoz
Copy link
Collaborator

russoz commented Apr 28, 2023

LGTM

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label May 3, 2023
@felixfontein felixfontein merged commit fab717b into ansible-collections:main May 3, 2023
@patchback
Copy link

patchback bot commented May 3, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/fab717bb2d392df7aef77a74232aa92e4e63e127/pr-6456

Backported as #6480

🤖 @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 May 3, 2023
Using ``withbdeps: false`` was causing the underlying emerge command to
fail due to not passing an argument to the ``--with-bdeps`` flag.  Fix
by updating the logic for generating the emerge command arguments to
ensure that ``withbdeps: false`` results in a passing an ``n`` argument
with the ``--with-bdeps`` emerge flag.

(cherry picked from commit fab717b)
@felixfontein
Copy link
Collaborator

@living180 thanks for your contribution!
@russoz thanks for reviewing!

felixfontein pushed a commit that referenced this pull request May 4, 2023
…h withbdeps: false (#6480)

modules/portage: fix usage with withbdeps: false (#6456)

Using ``withbdeps: false`` was causing the underlying emerge command to
fail due to not passing an argument to the ``--with-bdeps`` flag.  Fix
by updating the logic for generating the emerge command arguments to
ensure that ``withbdeps: false`` results in a passing an ``n`` argument
with the ``--with-bdeps`` emerge flag.

(cherry picked from commit fab717b)

Co-authored-by: Daniel Harding <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using withbdeps: false with the portage module causes the task to fail
4 participants