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

Fix libuuid dependency problem for openSUSE Tumbleweed RPM #635

Open
logological opened this issue Jun 29, 2022 · 2 comments
Open

Fix libuuid dependency problem for openSUSE Tumbleweed RPM #635

logological opened this issue Jun 29, 2022 · 2 comments

Comments

@logological
Copy link

The installation documentation instructs openSUSE Tumbleweed users to install the official Sozi RPM but to ignore messages about the missing libuuid dependency. It would be better if the RPM didn't have this dependency problem to begin with.

Presumably your .spec file has a line such as

Requires: libuuid

This works on Fedora, but the corresponding package on openSUSE is actually called libuuid1, so it should be as follows:

Requires: libuuid1

You could maintain two separate .spec files, one for Fedora and one for openSUSE. Or you could use a build service such as the openSUSE Build Service (OBS), which can automatically build RPMs for different systems from the same .spec file. In that case you'd just need to wrap the Requires: line above with some tests to check whether a Fedora or openSUSE RPM is being built:

%if 0%{?suse_version} > 1500
Requires: libuuid1
%else
Requires: libuuid
%endif

Incidentally, using OBS will also fix the problem about the missing package signature.

@aumouvantsillage
Copy link
Collaborator

Thanks for the suggestion.

I wish I could apply your solution but I am not the author of the .spec file.
Sozi uses electron-builder to create packages, and I think that electron-builder uses FPM for the RPM target.
I don't know how these tools build the list of dependencies.

@logological
Copy link
Author

This seems to be the same issue as that reported at electron-userland/electron-builder#502 and back-linked from issues on many other projects that use electron-builder. Although the issue is closed, it doesn't seem to be resolved.

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

No branches or pull requests

2 participants