[Rpm-maint] [rpm-software-management/rpm] Prevent automatic garbage collection in git based %autosetup macros (#1336)

Miro Hrončok notifications at github.com
Wed Aug 19 12:43:17 UTC 2020


The garbage collection happens in background, based on heuristic.
This means that sometimes, when subsequent commands run,
some files might disappear in the middle of an action.

For example, when a find is used in %prep:

    + /usr/bin/git commit -m ... --author 'rpm-build <rpm-build>'
    Auto packing the repository in background for optimum performance.
    See "git help gc" for manual housekeeping.
    ...
    + find ...
    find: './.git/objects/47': No such file or directory
    find: './.git/objects/46': No such file or directory
    find: './.git/objects/49': No such file or directory
    find: './.git/objects/4d': No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.xxxxxx (%prep)
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Prevent automatic garbage collection in git based %autosetup macros

-- File Changes --

    M macros.in (1)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1336.patch
https://github.com/rpm-software-management/rpm/pull/1336.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/1336
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200819/a4e65bd6/attachment.html>


More information about the Rpm-maint mailing list