Skip to content

Conversation

jurobystricky
Copy link
Contributor

In RPM spec files it is desirable to prefix configuration files with "%config"
in order to preserve/save any user modifications during RPM upgrade.

Fix sgx-ra-service.spec:
The spec file attempts to prefix "/etc/rad.conf" with prefix %config.
There is no /etc/rad.conf file being packaged. The configuration file
that is actually packaged is "/etc/mpa_registration.conf".

Fix sgx-pck-id-retrieval-tool.spec
The spec file attempts to prefix "/etc/rad.conf" with prefix %config.
There is no /etc/rad.conf file being packaged. The config file we actually
want to prefix with %config is "network_setting.conf". Although this file
is distributed, it is not listed in "%{_specdir}/list-%name".
"%{_specdir}/list-%name" only contains the name of the installation folder
"%{_install_path}". It is unclear if this was intended, most likely not.
Hence we cannot use "sed" for prefixing. Instead of mdifying a presumably
existing line with "sed" we simply append "%{_specdir}/list-%name" with the
desired line.

Signed-off-by: Juro Bystricky [email protected]

In RPM spec files it is desirable to prefix configuration files with "%config"
in order to preserve/save any user modifications during RPM upgrade.

Fix sgx-ra-service.spec:
The spec file attempts to prefix "/etc/rad.conf" with prefix %config.
There is no /etc/rad.conf file being packaged. The configuration file
that is actually packaged is "/etc/mpa_registration.conf".

Fix sgx-pck-id-retrieval-tool.spec
The spec file attempts to prefix "/etc/rad.conf" with prefix %config.
There is no /etc/rad.conf file being packaged. The config file we actually
want to prefix with %config is "network_setting.conf". Although this file
is distributed, it is not listed in "%{_specdir}/list-%name".
"%{_specdir}/list-%name" only contains the name of the installation folder
"%{_install_path}". It is unclear if this was intended, most likely not.
Hence we cannot use "sed" for prefixing. Instead of mdifying a presumably
existing line with "sed" we simply append "%{_specdir}/list-%name" with the
desired line.

Signed-off-by: Juro Bystricky <[email protected]>
@llly llly self-assigned this Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants