[Rpm-maint] [rpm-software-management/rpm] Provide function for $optflags manipulation (#814)

marxin notifications at github.com
Tue Aug 13 13:58:34 UTC 2019


As the follow up of https://github.com/rpm-software-management/rpm/pull/813
I would like to have rpm macros that will do operations on `%optflags`:

Example:
- `%filter-out-optflags '-flto=auto'`
- `%append-if-to-optflags '-flto=auto' -ffat-lto-objects`

I found the example how currently we do it e.g. in MozillaFirefox:
```
%{expand:%%global optflags %(echo "%optflags"|sed -e s/i586/i686/) -march=i686 -mtune=generic}
```

Which is quite ugly and I bet multiple packages suffer from the same issue. Gentoo has a reasonable API for that:
https://devmanual.gentoo.org/eclass-reference/flag-o-matic.eclass/index.html

@pmatilai Is it realistic to come up with the functionality?

-- 
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/issues/814
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190813/4c0fa290/attachment-0001.html>


More information about the Rpm-maint mailing list