Bug 1482192
Summary: | rpmbuild's new macro evaluation is causing nil to disapear | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jiri vanek <jvanek> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | 27 | CC: | ignatenko, kardos.lubos, mjw, packaging-team-maint, pmatilai, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-18 18:26:23 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1443076 |
Description
jiri vanek
2017-08-16 16:28:40 UTC
If you need to pass unexpanded macros as arguments, just escape them as usual: %%{nil}. That's the simplest fix for the cases where macro argument expansion is breaking things. Alternatively you can use %{?1} inside the %files_jre macro, in which case it'd work with both %{nil} and entirely without it. I realize this is a bit of a pain because forces changing some long working macros, but I think it's worth a bit of pain as it makes the macro language saner. Also this case is killed: What I have is: for suffix in %{build_loop} ; do mkdir -p %{buildoutputdir $suffix} pushd %{buildoutputdir $suffix} .... done On top of stopping new package, it stopped any jdk8 updates Erm, how is that for-loop case "killed"? I don't see anything special about that. What's the output you're getting and what are you expecting? As explained in upstream tracker, https://github.com/rpm-software-management/rpm/issues/127, all cases can be workarounded when used proper rpm techniques. |