You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Robert Fabisiak (JIRA)" <ji...@apache.org> on 2018/07/13 07:01:00 UTC
[jira] [Updated] (KAFKA-7159) mark configuration files in
confluent-kafka RPM SPEC file
[ https://issues.apache.org/jira/browse/KAFKA-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Fabisiak updated KAFKA-7159:
-----------------------------------
Description:
All configuration files in kafka RPM SPEC file should be marked with %config prefix in %files section.
This would prevent overwrites during install/upgrade and uninstall operations
[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/rpm_packaging_guide/index#files]
It's especially important to save configuration during package upgrades.
Section to change in SPEC file:
{code:java}
%files
%config(noreplace) %{_sysconfdir}/kafka/*.conf
%config(noreplace) %{_sysconfdir}/kafka/*.properties
{code}
It would also be good to mark documentation files with %doc
was:
All configuration files in confluent-kafka-<scala_version> RPM SPEC file should be marked with %config prefix in %files section.
This would prevent overwrites during install/upgrade and uninstall operations
[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/rpm_packaging_guide/index#files]
It's especially important to save configuration during package upgrades.
Section to change in SPEC file:
{code:java}
%files
%config(noreplace) %{_sysconfdir}/kafka/*.conf
%config(noreplace) %{_sysconfdir}/kafka/*.properties
{code}
It would also be good to mark documentation files with %doc
> mark configuration files in confluent-kafka RPM SPEC file
> ---------------------------------------------------------
>
> Key: KAFKA-7159
> URL: https://issues.apache.org/jira/browse/KAFKA-7159
> Project: Kafka
> Issue Type: Improvement
> Components: packaging
> Affects Versions: 1.1.0
> Environment: RHEL7
> Reporter: Robert Fabisiak
> Priority: Major
> Labels: rpm
>
> All configuration files in kafka RPM SPEC file should be marked with %config prefix in %files section.
> This would prevent overwrites during install/upgrade and uninstall operations
> [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/rpm_packaging_guide/index#files]
> It's especially important to save configuration during package upgrades.
> Section to change in SPEC file:
> {code:java}
> %files
> %config(noreplace) %{_sysconfdir}/kafka/*.conf
> %config(noreplace) %{_sysconfdir}/kafka/*.properties
> {code}
> It would also be good to mark documentation files with %doc
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)