martpie / museeks

🎵 A simple, clean and cross-platform music player
https://museeks.io
MIT License
1.61k stars 195 forks source link

.rpm fail to install on openSUSE Tumbleweed due to `libuuid` #741

Open BoxHezi opened 3 months ago

BoxHezi commented 3 months ago

Problem

OS: openSUSE Tumbleweed

Install museeks with command: sudo zypper install museeks-x86_64.rpm

result

Problem: nothing provides 'libuuid' needed by the to be installed museeks-0.13.1-1.x86_64
 Solution 1: do not install museeks-0.13.1-1.x86_64
 Solution 2: break museeks-0.13.1-1.x86_64 by ignoring some of its dependencies

After a little research, I noticed that in openSUSE TW, libuuid is replaced by libuuid1

S  | Name                 | Summary                       | Type
---+----------------------+-------------------------------+--------
i+ | libuuid-devel        | Development files for libuuid | package
   | libuuid-devel-32bit  | Development files for libuuid | package
   | libuuid-devel-static | Development files for libuuid | package
i  | libuuid1             | Library to generate UUIDs     | package
   | libuuid1-32bit       | Library to generate UUIDs     | package

Fix for openSUSE TW

Edit the electron-builder.yml file and add one section:

rpm:
  depends: ['libuuid1']

Add the above config can fix the issue on openSUSE TW.

the fix is only for openSUSE TW. I am not familiar with other distro using rpm (most likely to cause dependency issue)

martpie commented 3 months ago

Hello! Thank you for the report! Have you been able to rebuild the binary by yourself?

I am kind of in the middle to porting the app to Rust via Tauri for a much lighter app, and there's a lot of new changes in master regarding UI goodies, so I'll ignore this for now, unless you tell me you this is important, and I can figure out how to distribute to you a patched binary.

BoxHezi commented 3 months ago

Hi, thanks for the reply.

Yeah, after editing the yml file, I can rebuild the rpm package and install it without getting warning.

And this is not an important issue. Without building the rpm, the AppImage works fine as well.

Thanks.