Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-131835

glibc: Adapt patch-git to RPM versions that do not put directories into the patches table

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • Low
    • Patch
    • rhel-pt-c-libs
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      Some RPM versions do not put a directory path into the patches Lua table. The following change is required to adapt to that:

      diff --git a/patch-git.lua b/patch-git.lua
      index 04cb0612..c975eb75 100644
      --- a/patch-git.lua
      +++ b/patch-git.lua
      @@ -1910,7 +1910,7 @@ if rpm then
             if patches_log ~= '' then
                local fp = assert(io.open(patches_log, 'w+'))
                for i=1,#patches do
      -            local pname = assert(string.match(patches[i], '.*/([^/]+)$'))
      +            local pname = assert(string.match(patches[i], '([^/]+)$'))
                   fp:write('Patch' .. i .. ': ' .. pname .. '\n')
                end
                assert(fp:close())
      

              glibc-bugzilla Platform Tools - Libraries Bot
              fweimer@redhat.com Florian Weimer
              Platform Tools - Libraries Bot Platform Tools - Libraries Bot
              qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: