[SailfishDevel] installing extra files via rpm
Andrey Kozhevnikov
coderusinbox at gmail.com
Thu Nov 21 15:19:44 UTC 2013
i have src/client and src/server and everything is built correctly
automatically.
On 21.11.2013 21:05, Artem Marchenko wrote:
> Yes, Qt Creator plugin trying to modify .yaml is a big annoyance to
> anybody with non standard .yaml (I have src/test subprojects and
> plugin is apparently able to work with one package only). How I solved
> it, I just keep resetting .yaml to version from version control
> whenever QtCreator wants to be clever and touch .yaml himself. Sure,
> sometimes I miss it, but most of the time everything's fine.
>
> Maybe same will work for you. Or maybe somebody will now post how to
> kill this .yaml modification plugin completely :)
>
> Cheers,
> Artem.
>
>
>
>
> On Thu, Nov 21, 2013 at 3:25 PM, Wim de Vries <wsvries at xs4all.nl
> <mailto:wsvries at xs4all.nl>> wrote:
>
> Thanks.
> Removing and adding kits seems to generate new .yaml file based on
> .pro and .pri.
>
>
>
> On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:
>> create sailfish project, or dont use yaml, use spec.
>>
>> On 21.11.2013 16:01, Wim de Vries wrote:
>>> Hi Artem,
>>> Thanks for the reply.
>>> Best way would then to change .yaml, I guess.
>>> But somehow there is no .yaml in the rpm dir.
>>> Tried to add an empty one hoping that qmake or rebuild would
>>> fill it, but remains emty.
>>> Any idea how to get the yaml created?
>>> Thanks.
>>>
>>>
>>> On 11/20/2013 09:45 PM, Artem Marchenko wrote:
>>>> You need to mention these files in .yaml (or user editable part
>>>> of .spec that's generated from .yaml).
>>>>
>>>> Basically here's what happens:
>>>>
>>>> 1. Your project files are mounted to the virtual build machine
>>>> 2. make install copies data to the appropriate "final" folders
>>>> on the build machine (not visible from your PC)
>>>> 3. RPM generation happens on build machine. RPM packager puts
>>>> "installed" file to one or more (just one for a simple case)
>>>> RPM packages according to .yaml/.spec and then it figures that
>>>> some "installed" files are not going into any .rpm, so it gives
>>>> you an error:
>>>> "Installed (but unpackaged) file(s) found:"
>>>>
>>>> Cheers,
>>>> Artem.
>>>>
>>>>
>>>>
>>>> On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries
>>>> <wsvries at xs4all.nl <mailto:wsvries at xs4all.nl>> wrote:
>>>>
>>>> Hi,
>>>> I am able to deploy via RPM. Or better, QtCreator is able
>>>> to do it ;-)
>>>> Still, I need to install some data files as well.
>>>> pro file:
>>>>
>>>> data.files = checklistsdata/*
>>>> OTHER_FILES += \
>>>> checklistsdata/skyArrow-walkaround \
>>>> checklistsdata/skyArrowEMERGENCY \
>>>> .....
>>>>
>>>> In the .pri:
>>>> data.path = /home/nemo/checklistsdata
>>>> INSTALLS += target qml desktop data
>>>>
>>>> As far as I understand this should be sufficient.
>>>> Still deployment fails.
>>>> Any hints?
>>>> Thanks.
>>>>
>>>> Output when deploying:
>>>>
>>>> nstall -m 755 -p "checklists"
>>>> "/home/deploy/installroot/usr/bin/checklists"
>>>>
>>>> install -m 755 -p /home/mersdk/qt/checklists/main.qml
>>>> /home/deploy/installroot/usr/share/checklists/
>>>>
>>>> cp -f -R /home/mersdk/qt/checklists/pages
>>>> /home/deploy/installroot/usr/share/checklists/
>>>>
>>>> cp -f -R /home/mersdk/qt/checklists/cover
>>>> /home/deploy/installroot/usr/share/checklists/
>>>>
>>>> cp -f -R /home/mersdk/qt/checklists/controls
>>>> /home/deploy/installroot/usr/share/checklists/
>>>>
>>>> install -m 755 -p /home/mersdk/qt/checklists/main.qml
>>>> /home/deploy/installroot/usr/share/checklists/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklists.desktop
>>>> /home/deploy/installroot/usr/share/applications/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/eurofox
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO1
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO2
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO3
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO4
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO5
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO6
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO7
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO8
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/GEO9
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/skyArrow
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> install -m 755 -p
>>>> /home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY
>>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>>
>>>> + /usr/lib/rpm/find-debuginfo.sh --strict-build-id
>>>> /home/mersdk/qt/checklists/
>>>>
>>>> .........
>>>>
>>>>
>>>> Processing files: checklists-0.1-1.i586
>>>>
>>>> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
>>>> rpmlib(FileDigests) <= 4.6.0-1
>>>> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>>>>
>>>> Requires: libGLESv2.so.2 libQt5Core.so.5 libQt5Gui.so.5
>>>> libQt5Network.so.5 libQt5Qml.so.5 libQt5Quick.so.5
>>>> libc.so.6 libc.so.6(GLIBC_2.0) libgcc_s.so.1
>>>> libgcc_s.so.1(GCC_3.0) libm.so.6 libpthread.so.0
>>>> libstdc++.so.6 libstdc++.so.6(CXXABI_1.3)
>>>> libstdc++.so.6(GLIBCXX_3.4) rtld(GNU_HASH)
>>>>
>>>> Processing files: checklists-debugsource-0.1-1.i586
>>>>
>>>> Processing files: checklists-debuginfo-0.1-1.i586
>>>>
>>>> Provides: debuginfo(build-id) =
>>>> 3196c82eb7247c3f8a80152b57c0863007c4c887
>>>>
>>>> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
>>>> rpmlib(FileDigests) <= 4.6.0-1
>>>> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>>>>
>>>> Checking for unpackaged file(s): /usr/lib/rpm/check-files
>>>> /home/deploy/installroot
>>>>
>>>> error:
>>>>
>>>>
>>>>
>>>> RPM build errors:
>>>>
>>>> Installed (but unpackaged) file(s) found:
>>>>
>>>> /home/nemo/checklistsdata/GEO1
>>>>
>>>> /home/nemo/checklistsdata/GEO2
>>>>
>>>> /home/nemo/checklistsdata/GEO3
>>>>
>>>> /home/nemo/checklistsdata/GEO4
>>>>
>>>> /home/nemo/checklistsdata/GEO5
>>>>
>>>> /home/nemo/checklistsdata/GEO6
>>>>
>>>> /home/nemo/checklistsdata/GEO7
>>>>
>>>> /home/nemo/checklistsdata/GEO8
>>>>
>>>> /home/nemo/checklistsdata/GEO9
>>>>
>>>> /home/nemo/checklistsdata/eurofox
>>>>
>>>> /home/nemo/checklistsdata/eurofoxEMERGENCY
>>>>
>>>> /home/nemo/checklistsdata/skyArrow
>>>>
>>>> /home/nemo/checklistsdata/skyArrow-walkaround
>>>>
>>>> /home/nemo/checklistsdata/skyArrowEMERGENCY
>>>>
>>>> Installed (but unpackaged) file(s) found:
>>>>
>>>> /home/nemo/checklistsdata/GEO1
>>>>
>>>> /home/nemo/checklistsdata/GEO2
>>>>
>>>> /home/nemo/checklistsdata/GEO3
>>>>
>>>> /home/nemo/checklistsdata/GEO4
>>>>
>>>> /home/nemo/checklistsdata/GEO5
>>>>
>>>> /home/nemo/checklistsdata/GEO6
>>>>
>>>> /home/nemo/checklistsdata/GEO7
>>>>
>>>> /home/nemo/checklistsdata/GEO8
>>>>
>>>> /home/nemo/checklistsdata/GEO9
>>>>
>>>> /home/nemo/checklistsdata/eurofox
>>>>
>>>> /home/nemo/checklistsdata/eurofoxEMERGENCY
>>>>
>>>> /home/nemo/checklistsdata/skyArrow
>>>>
>>>> /home/nemo/checklistsdata/skyArrow-walkaround
>>>>
>>>> /home/nemo/checklistsdata/skyArrowEMERGENCY
>>>>
>>>>
>>>>
>>>> receiving incremental file list
>>>>
>>>> drwxr-xr-x 4096 2013/11/20 14:24:08 .
>>>>
>>>> -rwxr-xr-x 376569 2013/11/20 14:24:08 checklists-0.1-1.i586.rpm
>>>>
>>>>
>>>> sent 11 bytes received 69 bytes 160.00 bytes/sec
>>>>
>>>> total size is 376569 speedup is 4707.11
>>>>
>>>> Command failed: A filename to install is required
>>>>
>>>> 20:16:19: The process
>>>> "/home/wim/.config/SailfishAlpha2/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/deploy"
>>>> exited with code 3.
>>>>
>>>> Error while building/deploying project checklists (kit:
>>>> MerSDK-SailfishOS-i486-x86-GCC (MerSDK SailfishOS-i486-x86))
>>>>
>>>> When executing step 'Rpm'
>>>>
>>>> 20:16:19: Elapsed time: 00:06.
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> SailfishOS.org Devel mailing list
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Artem Marchenko
>>>> http://agilesoftwaredevelopment.com
>>>> http://twitter.com/AgileArtem
>>>>
>>>>
>>>> _______________________________________________
>>>> SailfishOS.org Devel mailing list
>>>
>>>
>>>
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>
>
>
>
> --
> Artem Marchenko
> http://agilesoftwaredevelopment.com
> http://twitter.com/AgileArtem
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131121/2ecabf61/attachment.html>
More information about the Devel
mailing list