[Rpm-maint] [rpm-software-management/rpm] Add a man page for RPM dependency generators (PR #3957)
Panu Matilainen
notifications at github.com
Thu Sep 25 10:06:34 UTC 2025
@pmatilai commented on this pull request.
> + This is the recommended protocol for newly written generators.
+
+ Added: 4.20.0
+
+By default, the *simple* protocol is used. To enable the *multifile* protocol
+for all generators of the file attribute _NAME_, define the following macro:
+
+ *%\_\_*_NAME_*_protocol multifile*
+
+Unlike the path _REGEX_ in file attributes, generators receive filenames with
+the *%{buildroot}* prefix so that they can access the actual file contents on
+disk.
+
+Due to backwards compatibility, generators must always consume all of stdin and
+not make any assumptions about the number of files passed, regardless of the
+protocol used.
The stdin consumption is part of the protocol though, not just backwards compatibility. I'd change this to:
Generators must always consume all of stdin. For backwards compatibility, generators should not make any assumptions about the number of files passed, regardless of the protocol used.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3957#pullrequestreview-3266874839
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3957/review/3266874839 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250925/d9109fe2/attachment.htm>
More information about the Rpm-maint
mailing list