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

Add libselinux.so.1 to package allow list #3661

Merged
merged 3 commits into from
Aug 20, 2020
Merged

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Aug 10, 2020

This PR inserts libselinux.so.1 into the inclusion list for cx_Freeze (normally it would be excluded as living in /lib instead of /usr/lib), because some distros (Arch) don't use SELinux, and the library can't be relied upon to be present on those systems.

The AppImage developers reached the same conclusion ~ 2 years ago, and stopped excluding libselinux.so.1 from AppImage packaging with the official tools as well. (See AppImageCommunity/pkg2appimage#83)

  • Also, adds a log.ERROR level message if any of the files referenced in the ldd output somehow can't be found when packaging. (Took that out in favor of moving the os.path.exists check earlier in the logic.)

Fixes #2278

Some distros (Arch) don't use SELinux, so it won't be present on those
systems.

- Also, log an error if any file referenced by `ldd` as a dependency
  somehow can't be found when packaging.
@ferdnyc ferdnyc added OS:Linux Issues specific to the Linux operating system 📦 packaging An issue or PR related to the official package builds labels Aug 10, 2020
@ferdnyc ferdnyc changed the title Add libselinux.so.1 to pacakge allow list Add libselinux.so.1 to package allow list Aug 10, 2020
@ferdnyc
Copy link
Contributor Author

ferdnyc commented Aug 10, 2020

GitLab builder says:

copying /lib/x86_64-linux-gnu/libselinux.so.1 -> build/exe.linux-x86_64-3.4/libselinux.so.1

So, that should hopefully be that. (Assuming it doesn't break any distros.)

@ferdnyc
Copy link
Contributor Author

ferdnyc commented Aug 20, 2020

Merging this, it should be pretty safe.

@ferdnyc ferdnyc merged commit 4608d43 into develop Aug 20, 2020
@ferdnyc ferdnyc deleted the package-with-libselinux branch August 20, 2020 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS:Linux Issues specific to the Linux operating system 📦 packaging An issue or PR related to the official package builds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot start appimage
1 participant