[Rpm-maint] [rpm-software-management/rpm] Migrate test-suite macro configuration out of root's ~/.rpmmacros (PR #3524)

Panu Matilainen notifications at github.com
Fri Jan 17 08:16:53 UTC 2025


@pmatilai commented on this pull request.



> @@ -61,7 +63,10 @@ RUN rm -f /usr/lib/rpm/macros.d/macros.transaction_ima
 RUN dnf -y --enablerepo=updates install "sequoia-sq >= 1.0"
 RUN dnf clean all
 
-RUN echo "%_dbpath $(rpm --eval '%_dbpath')" > /root/.rpmmacros
+ARG PREFIX
+# Make sure the built rpm find the system db (for shell usage)
+RUN mkdir -p ${PREFIX}/etc/rpm
+RUN echo "%_dbpath $(rpm --eval '%_dbpath')" > ${PREFIX}/etc/rpm/macros.db

But okay, dropping the _dbpath thing is fine by me. And that means we don't actually need any of these Dockerfile changes. Configurable prefix has potential use-cases but its not interesting to me just now.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3524#discussion_r1919722228
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3524/review/2558223104 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250117/bd9112d4/attachment-0001.htm>


More information about the Rpm-maint mailing list