public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schorm <mschorm@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libiodbc] rawhide: [Fedora 45 Change] Add dependency on shared ODBC driver registration subpackage
Date: Fri, 31 Jul 2026 17:22:43 GMT [thread overview]
Message-ID: <178551856394.1.3530985386196771716.rpms-libiodbc-126893d93592@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libiodbc
Branch : rawhide
Commit : 126893d935924bd4de9e0614738bf4c8868fc210
Author : Michal Schorm <mschorm@redhat.com>
Date : 2026-07-20T02:07:51+02:00
Stats : +6/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libiodbc/c/126893d935924bd4de9e0614738bf4c8868fc210?branch=rawhide
Log:
[Fedora 45 Change] Add dependency on shared ODBC driver registration subpackage
Add 'Requires: odbcinst-generate' so the drop-in snippet mechanism
works on iODBC-only hosts.
The 'odbcinst-generate' subpackage (from unixODBC SRPM) provides:
- 'odbcinst-generate' script that assembles '/etc/odbcinst.ini' from
per-driver drop-in snippets
- RPM file triggers that regenerate the config when drivers are
installed or removed
- Drop-in directories ('/usr/lib/odbc/odbcinst.d/',
'/etc/odbc/odbcinst.d/')
The subpackage is named driver-manager-neutral ('odbcinst-generate',
not 'unixODBC-odbcinst-generate') because both unixODBC and iODBC
are equal consumers.
With this dependency, installing 'libiodbc' (even without 'unixODBC')
ensures that ODBC driver registration via drop-in snippets works
correctly. Since iODBC requires absolute paths for dlopen(),
'odbcinst-generate' resolves bare library names in snippets to
absolute, architecture-correct paths in the generated config.
iODBC multilib limitation:
- iODBC does not support the 'Driver64' key that unixODBC uses for
multilib — its driver loading code ('_iodbcdm_driverload()' in
'iodbc/connect.c') reads only 'Driver', and its dlopen wrapper
('DLL_OPEN' macro in 'iodbcinst/dlf.h') calls 'dlopen()' directly
with no multilib awareness or search-path fallback
- On multilib systems, 'odbcinst-generate' emits both
'Driver = /usr/lib/odbc/...' and 'Driver64 = /usr/lib64/odbc/...';
iODBC sees only 'Driver' (the 32-bit path) and silently ignores
the unknown 'Driver64' key
- This means iODBC always loads the 32-bit driver on multilib hosts,
which is correct for iODBC's typical use case (32-bit applications)
This commit is part of a Fedora 45 Self Contained Change:
https://fedoraproject.org/wiki/Changes/ODBC_stack_modernization
Co-Authored-By: Claude AI <noreply@anthropic.com>
---
diff --git a/libiodbc.spec b/libiodbc.spec
index 377af56..6c4dd93 100644
--- a/libiodbc.spec
+++ b/libiodbc.spec
@@ -6,7 +6,7 @@
Summary: iODBC Driver Manager
Name: libiodbc
Version: 3.52.16
-Release: 5%{?dist}
+Release: 6%{?dist}
License: LGPL-2.0-only OR BSD-3-Clause
URL: http://www.iodbc.org/
VCS: git:%{giturl}.git
@@ -29,6 +29,8 @@ BuildRequires: gcc
BuildRequires: libtool
BuildRequires: make
+Requires: odbcinst-generate
+
%description
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
@@ -120,6 +122,9 @@ rm -rfv %{buildroot}%{_datadir}/libiodbc/samples
%changelog
+* Mon Jul 20 2026 Michal Schorm <mschorm@redhat.com> - 3.52.16-6
+- Add dependency on 'odbcinst-generate' for drop-in driver registration
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.52.16-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-07-31 17:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178551856394.1.3530985386196771716.rpms-libiodbc-126893d93592@fedoraproject.org \
--to=mschorm@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox