spec: Exclude /usr/lib/debug/.build-id explicitly 22/301622/2 accepted/tizen/7.0/base/20231122.051819
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 17 Nov 2023 05:58:31 +0000 (14:58 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 21 Nov 2023 02:45:46 +0000 (11:45 +0900)
The only %exclude isn't enough for /usr/lib/debug directory at the
current rpm version 4.14.1. Specifiy %dir and .build-id directory to
make main package drop the directory.

It is unclear which situation blames the .build-id as shown in the
previous patch. And it seems enough that just removing the whole %exclude
clause for dropping debug info. However, respect the previous endeavors
that trying to exclude the .build-id from packaging.

Change-Id: I47037e1a3ef824435cc116960e48b0382877d5c9
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
packaging/shadow-utils.spec

index 6cbf1fc..22b5852 100644 (file)
@@ -143,7 +143,7 @@ rm %{buildroot}/%{_sbindir}/vipw
 %{_sbindir}/useradd
 %{_sbindir}/userdel
 %{_sbindir}/usermod
-%exclude /usr/lib/debug
+%exclude %dir /usr/lib/debug/.build-id
 %exclude /bin/login
 %exclude %{_sbindir}/nologin