[Rpm-maint] [rpm-software-management/rpm] A specfile parser without Turing-Complete side-effects (Discussion #3906)

Kan-Ru Chen notifications at github.com
Tue Sep 9 09:55:05 UTC 2025


> Looking at past commits and executing their contents is certainly surprising behavior. It's entirely possible to have something like rpmautospec without that property, by flipping control around: The not-so-hypothetical rpmautospec replacement needs to determine the package version from the Git commit log (excluding blob contents) and present this information to the spec file—as a macro. Then the dependency on past content goes away (instead there's a dependency on past commit messages).

This is similar to how dpkg does it. The version is extracted from the changelog file and it's the only place a complete version exists. Although the changelog file is the source of truth, tools like [gdp dch](https://honk.sigxcpu.org/piki/projects/git-buildpackage/) can help generate changelog entries from git commit messages (it seems there's even some support for rpm).

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

Message ID: <rpm-software-management/rpm/repo-discussions/3906/comments/14349826 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250909/4dada6f0/attachment.htm>


More information about the Rpm-maint mailing list