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

Help with RPM validator

asked 2014-02-01 21:09:57 +0300

Strahlex gravatar image

updated 2014-02-03 14:14:33 +0300

Hello devs,

I finished my application and now want to put it in the harbour but I get the following errors when doing the RPM check: [http://pastebin.com/iXcXFTru]

Thats a lot. What confuses me is the files in /opt and the QML file related errors like QtGraphicalEffects 1.0 not allowed or even RemoteBox 1.0 allowed, which is a C++ I have written myself.

Is there any guide about this topic anywhere? [solved] see answer 1

Update: Now I came to the following results:

ERROR [/usr/share/harbour-qremotecontrol/qml/initMeego.qml] Import 'QtQuick 1.1' is not allowed
ERROR [/usr/share/harbour-qremotecontrol/qml/initMeego.qml] Import 'com.nokia.meego 1.0' is not allowed
ERROR [/usr/share/harbour-qremotecontrol/qml/SettingsPage.qml] Import 'Qt.labs.folderlistmodel 1.0' is not allowed
ERROR [/usr/share/harbour-qremotecontrol/qml/MyComponents/Button.qml] Import 'QtGraphicalEffects 1.0' is not allowed
ERROR [/usr/share/harbour-qremotecontrol/qml/JollaImage.qml] Import 'QtGraphicalEffects 1.0' is not allowed

Whereas the first two errors come from a file added for MeeGo support, as already broke MeeGo support with using QtQuick 2.0 this shouldn't be a problem to remove. Qt.labs.folderlistmodel : this annoying but I can understand that you do not want to support Qt.labs libraries, but I have a workaround for that too. QtGraphicalEffects: I can not understand why you do not support this library. Please add it to the allowed imports. Is there any workaround for this?

edit retag flag offensive close delete

Comments

QtGraphicalEffects see: https://together.jolla.com/question/10366/harbour-allow-importing-qt-graphical-effects/ vote it up, comment there why and it might happen, we have it in discussion, but no verdict yet.

Kontio ( 2014-02-03 14:19:19 +0300 )edit

Is there a way to add QtGraphicalEffect as library to supply it with the application?

Strahlex ( 2014-02-05 18:27:40 +0300 )edit

Yes, but it's not easy specially if QtGraphicalEffect depends on something not allowed, the following questions/answers are relevant: https://harbour.jolla.com/faq#5.3.0 - https://harbour.jolla.com/faq#6.3.0 - https://harbour.jolla.com/faq#2.6.0 - https://harbour.jolla.com/faq#2.7.0

Kontio ( 2014-02-06 09:17:46 +0300 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2014-02-02 21:30:46 +0300

Kontio gravatar image

updated 2015-01-09 10:37:09 +0300

Please have a look at https://harbour.jolla.com/faq

Line 533 -> https://harbour.jolla.com/faq#2.3.0

Line 543- -> https://harbour.jolla.com/faq#5.1.0

Line 548 -> https://harbour.jolla.com/faq#5.3.0

Line 562 -> https://harbour.jolla.com/faq#2.1.0

Line 804 -> will be allowed with the next version: https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/commit/0adc0aa3226e9c0ffbee7bd268efa81c7733bfda

Line 1310 -> same as Line 804

Update: 09. Jan 2015:
FYI: as mentioned in several places before. Harbour QA started on 07. Jan 2015 to accept submissions which depend on QtGraphicalEffects.

edit flag offensive delete publish link more

Comments

5.1 and 5.3 are annoying. This makes platform independent development a lot harder.

Strahlex ( 2014-02-02 22:20:10 +0300 )edit
0

answered 2014-02-03 12:59:46 +0300

Strahlex gravatar image

Is it possible to exclude files from deployment? I used one file structure for all platform and all files in the qml folder are deployed by default this results in deploying also the init files for MeeGo and Android that the RPM validator obviously does not like.

edit flag offensive delete publish link more

Comments

1

Yes, in the rpm .spec file in the %install section you can add just normal shell commands to remove such files. If you are using the SDK template, this should be after %qmake5_install. For example:

%qmake5_install
rm -rf %{buildroot}/usr/share/harbour-myapp/qml/otheroperatingsystemqmlfiles
thp ( 2014-02-03 14:24:33 +0300 )edit

please do not use answers for additional questions! Use the comment function for that.

Kontio ( 2014-02-03 14:24:43 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-02-01 21:09:57 +0300

Seen: 375 times

Last updated: Jan 09 '15