[Rpm-maint] [rpm-software-management/rpm] Add %postbuild section / Allow dynamic sub packages (#1239)

Florian Festi notifications at github.com
Mon May 25 09:53:17 UTC 2020


This is a POC for the new dynamic sub package feature. It add a %postbuild (better names welcome) section that is not expanded during regular Spec parsing. It is fed to the spec parser after the build scripts have run. This allows to create sub packages based on the content of the buildroot.

There are still areas that require improvement: The line numbers and filename for the section should probably look more like we are parsing the spec file itself.

You currently cannot put the main package / initial preamble into the %postbuild section. This requires rethinking what kind of processing is done during (initial) build and how this affects other users of rpmSpecParse.


You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add pushStrOFI() to parseSpec
  * Allow reading lines of spec file raw
  * Allow using PART_EMPTY as the beginning of a parse pass
  * Add suppport for %postbuild spec section

-- File Changes --

    M build/build.c (3)
    M build/parseSpec.c (238)
    M build/rpmbuild_internal.h (7)
    M build/spec.c (3)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1239
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200525/f05c12d1/attachment.html>


More information about the Rpm-maint mailing list