Changes between Initial Version and Version 1 of Ticket #3532
- Timestamp:
- 09/27/18 23:08:52 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3532 – Description
initial v1 10 10 %endif 11 11 }}} 12 The simpler construct `rtems-tools-common-1.cfg` of:12 The simpler construct in `rtems-tools-common-1.cfg` of: 13 13 {{{ 14 14 %ifos win32 mingw ming32 … … 18 18 %endif 19 19 }}} 20 is easier to manage as the `%ifos` logic can always return `True` however the `%else` pat ch also need to be followed and this could break the logic in a configuration file. Yes, the example is not about sources or patches however it shows what could be used.21 I do not think adding logic to the configuration file parsing will help, for example consider this case:20 is easier to manage as the `%ifos` logic can always return `True` however the `%else` path also need to be followed and this could break the logic in a configuration file. Yes, the example is not about sources or patches however it shows what could be used. 21 I do not think creating a new variable such as `%{download_only}`and adding logic to the configuration file will help, for example: 22 22 {{{ 23 %if %{ _build_os} == freebsd || %{_build_os} == darwin23 %if %{download_only} || %{_build_os} == freebsd || %{_build_os} == darwin 24 24 %patch add gcc foobar-bsd.patch 25 25 %else … … 27 27 %endif 28 28 }}} 29 We require the logic to follow the `%if True` path andthe `%else` path.29 We require the logic to follow the `%if True` path '''and''' the `%else` path.