[Rpm-maint] [rpm-software-management/rpm] Convert %prep into a regular build scriptlet (PR #2730)

Panu Matilainen notifications at github.com
Mon Oct 23 09:23:12 UTC 2023


This is a fun little series. Details in the commit messages, but briefly:
- Implement support for auxiliary macros, ie macros implemented in C outside the macro engine itself. Some renames + API exports required for this.
- Turn the deprecated %patchN into a hard error, this is the sacrificial lamb of this change
- Finally, convert %prep into a regular build scriptlet :partying_face: 
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Rename MacroBuf to rpmMacroBuf for exporting
  * Rename mbErr() and mbAppend*() to rpmMacroBuf*() for exporting
  * Add support for defining auxiliary macro functions
  * Turn legacy %patchN syntax into a hard error
  * Convert %prep into a regular build scriptlet
  * Drop now unnecessary spec parse hack, no functional changes

-- File Changes --

    M build/parsePrep.c (104)
    M build/parseSpec.c (15)
    M build/rpmbuild_internal.h (3)
    M build/spec.c (1)
    M include/rpm/rpmmacro.h (50)
    M rpmio/macro.c (200)
    M tests/data/SPECS/hello2-suid.spec (2)
    M tests/rpmbuild.at (5)
    M tests/rpmspec.at (3)

-- Patch Links --

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

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

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


More information about the Rpm-maint mailing list