public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/freetds] rawhide: [Fedora 45 Change] Ship drop-in snippet for ODBC driver self-registration
@ 2026-07-29 10:50 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-29 10:50 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/freetds
            Branch : rawhide
            Commit : 2bc4071fb03c5721b5e7181df2134a7621f1c2d9
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-29T12:44:41+02:00
            Stats  : +15/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/freetds/c/2bc4071fb03c5721b5e7181df2134a7621f1c2d9?branch=rawhide

            Log:
            [Fedora 45 Change] Ship drop-in snippet for ODBC driver self-registration

Install '10-freetds.ini' to '/usr/lib/odbc/odbcinst.d/' so the
unixODBC file trigger automatically registers the driver in
'/etc/odbcinst.ini'. Uses bare library name 'libtdsodbc.so'
resolved via the compiled-in MODULEDIR.

Snippet directory layout:
- Snippets are installed to '%{_prefix}/lib/odbc/odbcinst.d/' rather
  than directly to '%{_prefix}/lib/odbc/' to separate configuration
  from content — on multilib systems, '%{_prefix}/lib/odbc/' may also
  contain 32-bit driver '.so' files, and the RPM file triggers that
  watch the snippet directory would fire spuriously on '.so' installs
- Both '%{_prefix}/lib/odbc/' and '%{_prefix}/lib/odbc/odbcinst.d/'
  are co-owned by this package per Fedora directory ownership guidelines

Co-Authored-By: Claude AI <noreply@anthropic.com>

This commit is part of a Fedora 45 Self Contained Change:
  https://fedoraproject.org/wiki/Changes/ODBC_stack_modernization

---
diff --git a/10-freetds.ini b/10-freetds.ini
new file mode 100644
index 0000000..8d0cd9b
--- /dev/null
+++ b/10-freetds.ini
@@ -0,0 +1,3 @@
+[FreeTDS]
+Description = Free Sybase & MS SQL Driver
+Driver      = libtdsodbc.so

diff --git a/freetds.spec b/freetds.spec
index 852e39d..eccb6b7 100644
--- a/freetds.spec
+++ b/freetds.spec
@@ -3,13 +3,14 @@
 Name: freetds
 Summary: Implementation of the TDS (Tabular DataStream) protocol
 Version: 1.4.23
-Release: 6%{?dist}
+Release: 7%{?dist}
 # Automatically converted from old format: LGPLv2+ and GPLv2+ - review is highly recommended.
 License: LGPL-2.0-or-later AND GPL-2.0-or-later
 URL: http://www.freetds.org/
 
 Source0: https://www.freetds.org/files/stable/%{name}-%{version}.tar.bz2
 Source1: freetds-tds_sysdep_public.h
+Source2: 10-freetds.ini
 
 Patch0: freetds-1.4.23-nettle4.patch
 
@@ -121,6 +122,10 @@ mv -f samples/unixodbc.freetds.driver.template \
 mkdir samples-odbc
 mv -f samples/*odbc* samples-odbc
 
+# ODBC driver registration drop-in snippet
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/odbc/odbcinst.d
+install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/lib/odbc/odbcinst.d/
+
 #  deinstall it for our own way...
 mv -f $RPM_BUILD_ROOT%{_docdir}/%{name} docdir
 find docdir -type f -print0 | xargs -0 chmod -x
@@ -143,6 +148,9 @@ find docdir -type f -print0 | xargs -0 chmod -x
 %{_libdir}/*.so.*
 %dir %{_libdir}/odbc
 %{_libdir}/odbc/libtdsodbc.so
+%dir %{_prefix}/lib/odbc
+%dir %{_prefix}/lib/odbc/odbcinst.d
+%{_prefix}/lib/odbc/odbcinst.d/10-freetds.ini
 %doc samples-odbc
 %config(noreplace) %{_sysconfdir}/*.conf
 %{_mandir}/man5/*
@@ -161,6 +169,9 @@ find docdir -type f -print0 | xargs -0 chmod -x
  
 
 %changelog
+* Mon Jul 20 2026 Michal Schorm <mschorm@redhat.com> - 1.4.23-7
+- Ship drop-in snippet for ODBC driver self-registration
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.23-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-29 10:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-29 10:50 [rpms/freetds] rawhide: [Fedora 45 Change] Ship drop-in snippet for ODBC driver self-registration Michal Schorm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox