Skip to content

Commit fa65e2c

Browse files
Fix option macro negation parsing and %if directive preservation
1 parent 920d81e commit fa65e2c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

dist/build.changes

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
-------------------------------------------------------------------
2+
Wed Aug 20 11:09:13 UTC 2025 - Mohamed Rekiba <[email protected]>
3+
4+
Fix option macro negation parsing and %if directive preservation
5+
6+
This commit fixes two related issues with RPM spec parsing:
7+
8+
1. Option macro negation pattern recognition:
9+
- Added support for negated option macros like %{-m:0} with negation
10+
- Modified expandmacros() to properly detect negation patterns
11+
- Sets correct mactest value for negation handling
12+
13+
2. RPM directive preservation in multi-line expansions:
14+
- Fixed splitexpansionresult() escaping %if/%endif directives
15+
- Added pattern matching to preserve RPM control directives
16+
- Prevents breaking %if/%endif conditional logic
17+
18+
The fixes enable proper parsing of complex option macro expressions
19+
within %if conditionals inside macro definitions.
20+
21+
Resolves: syntax error in expression parsing issues
22+
Tests: All existing tests pass, enhanced test documentation
23+
124
-------------------------------------------------------------------
225
Sun Aug 17 07:15:00 UTC 2025 - Mohamed Rekiba <[email protected]>
326

0 commit comments

Comments
 (0)