[Rpm-maint] [rpm-software-management/rpm] Support sed 'in-place' replacement on BSD. (#953)

Andreas Scherer notifications at github.com
Wed Nov 27 13:50:37 UTC 2019


BSD's sed _requires_ an `extension` for the `-i` option, even an 'empty' (`-i ""`) extension to suppress creation of a backup for 'in-place' editing, while GNU sed's `-i` defaults to 'no backup' without an express `suffix`. With `%{__sed_i}` it should be easier to write portable specfiles for both GNU/Linux and BSD based systems. The latter should simply redefine
```
   %__sed_i /bin/sed -i ""
```
in a local macro file or
```
   %global __sed_i /bin/sed -i ""
```
in a specfile.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Support sed 'in-place' replacement on BSD.

-- File Changes --

    M macros.in (1)

-- Patch Links --

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


More information about the Rpm-maint mailing list