public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/unixODBC] rawhide: [bugfix] Use 'mkdir -p' for ODBC plugin directory creation
@ 2026-07-29 11:11 Michal Schorm
0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-29 11:11 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/unixODBC
Branch : rawhide
Commit : 78ea12b1564defb8a9b051ccf8a1cd56aab784f1
Author : Michal Schorm <mschorm@redhat.com>
Date : 2026-07-29T12:39:21+02:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/unixODBC/c/78ea12b1564defb8a9b051ccf8a1cd56aab784f1?branch=rawhide
Log:
[bugfix] Use 'mkdir -p' for ODBC plugin directory creation
On i686, '%{_libdir}' resolves to '/usr/lib' — the same path as
'%{_prefix}/lib'. When other mkdir calls in %install already create
'/usr/lib/odbc/' (e.g. for drop-in snippet directories), the bare
'mkdir' here fails with "File exists" because it lacks '-p'.
Switching to 'mkdir -p' makes the directory creation idempotent
regardless of the order of mkdir calls and whether '%{_libdir}'
coincides with '%{_prefix}/lib'.
Co-Authored-By: Claude AI <noreply@anthropic.com>
---
diff --git a/unixODBC.spec b/unixODBC.spec
index c021f97..c9e9a55 100644
--- a/unixODBC.spec
+++ b/unixODBC.spec
@@ -83,7 +83,7 @@ install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
%endif
# Directory for ODBC connector/driver plugins
-mkdir $RPM_BUILD_ROOT%{_libdir}/odbc
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/odbc
# copy text driver documentation into main doc directory
# currently disabled because upstream no longer includes text driver
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-29 11:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-29 11:11 [rpms/unixODBC] rawhide: [bugfix] Use 'mkdir -p' for ODBC plugin directory creation Michal Schorm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox