REPRODUCIBILITY (% or how often): always after changing harbour-<app>.yaml
BUILD ID = OS VERSION (Settings > About product): SDK 3.8.3
REGRESSION: No
DESCRIPTION:
When the RPM spec
file is re-generated after any change to an app’s yaml
config file, the custom # >> macros
section is cleared. I use this section as per the Harbour FAQ to appease the Harbour validator script when using bundled QML modules.
This means I have to “build, fix spec, build again” instead of just “build once” after (e.g.) updating the version number in yaml
.
STEPS TO REPRODUCE:
- open a project in QtCreator that bundles QML modules, e.g. https://github.com/ichthyosaurus/harbour-file-browser
- change anything in the app’s
rpm/harbour-<app>.yaml
file, e.g.Release:
- build the app
- notice that RPM validation fails
- re-add
%define __provides_exclude_from ^%{_datadir}/.*$
to thespec
file - build again
EXPECTED RESULT:
spectacle
should never change custom sections like # >> macros
. I don’t know if the bug also affects other sections like # >> setup
.
ACTUAL RESULT:
Everything in between # >> macros
and # << macros
is deleted when re-generating the spec file.