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

mingw install fails with: :: msys2-runtime and catgets are in conflict. Remove catgets? [y/N] #18

Closed
Ghiora opened this issue May 6, 2018 · 1 comment
Labels
Stale This is marked as stale and will be closed shortly

Comments

@Ghiora
Copy link

Ghiora commented May 6, 2018

Cookbook version

[commit 9bdcf17 Fri Feb 16 17:21:41 2018 -0800]

Chef-client version

[Version of chef-client in your environment: 12, 12.22.3]

Platform Details

[AWS, msys2-tools64-windows-2012r2 ]

Scenario:

[Install mingw]

Steps to Reproduce:

[I do an kitchne create, kitchen converge, Logs are attached]

Expected Result:

[Mingw should be installed]

Actual Result:

[It fails with the following message: :: msys2-runtime and catgets are in conflict. Remove catgets? [y/N]
:: msys2-runtime and catgets are in conflict
See this discussion: https://github.com/msys2/MSYS2-packages/issues/1141
So I make the changes shown in the attached git diff (without the commenting #G):

diff --git a/resources/msys2_package.rb b/resources/msys2_package.rb
index c5186b3..cdfc6fb 100644
--- a/resources/msys2_package.rb
+++ b/resources/msys2_package.rb
@@ -102,6 +102,8 @@ action_class do
# to globally modify user first time setup, edit /etc/skel or add
# "post-setup" steps to /etc/post-install/
# The first-time init shell must be restarted and cannot be reused.
+#G msys2_exec('Cleanup', 'pacman -R catgets --noconfirm')
+#G msys2_exec('Cleanup', 'pacman -R libcatgets --noconfirm')
msys2_exec('msys2 first time init', 'exit') unless ::File.exist?(pacman_key_dir)

 # Update pacman and msys base packages.

and that fixes it.
Since I am not familiar with the pacman I assume this code might need to be configured at an option. ]
msys2-tools64-windows-2012r2.log

@github-actions
Copy link

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

@github-actions github-actions bot added the Stale This is marked as stale and will be closed shortly label Jan 29, 2021
@Ghiora Ghiora closed this as completed Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale This is marked as stale and will be closed shortly
Projects
None yet
Development

No branches or pull requests

1 participant