Morning all,
during rebuild of a package I suddenly get a new error messages, resulting in a failed build:
[ 42s] package: trytond [ 42s] /usr/bin/chkstat modified files that are not properly handled! [ 42s] this will break rpm -V, ask ro for details. [ 42s] diff for both runs of rpm -V: [ 42s] +.M...UG.. /var/log
The only point I address /var/log in the spec file is .... mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/{lib,log}/%{basename}
[...]
%files #%files -f filelist %defattr(-,root,root) %doc README tryton-server.README.SUSE trytond.conf.example doc/* %{python_sitelib}/* %dir %{_sysconfdir}/%{basename} %{_bindir}/%{name} %{_unitdir}/%{name}.service %attr(640,root,tryton) %config(noreplace)%{_sysconfdir}/%{basename}/%{name}.conf %attr(640,root,tryton) %config(noreplace)%{_sysconfdir}/%{basename}/%{name}_log.conf %attr(744,tryton,tryton) %dir %{_localstatedir}/lib/%{basename} %attr(744,tryton,tryton) %dir %{_localstatedir}/log/%{basename}
and that was not changed compared to before. Any idea how I can get rid of the message, or what the reason suddenly is?
Thanks Axel
Hi,
during rebuild of a package I suddenly get a new error messages, resulting in a failed build:
[ 42s] package: trytond [ 42s] /usr/bin/chkstat modified files that are not properly handled! [ 42s] this will break rpm -V, ask ro for details. [ 42s] diff for both runs of rpm -V: [ 42s] +.M...UG.. /var/log
The only point I address /var/log in the spec file is .... mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/{lib,log}/%{basename}
I think I found the issue myself - I had introduced a definition in the beginning of the spec-file:
%define basename tryton
and that did not expand into %{basename}. No idea (yet) why, but I'm still investigating...
Cheers Axel
Hello,
Am Mittwoch, 27. Mai 2015 schrieb Axel Braun:
%attr(744,tryton,tryton) %dir %{_localstatedir}/lib/%{basename} %attr(744,tryton,tryton) %dir %{_localstatedir}/log/%{basename}
744 is a strange permission set (x only for the owner). 755 is probably a better choice ;-)
Regards,
Christian Boltz