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

Broken dependency in today update (GCC-9.1) #5434

Closed
angelog0 opened this issue May 28, 2019 · 10 comments
Closed

Broken dependency in today update (GCC-9.1) #5434

angelog0 opened this issue May 28, 2019 · 10 comments

Comments

@angelog0
Copy link

Just now:

$ pacman -Syu
:: Sincronizzazione dei database in corso...
 mingw32                                   545,0 KiB   792K/s 00:01 [####################################] 100%
 mingw32.sig                               119,0   B  0,00B/s 00:00 [####################################] 100%
 mingw64                                   546,1 KiB   943K/s 00:01 [####################################] 100%
 mingw64.sig                               119,0   B  0,00B/s 00:00 [####################################] 100%
 msys è aggiornato
:: Starting core system upgrade...
 non ci sono aggiornamenti disponibili
:: Aggiornamento del sistema in corso...
risoluzione delle dipendenze in corso...
ricerca dei pacchetti in conflitto in corso...
errore: impossibile eseguire l'operazione richiesta (impossibile soddisfare le dipendenze)
:: installing mingw-w64-i686-gcc (9.1.0-1) breaks dependency 'mingw-w64-i686-gcc=7.4.0-1' required by mingw-w64-i686-gcc-ada
:: installing mingw-w64-i686-gcc (9.1.0-1) breaks dependency 'mingw-w64-i686-gcc=7.4.0-1' required by mingw-w64-i686-gcc-objc
:: installing mingw-w64-x86_64-gcc (9.1.0-1) breaks dependency 'mingw-w64-x86_64-gcc=8.3.0-2' required by mingw-w64-x86_64-gcc-ada
:: installing mingw-w64-x86_64-gcc (9.1.0-1) breaks dependency 'mingw-w64-x86_64-gcc=8.3.0-2' required by mingw-w64-x86_64-gcc-objc

How to fix?

@Alexpux
Copy link
Member

Alexpux commented May 28, 2019

Remove Ada and ObjC packages. They are dropped now.

@Ede123
Copy link
Contributor

Ede123 commented May 28, 2019

Is there a good option to do this in CI environments which are broken because of this?
Or is "manually" uninstalling the only way?

@Alexpux
Copy link
Member

Alexpux commented May 28, 2019

I think only manually can do

@Biswa96
Copy link
Member

Biswa96 commented May 29, 2019

I have this error in pacman:

resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing mingw-w64-x86_64-gcc (9.1.0-1) breaks dependency 'mingw-w64-x86_64-gcc=8.3.0-2' required by mingw-w64-x86_64-gcc-ada
:: installing mingw-w64-x86_64-gcc (9.1.0-1) breaks dependency 'mingw-w64-x86_64-gcc=8.3.0-2' required by mingw-w64-x86_64-gcc-objc

@lazka
Copy link
Member

lazka commented May 29, 2019

Is there a good option to do this in CI environments which are broken because of this?

# Workaround gcc9 update issues
pacman -R --noconfirm mingw-w64-i686-gcc-ada mingw-w64-i686-gcc-objc || true;
pacman -R --noconfirm mingw-w64-x86_64-gcc-ada mingw-w64-x86_64-gcc-objc || true;

@Ede123
Copy link
Contributor

Ede123 commented May 29, 2019

Yes, that's what I referred to as "manually" and implemented accordingly.

The obvious problem is that this requires manual intervention and does not prevent the CI from failing if this type of conflict occurs for a different package in future.

@Optiligence
Copy link
Contributor

To alleviate this problem the gcc PKGBUILD could make use of replaces

One could say that the usage would be incorrect, but I would argue that the benefits outweigh that argument here.

@lazka
Copy link
Member

lazka commented May 30, 2019

The obvious problem is that this requires manual intervention and does not prevent the CI from failing if this type of conflict occurs for a different package in future.

Yeah, agreed, this came up @ https://gitter.im/msys2/msys2?at=5cee3b899b50f639354862e5

@angelog0
Copy link
Author

@Alexpux wrote:

Remove Ada and ObjC packages. They are dropped now.

What a pity!

Ok, fixed now... and closing the issue...

@Ede123
Copy link
Contributor

Ede123 commented May 30, 2019

The obvious problem is that this requires manual intervention and does not prevent the CI from failing if this type of conflict occurs for a different package in future.

Yeah, agreed, this came up @ https://gitter.im/msys2/msys2?at=5cee3b899b50f639354862e5

I see, so it's not obvious if this even is solvable without causing more trouble... (Oh, and thanks for pointing towards gitter, I always thought IRC was the most official communication channel for MSYS2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants