MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

libelf / libelf-devel not found via pacman -S

Open griffini opened this issue 2 years ago • 6 comments

Description / Steps to reproduce the issue

Installed msys2-x86_64_20230718.exe on a clean Windows 10 machine.

pacman -S libelf and pacman -S libelf-devel give a target not found error.

However, I can download the libelf and libelf-devel packages from repo.msys2.org/msys/x86_64 and install manually using pacman -U

Expected behavior

pacman -S libelf and pacman -S libelf-devel will find and install the relevant packages.

Actual behavior

pacman -S libelf and pacman -S libelf-devel give a target not found error.

However, I can download the libelf and libelf-devel packages from repo.msys2.org/msys/x86_64 and install manually using pacman -U

Other packages are found and installed just fine.

Verification

  • [X] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)

Windows Version

MSYS_NT-10.0-19044

Are you willing to submit a PR?

No response

griffini avatar Jul 18 '23 11:07 griffini

The msys2 libelf package was removed in this commit https://github.com/msys2/MSYS2-packages/commit/4888c12c7f6de6ff36c3bbb47ede6490337cd3d6. But you can use the mingw libelf package.

Biswa96 avatar Jul 18 '23 13:07 Biswa96

Ah, thanks. I didn't spot that. That's a shame - the commit mentions upstream is gone and now that I check indeed it seems to be.

Okay, I had some problems with using the mingw-libelf instead, but I'll take another look to see if I can rework my code...

Thanks for the background info!

griffini avatar Jul 18 '23 14:07 griffini

That's a shame - the commit mentions upstream is gone

I think mentioning it as a cause of removal (in the commit message) is orthogonal to having no users (the real cause) and misleads the reader quite a bit.

Otherwise the MINGW version should be removed as well: https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-libelf/PKGBUILD#L12

... which it had been not.

sskras avatar Jul 18 '23 17:07 sskras

Otherwise the MINGW version should be removed as well: https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-libelf/PKGBUILD#L12

... which it had been not.

I likely missed back then that the mingw version exists and points to a third party mirror of the old tarball.

lazka avatar Jul 19 '23 07:07 lazka

NP. One build of the package is probably enough (given it works fine:)

sskras avatar Jul 19 '23 07:07 sskras

PS. Later yesterday I learnt that there are different libelf coming from elfutils and hosted by SourceWare: https://sourceware.org/git/?p=elfutils.git;a=tree;f=libelf

No ideas if these are compatible or even doing the same job.

sskras avatar Jul 19 '23 07:07 sskras