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/mariadb-connector-odbc] rawhide: [Fedora 45 Change] Ship drop-in snippet for ODBC driver self-registration
Date: Wed, 29 Jul 2026 11:45:39 GMT	[thread overview]
Message-ID: <178532553997.1.9939005569083135939.rpms-mariadb-connector-odbc-a26484e0a709@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mariadb-connector-odbc
            Branch : rawhide
            Commit : a26484e0a709b5b522da73ec763181115e5c5759
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-20T02:29:59+02:00
            Stats  : +13/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/mariadb-connector-odbc/c/a26484e0a709b5b522da73ec763181115e5c5759?branch=rawhide

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

Install '10-mariadb.ini' to '/usr/lib/odbc/odbcinst.d/' so
the unixODBC file trigger automatically registers the driver
in '/etc/odbcinst.ini'. Uses bare library name 'libmaodbc.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-mariadb.ini b/10-mariadb.ini
new file mode 100644
index 0000000..88d3cfa
--- /dev/null
+++ b/10-mariadb.ini
@@ -0,0 +1,3 @@
+[MariaDB]
+Description = ODBC for MariaDB
+Driver      = libmaodbc.so

diff --git a/mariadb-connector-odbc.spec b/mariadb-connector-odbc.spec
index f13ac1f..0ee87ee 100644
--- a/mariadb-connector-odbc.spec
+++ b/mariadb-connector-odbc.spec
@@ -5,10 +5,11 @@
 
 Name:           mariadb-connector-odbc
 Version:        3.2.8
-Release:        5%{?with_debug:.debug}%{?dist}
+Release:        6%{?with_debug:.debug}%{?dist}
 Summary:        The MariaDB Native Client library (ODBC driver)
 License:        LGPL-2.1-or-later
 Source:         https://archive.mariadb.org/connector-odbc-%{version}/%{name}-%{version}-src.tar.gz
+Source1:        10-mariadb.ini
 Url:            https://mariadb.org/en/
 # Online documentation can be found at: https://mariadb.com/kb/en/library/mariadb-connector-odbc/
 
@@ -63,6 +64,9 @@ cmake -B %_vpath_builddir -N -LAH
 %install
 %cmake_install
 
+# ODBC driver registration drop-in snippet
+mkdir -p %{buildroot}%{_prefix}/lib/odbc/odbcinst.d
+install -m644 %{SOURCE1} %{buildroot}%{_prefix}/lib/odbc/odbcinst.d/
 
 
 %files
@@ -76,6 +80,11 @@ cmake -B %_vpath_builddir -N -LAH
 # Example configuration file for UnixODBC
 %{_pkgdocdir}/maodbc.ini
 
+# ODBC driver registration drop-in snippet
+%dir %{_prefix}/lib/odbc
+%dir %{_prefix}/lib/odbc/odbcinst.d
+%{_prefix}/lib/odbc/odbcinst.d/10-mariadb.ini
+
 %files    devel
 %dir %{_includedir}/mariadb/
 %{_includedir}/mariadb/sqlmariadb.h

                 reply	other threads:[~2026-07-29 11:45 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=178532553997.1.9939005569083135939.rpms-mariadb-connector-odbc-a26484e0a709@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