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

libodbc1 package replaced by libodbc2 and libodbccr2 in newer deb-based distros #7740

Open
SwooshyCueb opened this issue May 11, 2024 · 0 comments
Assignees
Milestone

Comments

@SwooshyCueb
Copy link
Member

Our database plugin deb packages declare libodbc1 as a dependency:

set(CPACK_DEBIAN_${IRODS_PACKAGE_COMPONENT_POSTGRES_NAME_UPPERCASE}_PACKAGE_DEPENDS "${IRODS_PACKAGE_DEPENDENCIES_STRING}, irods-server (= ${CPACK_DEBIAN_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}), unixodbc, libodbc1, odbcinst, odbc-postgresql, postgresql-client, libc6, libgcc-s1, libstdc++6")

set(CPACK_DEBIAN_${IRODS_PACKAGE_COMPONENT_MYSQL_NAME_UPPERCASE}_PACKAGE_DEPENDS "${IRODS_PACKAGE_DEPENDENCIES_STRING}, irods-server (= ${CPACK_DEBIAN_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}), unixodbc, libodbc1, odbcinst, virtual-mysql-client, libc6, libgcc-s1, libstdc++6")

set(CPACK_DEBIAN_${IRODS_PACKAGE_COMPONENT_ORACLE_NAME_UPPERCASE}_PACKAGE_DEPENDS "${IRODS_PACKAGE_DEPENDENCIES_STRING}, irods-server (= ${CPACK_DEBIAN_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}), unixodbc, libodbc1, odbcinst, libc6, libgcc-s1, libstdc++6")

Starting in Debian 12 and Ubuntu 22.04, libodbc1 has been replaced by libodbc2 and libodbccr2. To ease the transition to the new package, a transitional libodbc1 dummy package was added to the apt repositories that declared dependencies on the new packages. However, this transitional package is phased out starting in Debian 13 and Ubuntu 23.10.

Let's add some conditional logic to set the proper dependency declarations. I don't think we need libodbccr2, so just libodbc2 should suffice.

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

No branches or pull requests

1 participant