*** frinring_ is now known as frinring | 08:08 | |
*** DennisRoczek is now known as DennisRoczek|afk | 08:40 | |
*** DennisRoczek|afk is now known as DennisRoczek | 09:16 | |
coderus | when 2.2.1 sdk will be released?:) | 09:56 |
---|---|---|
r0kk3rz | coderus: btw, can you update your docker hub image? | 09:59 |
coderus | r0kk3rz: how? if sdk not released :D | 10:00 |
r0kk3rz | platform sdk is updated | 10:00 |
coderus | http://releases.sailfishos.org/sdk/latest/targets/targets.json | 10:00 |
r0kk3rz | i assumed thats how you made it | 10:00 |
coderus | i dont see 2.2.1 here | 10:00 |
r0kk3rz | ah you can only update with zypper, yeah cool | 10:03 |
coderus | teah i need new tarballs :) | 10:03 |
antis | hello, can anyone help with deploying and linking custom shared libs? i want them installed together with the app rather than /usr/lib/… which is no suitable location for custom libraries or is it? | 12:17 |
fledermaus | antis: | 12:19 |
fledermaus | https://en.wikipedia.org/wiki/Rpath | 12:19 |
antis | fledermaus, thanks. hmm… so rpath is used on sfos? | 12:20 |
r0kk3rz | antis: check the harbour faq for guidelines about libs | 12:21 |
r0kk3rz | https://harbour.jolla.com/faq#Shared_Libraries | 12:24 |
antis | r0kk3rz, thanks! Yeah, I want to install shared libs to /usr/share/myapp/lib anyway. But the path seems not to be found… would you have another spec file for reference? | 12:31 |
r0kk3rz | it seems to suggest that it should do it automagically | 12:34 |
r0kk3rz | but maybe its magic isnt that strong | 12:34 |
fledermaus | DT_RUNPATH/RPATH needs to be baked into the elf executable | 12:35 |
fledermaus | you can use patchelf to alter the DT_RUNPATH of an already built binary. | 12:37 |
fledermaus | but really you should be doing it at build time. | 12:37 |
r0kk3rz | i tend to just static link stuff | 12:42 |
antis | Hmm… in rpm spec %{_libdir} points to /usr/lib. Ahh… I forgot to mention I'm doing stuff with cmake. Found "-DCMAKE_INSTALL_RPATH" which should do the trick. | 12:43 |
r0kk3rz | oh ok, the magic probably works with qmake | 12:44 |
antis | ok got it with the above mentiont command in spec file "-DCMAKE_INSTALL_RPATH=%{_datadir}/%{name}/lib". When installing it says: -- Set runtime path of "/home/deploy/installroot/usr/bin/toxer" to "/usr/share/toxer/lib" | 12:54 |
r0kk3rz | sounds right | 12:56 |
antis | ok, done. it works. need to copy the lib binaries manually, but hey… :) | 13:10 |
antis | r0kk3rz, am totally with you for static linking. One step at a time… | 13:14 |
ol | antis: Installing shared libraries into "/usr/share" is a very bad idea: "/usr/share" is for platform-independent files (like QML). You must install all libraries into "/usr/lib". | 14:07 |
ol | Also, it makes no sense to distribute shared libraries with your application if you don't want to share these libraries with other applications (this is what shared libraries are for). If you intend to make some code a part of your application, just link object files with your application. If you intend to make a shared library that will be useful to other applications, install it into "/usr/lib" (without a subdirectory), no need for RPATH. And make this library | 14:07 |
ol | to be in a separate (sub)package, so other packages will depend only on this library, not your application. | 14:07 |
Coolgeek | isn't /usr/local/lib more appropriate ? | 14:10 |
taixzo | I'm trying to add a podcast in gpodder and nothing happens. Just spins forever. | 14:10 |
ol | Only if you don't package and install by hand. But packaging is highly recommended. | 14:11 |
ol | The whole "/usr/local" hierarchy is for local changes that you install manually. This is outdated and historical way, an artefact of times when there was no proper package manager. | 14:12 |
antis | ol, this is the default path by mersdk | 14:12 |
ol | antis: The default path for libraries is "/usr/iib". This is a part of filesystem location standard. | 14:13 |
r0kk3rz | they are the harbour rules, which is why i tend to static link instead | 14:13 |
ol | And if you link statically, no need for a library at all. | 14:14 |
ol | Just use object files as part of your application. | 14:14 |
r0kk3rz | obviously, its just one less thing to package | 14:14 |
ol | Shared libraries are for sharing. | 14:15 |
r0kk3rz | unless you want to package for harbour, and then they arent :P | 14:16 |
ol | Also, optional loadable modules can be created as shared libraries. But again, they should be separate (sub)packages, because they are optional. | 14:17 |
r0kk3rz | you cant do package dependencies in harbour though :P | 14:17 |
ol | Then just link object files with an application, don't waste time creating a library. | 14:18 |
coderus | the rules are rules, you just follow it or gtfo =) | 14:22 |
antis | just pushed -> https://gitlab.com/antis81/toxer-sfos :P | 15:54 |
tango_ | is there a way to type something in a webpage without there being an explicit text box? | 20:51 |
fledermaus | if you have a broswer with a DOM inspector, yes. Otherwise not so much. | 20:58 |
Thaodan | tango_: libsoup maybe. but ha | 22:11 |
Thaodan | js is your enemy | 22:11 |
tango_ | 8-/ | 22:11 |
tango_ | I guess I'll have to renounce two of the achievements in swarmsim | 22:12 |
Thaodan | When you want to parse a static website soup is fine. | 22:14 |
tango_ | I don't need to parse anything, I literally need to type something while a webpage is open | 22:30 |
tango_ | on the keyboard | 22:30 |
*** feodoran is now known as Guest18594 | 23:11 | |
*** feodoran_ is now known as feodoran | 23:11 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!