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

MSYS2 pacman 404s when trying to download ngdevkit repo database #91

Open
DeathEngine2 opened this issue Mar 2, 2023 · 7 comments
Open

Comments

@DeathEngine2
Copy link

hello everyone,
I was trying to setup ngdevkit on Windows via msys2 and followed the instructions for adding the ngdevkit repository to my MSYS2 install.
Added the repo URL included in the msys2 section of the readme to my pacman.conf and ran pacman -Sy to test if it worked, and it said that the dciabrin repo URL 404'd so it couldn't retrieve ngdevkit.db.
If there's anything here that might be missing or broken on my end in order to get ngdevkit running under Windows, help would be greatly appreciated.

@dciabrin
Copy link
Owner

dciabrin commented Mar 2, 2023

Hmmm that's unexpected, I can fetch those from my MSYS2 environment:

# pacman -Syy
:: Synchronizing package databases...
 mingw32                                                                                       1745.9 KiB  2.06 MiB/s 00:01 [##########################################################################] 100%
 mingw64                                                                                       1821.9 KiB   972 KiB/s 00:02 [##########################################################################] 100%
 ucrt64                                                                                        1866.7 KiB  1636 KiB/s 00:01 [##########################################################################] 100%
 clang32                                                                                       1720.1 KiB  2.03 MiB/s 00:01 [##########################################################################] 100%
 clang64                                                                                       1808.1 KiB  1866 KiB/s 00:01 [##########################################################################] 100%
 msys                                                                                           429.2 KiB  1527 KiB/s 00:00 [##########################################################################] 100%
 ngdevkit                                                                                      1257.0   B  6.53 KiB/s 00:00 [##########################################################################] 100%

dciabrin@boson MSYS ~
# pacman -S mingw-w64-x86_64-ngdevkit mingw-w64-x86_64-ngdevkit-gngeo
resolving dependencies...
looking for conflicting packages...

Packages (3) mingw-w64-x86_64-ngdevkit-toolchain-0.1+202302220848-1  mingw-w64-x86_64-ngdevkit-0.2+202302191925-1  mingw-w64-x86_64-ngdevkit-gngeo-0.8.1+202302191800-1

Total Download Size:    22.48 MiB
Total Installed Size:  173.33 MiB

Could you verify that the contents of your pacman.conf look something like:

[...]
# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[ngdevkit]
SigLevel = Optional TrustAll
Server = https://dciabrin.net/msys2-ngdevkit/$arch

@gabordo
Copy link

gabordo commented Dec 6, 2023

I have a similar issue. I installed ngdevkit a year ago and I can't remember any issues and it still works properly. But today I tried to update msys2 and I got 404 error too:

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 libgnutls-3.8.2-1-x86_64       1403.0 KiB  4.09 MiB/s 00:00 [###############################] 100%
 gawk-5.3.0-1-x86_64            1298.9 KiB  2.96 MiB/s 00:00 [###############################] 100%
 mingw-w64-ucrt-x86_64-isl-...  1452.1 KiB  2.98 MiB/s 00:00 [###############################] 100%
 mingw-w64-x86_64-ngdevkit-toolchain-0.1+202302220848-1-x86_64.pkg.tar.zst failed to download
 texinfo-7.1-2-x86_64           1435.3 KiB  1862 KiB/s 00:01 [###############################] 100%
 ncurses-6.4-2-x86_64           1275.7 KiB  1384 KiB/s 00:01 [###############################] 100%
 Total (  6/119)                  59.5 MiB  44.5 MiB/s 00:01 [###############################] 100%
error: failed retrieving file 'mingw-w64-x86_64-ngdevkit-toolchain-0.1+202302220848-1-x86_64.pkg.tar.zst' from dciabrin.net : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

I checked my pacman.conf and it has these lines:

[ngdevkit]
SigLevel = Optional TrustAll
Server = https://dciabrin.net/msys2-ngdevkit/$arch

@dciabrin
Copy link
Owner

dciabrin commented Dec 6, 2023

OK let me have a look at it again, I'll report back shortly.

Also please note that I broke the packaging of the sound driver with a recent commit, so it needs to get fixed as well for the packages to work properly.

@dciabrin
Copy link
Owner

dciabrin commented Dec 7, 2023

I think the issue is that you're trying to upgrade the MINGW64 version of ngdevkit packages, which has been deprecated in favor if the UCRT64 version.

With an up-to-date repository:

# pacman -Syy
:: Synchronizing package databases...
 mingw32                      434.8 KiB   535 KiB/s 00:01 [#############################] 100%
 mingw64                      468.6 KiB   512 KiB/s 00:01 [#############################] 100% 
 ucrt64                       470.1 KiB   617 KiB/s 00:01 [#############################] 100% 
 clang32                      421.1 KiB   493 KiB/s 00:01 [#############################] 100% 
 clang64                      460.6 KiB   520 KiB/s 00:01 [#############################] 100% 
 msys                         461.7 KiB   720 KiB/s 00:01 [#############################] 100%
 ngdevkit                    1998.0   B  28.3 KiB/s 00:00 [#############################] 100%

The repository shows both the old MINGW64 version and the new UCRT64.

# pacman -Ss ngdevkit
ngdevkit/mingw-w64-ucrt-x86_64-ngdevkit 0.3+202309150839-1 [installed]
    Open source development for Neo-Geo (mingw-w64)
ngdevkit/mingw-w64-ucrt-x86_64-ngdevkit-gngeo 0.8.1+202305160925-3 [installed]
    Portable Neo-Geo emulator customized for ngdevkit (mingw-w64)
ngdevkit/mingw-w64-ucrt-x86_64-ngdevkit-toolchain 0.1+202309101247-1 [installed]
    Toolchain for ngdevkit (mingw-w64)
ngdevkit/mingw-w64-x86_64-ngdevkit 0.2+202302191925-1
    Open source development for Neo-Geo (mingw-w64)
ngdevkit/mingw-w64-x86_64-ngdevkit-gngeo 0.8.1+202302191800-1
    Portable Neo-Geo emulator customized for ngdevkit (mingw-w64)
ngdevkit/mingw-w64-x86_64-ngdevkit-toolchain 0.1+202302220848-1
    Toolchain for ngdevkit (mingw-w64)

However the MINGW64 version of the package is now unavailable due to its deprecation.

# pacman -S mingw-w64-x86_64-ngdevkit mingw-w64-x86_64-ngdevkit-gngeo
resolving dependencies...
looking for conflicting packages...

Packages (3) mingw-w64-x86_64-ngdevkit-toolchain-0.1+202302220848-1
             mingw-w64-x86_64-ngdevkit-0.2+202302191925-1
             mingw-w64-x86_64-ngdevkit-gngeo-0.8.1+202302191800-1

Total Download Size:    22.48 MiB
Total Installed Size:  173.33 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 mingw-w64-x86_64-ngdevkit-toolchain-0.1+202302220848-1-x86_64.pkg.tar.zst failed to download  
 mingw-w64-x86_64-ngdevkit-gngeo-0.8.1+202302191800-1-x86_64.pkg.tar.zst failed to download    
 mingw-w64-x86_64-ngdevkit-0.2+202302191925-1-x86_64.pkg.tar.zst failed to download
 Total (3/3)                   22.5 MiB   159 MiB/s 00:00 [#############################] 100% 
error: failed retrieving file 'mingw-w64-x86_64-ngdevkit-toolchain-0.1+202302220848-1-x86_64.pk
g.tar.zst' from dciabrin.net : The requested URL returned error: 404
error: failed retrieving file 'mingw-w64-x86_64-ngdevkit-0.2+202302191925-1-x86_64.pkg.tar.zst'
 from dciabrin.net : The requested URL returned error: 404
error: failed retrieving file 'mingw-w64-x86_64-ngdevkit-gngeo-0.8.1+202302191800-1-x86_64.pkg.
tar.zst' from dciabrin.net : The requested URL returned error: 404
warning: too many errors from dciabrin.net, skipping for the remainder of this transaction     
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

This is less than ideal and confusing for the user... I am going to fix the ucrt64 package that was broken lately with the rework of nullsound, and once done I will fix the repository and update the doc to mention the deprecation and the upgrade path.

@dciabrin
Copy link
Owner

The ngdevkit packages should be fixed now, installing the nightly builds should work with:

# pacman -Syy
# pacman -S mingw-w64-ucrt-x86_64-ngdevkit mingw-w64-ucrt-x86_64-ngdevkit-gngeo
resolving dependencies...
looking for conflicting packages...

Packages (2) mingw-w64-ucrt-x86_64-ngdevkit-0.3+202312140915-1  mingw-w64-ucrt-x86_64-ngdevkit-gngeo-0.8.1+202305160925-3

I still need to tweak the package definition to deprecate the old mingw64 version of the package.

Meanwhile, @gabordo or @DeathEngine2 maybe you can try to verify that the commands above work for you?

dciabrin added a commit to dciabrin/ngdevkit-examples that referenced this issue Dec 14, 2023
@gabordo
Copy link

gabordo commented Dec 15, 2023

Yes, it worked for me. Probably I should learn more about how msys2 works and reinstall it when I have a bit more time.

@darknezz19
Copy link

Hello. I'm brand new to msys2. I tried the command you linked but get the fallowing error.

`1234@DESKTOP-RSIRQQV UCRT64 ~
$ pacman -Syy
:: Synchronizing package databases...
clangarm64 418.3 KiB 235 KiB/s 00:02 [###############################] 100%
mingw32 390.4 KiB 229 KiB/s 00:02 [###############################] 100%
mingw64 470.6 KiB 232 KiB/s 00:02 [###############################] 100%
ucrt64 472.7 KiB 241 KiB/s 00:02 [###############################] 100%
clang32 379.0 KiB 210 KiB/s 00:02 [###############################] 100%
clang64 463.6 KiB 523 KiB/s 00:01 [###############################] 100%
msys 486.3 KiB 394 KiB/s 00:01 [###############################] 100%

1234@DESKTOP-RSIRQQV UCRT64 ~
$ pacman -S mingw-w64-ucrt-x86_64-ngdevkit mingw-w64-ucrt-x86_64-ngdevkit-gngeo
error: target not found: mingw-w64-ucrt-x86_64-ngdevkit
error: target not found: mingw-w64-ucrt-x86_64-ngdevkit-gngeo
`

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

4 participants