[Rpm-maint] [rpm-software-management/rpm] Honor _enable_debug_packages when processing files (PR #3061)
Simo Sorce
notifications at github.com
Wed Apr 24 14:45:05 UTC 2024
Ok here is an example, apply this diff to https://src.fedoraproject.org/rpms/pkcs11-provider
```
$ git diff
diff --git a/pkcs11-provider.spec b/pkcs11-provider.spec
index b254afa..993d353 100644
--- a/pkcs11-provider.spec
+++ b/pkcs11-provider.spec
@@ -1,4 +1,5 @@
#Enable gpg signature verification
+%global debug_package %{nil}
%bcond_with gpgcheck
Name: pkcs11-provider
@@ -61,6 +62,8 @@ autoreconf -fi
%install
%make_install
+mkdir -p %{buildroot}/usr/lib/debug
+touch %{buildroot}/usr/lib/debug/test.txt
%check
@@ -74,6 +77,15 @@ make check || if [ $? -ne 0 ]; then cat tests/*.log; exit 1; fi;
%doc README.md
%{_libdir}/ossl-modules/pkcs11.so
+%package debuginfo
+Summary: debuginfo
+
+%description debuginfo
+description
+
+%files debuginfo
+/usr/lib/debug/test.txt
+
%changelog
%autochangelog
```
If you try to build you will get this error instead of test.txt package in debuginfo:
```
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/simo5/rpmbuild/BUILDROOT/pkcs11-provider-0.3-3.fc41.x86_64
error: Installed (but unpackaged) file(s) found:
/usr/lib/debug/test.txt
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/lib/debug/test.txt
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3061#issuecomment-2075123240
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3061/c2075123240 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240424/66c965ba/attachment.html>
More information about the Rpm-maint
mailing list