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

Generate dependencies for referenced shared libs #21

Closed

Conversation

Woellchen
Copy link

@Woellchen Woellchen commented Oct 22, 2021

When packaging python packages that contain shared libraries, they
usually link against other external shared libraries. This creates a
runtime dependency on other Debian packages.
This change will scan all libraries for such dependencies and
generate the Debian package dependencies for them.

Example with libvirt-python:
before: Depends: python3 (<< 3.8), python3 (>= 3.7~), python3:any
after: Depends: libacl1, libapparmor1, libattr1, libaudit1, libavahi-client3, libavahi-common3, libblkid1, libc6, libcap-ng0, libcom-err2, libcurl3-gnutls, libdbus-1-3, libdevmapper1.02.1, libffi6, libgcc1, libgcrypt20, libgmp10, libgnutls30, libgpg-error0, libgssapi-krb5-2, libhogweed4, libicu63, libidn2-0, libk5crypto3, libkeyutils1, libkrb5-3, libkrb5support0, libldap-2.4-2, liblz4-1, liblzma5, libnettle6, libnghttp2-14, libnl-3-200, libnl-route-3-200, libnuma1, libp11-kit0, libpcre3, libpsl5, librtmp1, libsasl2-2, libselinux1, libssh2-1, libstdc++6, libsystemd0, libtasn1-6, libudev1, libunistring2, libuuid1, libvirt0, libxml2, libyajl2, python3 (<< 3.8), python3 (>= 3.7~), python3:any, zlib1g

When packaging python packages that contain shared libraries, they
usually link against other external shared libraries. This creates a
runtime dependency on other Debian packages.
This change will scan all libraries for such dependencies and
generate the Debian package dependencies for them.
@fyhertz fyhertz deleted the branch upciti:master October 6, 2022 15:08
@fyhertz fyhertz closed this Oct 6, 2022
@Woellchen
Copy link
Author

Hello! Any comment why this fix was rejected?

@fyhertz
Copy link
Contributor

fyhertz commented Oct 6, 2022

Hello! Looks like the PR was closed automatically when I deleted the master branch :/ I'm trying to clean up the project a little bit.

I haven't really looked into your fix but I don't get why dpkg-shlibdeps does not find the dependencies that ldd finds. I need to look into it.

I will leave your PR open in the meantime !

@fyhertz
Copy link
Contributor

fyhertz commented Oct 6, 2022

Mmmm can you edit your MR to refer to main instead of master?

@Woellchen
Copy link
Author

Hey, thanks for your quick response! Sure, I will rebase my changes onto main

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

Successfully merging this pull request may close these issues.

2 participants