[Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

Florian Festi notifications at github.com
Tue Sep 5 11:00:18 UTC 2023


as far as possible. This allows setting these tags during the build using the dynamic spec feature.

Move

copyTagsDuringParse
requiredTags
optionalTags
isMemberInEntry()
checkForValidArchitectures()
checkForRequired()
checkForDuplicates()
fillOutMainPackage()
copyInheritedTags()

from build/parsePreamble.c to build/parseSpec.c

Use an already existing main package in parsePreamble()

New function finalizeSourceHeader() to move some initialization after build.

Add RPMSPEC_DONTFINALIZE flag to delay package finialization after the build in rpmbuild. rpmspec and API parsing without the flag still finializes the packages right away.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2646

-- Commit Summary --

  * Move checks and package initialization after build

-- File Changes --

    M build/parsePreamble.c (221)
    M build/parseSpec.c (317)
    M include/rpm/rpmspec.h (1)
    M rpmbuild.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2646.patch
https://github.com/rpm-software-management/rpm/pull/2646.diff

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

Message ID: <rpm-software-management/rpm/pull/2646 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230905/617da01d/attachment.html>


More information about the Rpm-maint mailing list