We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2017-12-10 21:26:18 +0200

Harbour file validation permission issue on Windows [again]

I've tried to submit my app to harbour but had to face the famous "RPM-validation fails on permissions" issue:

Thanks for sending your application to the Jolla Store. Unfortunately your application did not pass the StoreQA tests because of the following reason.

1. RPM-validation fails on permissions:

Permissions
===========
ERROR [/usr/share/harbour-goobleinvasion/qml/cover/CoverPage.qml] File must not be executable (current permissions: 755)
ERROR [/usr/share/harbour-goobleinvasion/qml/harbour-goobleinvasion.qml] File must not be executable (current permissions: 755)
ERROR [/usr/share/harbour-goobleinvasion/qml/pages/AboutPage.qml] File must not be executable (current permissions: 755)
ERROR [/usr/share/harbour-goobleinvasion/qml/pages/Armageddon.qml] File must not be executable (current permissions: 755)

Problem seems to be replication of old issue but accepted answer there did not do the trick for me...

What worked, after many try-and-fail attempts is this one in .yaml:

# All installed files
Files:
  - '%defattr(644,root,root,-)'
  - '%attr(755,-,-) %{_bindir}'
  - '%{_datadir}/%{name}'
  - '%{_datadir}/applications/%{name}.desktop'
  - '%{_datadir}/icons/hicolor/*/apps/%{name}.png'

Special attention to be given to '%attr(755,-,-) %{_bindir}' Is it OK?

Is it bug that there are two 'defattr' lines in generated .spec file?

%files
%defattr(-,root,root,-)
%defattr(644,root,root,-)
%attr(755,-,-) %{_bindir}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
# >> files
# << files

Harbour file validation permission issue - developing on Windows [again][again?]

I've tried to submit my app to harbour but had to face the famous "RPM-validation fails on permissions" issue:

Thanks for sending your application to the Jolla Store. Unfortunately your application did not pass the StoreQA tests because of the following reason.

1. RPM-validation fails on permissions:

Permissions
===========
ERROR [/usr/share/harbour-goobleinvasion/qml/cover/CoverPage.qml] File must not be executable (current permissions: 755)
ERROR [/usr/share/harbour-goobleinvasion/qml/harbour-goobleinvasion.qml] File must not be executable (current permissions: 755)
ERROR [/usr/share/harbour-goobleinvasion/qml/pages/AboutPage.qml] File must not be executable (current permissions: 755)
ERROR [/usr/share/harbour-goobleinvasion/qml/pages/Armageddon.qml] File must not be executable (current permissions: 755)

Problem seems to be replication of old issue but accepted answer there did not do the trick for me...

What worked, after many try-and-fail attempts is this one in .yaml:

# All installed files
Files:
  - '%defattr(644,root,root,-)'
  - '%attr(755,-,-) %{_bindir}'
  - '%{_datadir}/%{name}'
  - '%{_datadir}/applications/%{name}.desktop'
  - '%{_datadir}/icons/hicolor/*/apps/%{name}.png'

Special attention to be given to '%attr(755,-,-) %{_bindir}' Is it OK?

Is it bug that there are two 'defattr' lines in generated .spec file?

%files
%defattr(-,root,root,-)
%defattr(644,root,root,-)
%attr(755,-,-) %{_bindir}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
# >> files
# << files