Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly identify configuration files in RPM spec files #202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 juro.bystricky@intel.com

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 <juro.bystricky@intel.com>
@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