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

# Help with RPM validator

asked 2014-02-01 21:09:57 +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 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.

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

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

( 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

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

## 2 Answers

Sort by » oldest newest most voted

answered 2014-02-02 21:30:46 +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.

more

## Comments

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

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

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

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.

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

( 2014-02-03 14:24:33 +0300 )edit

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

( 2014-02-03 14:24:43 +0300 )edit

## Stats

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

Seen: 377 times

Last updated: Jan 09 '15