Bug 2283500

Summary: Directories are missing in RPM database.
Product: [Fedora] Fedora Reporter: Christoph Karl <pampelmuse>
Component: mariadb10.11Assignee: Michal Schorm <mschorm>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: fjanus, hhorak, ljavorsk, mschorm, zmiklank
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: mariadb10.11-10.11.8-1.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-10 01:28:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christoph Karl 2024-05-27 13:20:02 UTC
The following directories are missing in RPM database:
/usr/share/mariadb-server
/usr/share/mariadb-server/groonga
/usr/share/mariadb-server/groonga-normalizer-mysql


Reproducible: Always

Steps to Reproduce:
1. rpm -qf /usr/share/mariadb-server/
file /usr/share/mariadb-server is not owned by any package

Actual Results:  
not owned by any package

Expected Results:  
mariadb-server-10.11.6-3.fc40.x86_64

In spec file about line 1551 please add:
%dir %{_datadir}/%{majorname}-server/
%dir %{_datadir}/%{majorname}-server/groonga-normalizer-mysql/
%dir %{_datadir}/%{majorname}-server/groonga/

Comment 1 Christoph Karl 2024-05-27 13:28:28 UTC
Same for:
/usr/share/mariadb/mroonga/

Comment 2 Michal Schorm 2024-05-27 15:51:51 UTC
I've ran a script on top of the /usr/share to check whether there are more of un-owned files or dirs:

| # Find directories that start with 'mariadb' under /usr/share/
| find /usr/share/ -type d -name 'mariadb*' | while read -r dir; do
|     # For each directory found, recursively find all files and directories
|     find "$dir" -print0 | while IFS= read -r -d '' file; do
|         rpm -qf "$file"	| grep -i -e "not owned"
|     done
| done

but only those four you have found were returned:

|  file /usr/share/mariadb-server is not owned by any package
|  file /usr/share/mariadb-server/groonga is not owned by any package
|  file /usr/share/mariadb-server/groonga-normalizer-mysql is not owned by any package
|  file /usr/share/mariadb/mroonga is not owned by any package

---

Fix pushed into Rawhide:
  https://src.fedoraproject.org/rpms/mariadb10.11/c/16ae5e13dedd1db112a3b1ac5aca202b7ca62bf1?branch=rawhide



Thank you for the report!

Comment 3 Christoph Karl 2024-05-29 07:48:02 UTC
Can you please start a build for rawhide.
Thank you.

Comment 4 Fedora Update System 2024-06-07 14:55:07 UTC
FEDORA-2024-6ea93e629b (galera-26.4.18-1.fc40 and mariadb10.11-10.11.8-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-6ea93e629b

Comment 5 Fedora Update System 2024-06-08 06:52:05 UTC
FEDORA-2024-6ea93e629b has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6ea93e629b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-6ea93e629b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-06-10 01:28:21 UTC
FEDORA-2024-6ea93e629b (galera-26.4.18-1.fc40 and mariadb10.11-10.11.8-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.