Re: [SailfishDevel] Compile without Scratchbox2 environment

2017-12-30 Thread Yuvraaj Kelkar
The plan is to package up each Sailfish target into a Docker image to be
used in a CI system.
For my purposes, Docker is a easy-to-use chroot that's also easy to share
and deploy as compared to a virtual machine with a toolchain in sb2.

I do know that sb2 is more than just a chroot with bind mounts, but thats
all I really need: a pre-populated chroot with bind mounts. Docker fits
that bill quite nicely.

No, I don't want multiple targets in the same image.
No, I don't need the management of multiple build targets within the same
Docker image.
I don't want any of the other sb2 features: I dont need Xephyr, I don't
need to automagically run the compiled binary under qemu, etc.

Necessity is the mother of this re-invention.
Can you help?

Thanks,
-Yuvraaj

On Sat, Dec 30, 2017 at 2:23 PM, Tone Kastlunger <users.giulie...@gmail.com>
wrote:

> I have personally nothing against docker.
> I think however what you are trying to do is a bit unusual, to say the
> least.
> Intending to use (at least as I understood it) docker as a substitute for
> SB2 is "wrong" (if you pass me the word).
> sb2 is more than "just" a virtualization layer bind-mounting directories.
> It manages build targets, for one, which docker does not know about,
> and never will. Yes, of course you can have a single docker image for a
> single build target, with all the replica which comes with it;
> or you can have one docker image with multiple toolchains / target envs;
> but then you have rolled your own sb2.
>
> I cant but recall the words : those who do not understand Unix, are doomed
> to reinvent it, poorly.
>
> Best,
> tortoisedoc
>
> On Fri, Dec 22, 2017 at 10:09 AM, Yuvraaj Kelkar <yuvr...@gmail.com>
> wrote:
>
>> I want to create a Docker image for Sailfish development.
>> I know it is possible to create a Docker image with sb2 in it; I've done
>> that for other sb2 toolchains - Maemo and Harmattan.
>> However, those images can only run as privileged Docker containers
>> because of sb2 bind mounts (I think).
>>
>> I'd like to avoid being forced to run privileged Docker containers.
>> Also, running sb2 inside a Docker container seems like inception.
>>
>> If it is possible to install the Sailfish toolchain without sb2, it
>> should be possible to capture that into a non-privileged Docker image. (I
>> hope)
>>
>> The documentation for anything related to scratchbox is either hard to
>> google or has broken links to maemo.org or is just non-existant.
>>
>> As to why Docker and not sb2: "Why not?" and "Better documentation"
>>
>> Thanks,
>> -Yuvraaj
>>
>> On Thu, Dec 21, 2017 at 11:56 PM, Tone Kastlunger <
>> users.giulie...@gmail.com> wrote:
>>
>>> Out of curiosity, what's blocking you from using scratchbox?
>>>
>>> On Fri, Dec 22, 2017 at 7:53 AM, Yuvraaj Kelkar <yuvr...@gmail.com>
>>> wrote:
>>>
>>>> Ha!
>>>> Any other ideas?
>>>>
>>>> Thanks,
>>>> -Yuvraaj
>>>>
>>>> On 12/21/17 8:08 PM, Juice wrote:
>>>>
>>>>> Yuvraaj Kelkar kirjoitti torstai 21. joulukuuta 2017:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> Is it possible to compile for sailfish without using scratchbox2?
>>>>>>
>>>>>> Thanks,
>>>>>> -Yuvraaj
>>>>>>
>>>>>> Sure, just compile in the device itself... :)
>>>>>
>>>>>- juice -
>>>>>
>>>>>
>>>>>
>>>> ___
>>>> SailfishOS.org Devel mailing list
>>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>>> shos.org
>>>>
>>>
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Compile without Scratchbox2 environment

2017-12-22 Thread Yuvraaj Kelkar
I want to create a Docker image for Sailfish development.
I know it is possible to create a Docker image with sb2 in it; I've done
that for other sb2 toolchains - Maemo and Harmattan.
However, those images can only run as privileged Docker containers because
of sb2 bind mounts (I think).

I'd like to avoid being forced to run privileged Docker containers.
Also, running sb2 inside a Docker container seems like inception.

If it is possible to install the Sailfish toolchain without sb2, it should
be possible to capture that into a non-privileged Docker image. (I hope)

The documentation for anything related to scratchbox is either hard to
google or has broken links to maemo.org or is just non-existant.

As to why Docker and not sb2: "Why not?" and "Better documentation"

Thanks,
-Yuvraaj

On Thu, Dec 21, 2017 at 11:56 PM, Tone Kastlunger <users.giulie...@gmail.com
> wrote:

> Out of curiosity, what's blocking you from using scratchbox?
>
> On Fri, Dec 22, 2017 at 7:53 AM, Yuvraaj Kelkar <yuvr...@gmail.com> wrote:
>
>> Ha!
>> Any other ideas?
>>
>> Thanks,
>> -Yuvraaj
>>
>> On 12/21/17 8:08 PM, Juice wrote:
>>
>>> Yuvraaj Kelkar kirjoitti torstai 21. joulukuuta 2017:
>>>
>>>> Hi all,
>>>>
>>>> Is it possible to compile for sailfish without using scratchbox2?
>>>>
>>>> Thanks,
>>>> -Yuvraaj
>>>>
>>>> Sure, just compile in the device itself... :)
>>>
>>>- juice -
>>>
>>>
>>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Compile without Scratchbox2 environment

2017-12-21 Thread Yuvraaj Kelkar

Ha!
Any other ideas?

Thanks,
-Yuvraaj

On 12/21/17 8:08 PM, Juice wrote:

Yuvraaj Kelkar kirjoitti torstai 21. joulukuuta 2017:

Hi all,

Is it possible to compile for sailfish without using scratchbox2?

Thanks,
-Yuvraaj


Sure, just compile in the device itself... :)

   - juice -




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Compile without Scratchbox2 environment

2017-12-21 Thread Yuvraaj Kelkar
Hi all,

Is it possible to compile for sailfish without using scratchbox2?

Thanks,
-Yuvraaj
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Ship a sqlite dabase with an app

2017-07-20 Thread Yuvraaj Kelkar
There are many ways to do this. I can think of at least two:

Static linking:
1. As the first step of your compilation, create the db file.
2. Use an rcc to embed the sqlite file into the application binary.
3. During run time, at initialization: check if the sqlite.db exists at a
known path, for eg: "$(dirname $0)/sqlite.db" If found, great! Use it.
4. If not found, Extract the embedded sqlite file into that known path.
5. Continue initialization.

Download from AWS:
1. Upload that sqlite.db to a S3 bucket.
2. Download it during initialization

I would not go for the option of generating that sqlite.db on the user's
machine - primarily because 15 minutes is incredibly long.
The user's patience is precious.

Thanks,
-Uv

On Thu, Jul 20, 2017 at 12:29 PM, J Pablo Navarro 
wrote:

> Hi SFOS devs!
>
> I think this is my first email over here and I don't have too much experice
> with apps, so please be kind :)
>
> I want to ship an sqlite database with the app. The main reason is that
> generating this database takes around 15 minutes... and it weights 104
> KiB, so
> I think the best solution would be to shipt it as part of the app instead
> of
> download it from somewhere (I don't have a server, so that would be a
> problem)
> or generate it the first time the app is opened.
>
> My question is, what's the best way to do this?
>
> Thank you,
> Pablo.
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Right to silence

2014-05-23 Thread Yuvraaj Kelkar
+1 for ignore.

On Thu, May 22, 2014 at 11:12 PM, Joseph Crowell
joseph.w.crow...@gmail.com wrote:
 +1 on the /ignore


 On 5/23/2014 4:09 PM, Joona Hoikkala wrote:

 Here we go again,

 seems like you really need to do this outpour on the sailfish devel list,
 so could you PLEASE at least contain it to one thread so the ones that don't
 wish to get distracted can successfully ignore the thread?



 On 5/23/2014 2:35 PM, Filip Kłębczyk wrote:

  From English Wikipedia:

 The right to remain silent is a legal right recognized, explicitly or by
 convention, in many of the world's legal systems.

 The right covers a number of issues centered around the right of the
 accused or the defendant to refuse to comment or provide an answer when
 questioned, either prior to or during legal proceedings in a court of law.
 This can be the right to avoid self-incrimination or the right to remain
 silent when questioned. The right usually includes the provision that
 adverse comments or inferences cannot be made by the judge or jury 
 regarding
 the refusal by a defendant to answer questions before or during a trial,
 hearing or any other legal proceeding. This right constitutes only a small
 part of the defendant's rights as a whole.

 I will repeat one part.

 *The right usually includes the provision that adverse comments or
 inferences cannot be made by the judge or jury regarding the refusal by a
 defendant to answer questions before or during a trial, hearing or any 
 other
 legal proceeding.*

 Now let all think, was it ok for Jolla employees (that mostly dominated
 yesterday meeting, check in irc logs who was talking most of the time)
 forcing me to speak and what kind of comments they've made about that.

 While I respect Thomas Perl right to be silent - it's his choice and I
 would like others to respect the fact that I was silent during yesterday's
 meeting. Moreover I clearly stated that I will reply on mailing list after
 meeting which I've did as promised. I just didn't feel that I will have
 equal chances to express myself, when Jolla employees where dominating on
 it.

 Regards,
 Filip
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org

 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org

 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org


 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Two prolblems: #1 Telepathy qt5 and #2 OpenSSL

2014-04-16 Thread Yuvraaj Kelkar
Hello all.
I'm trying to port my application from Maemo/Harmattan to Sailfish.

Problem 1:
One of the dependencies is telepathy-qt.
In Maemo/Harmattan this used to be installable/searchable as
telepathy-qt4-devel

From what I understand, in Sailfish, I'm supposed to use telepathy-qt5.
I ssh'd into the mersdk VM and did a sudo zypper install telepathy-qt5
As I had assumed, this doesn't install it into the sb2 environment of course.

I added a PKGCONFIG += TelepathyQt5 to my pro file (found out from Google).
However that didn't work either.

I then entered the sb2 environment and tried to install telepathy-qt5.
This too didn't work: No root privileges.

What do I have to do to be able to use libtelepathy-qt5 ?

Problem 2:
Based on more Googling, I figured out that Sailfish does NOT provide
its own openssl library and expects users to use the statically
compiled version on their own.

I have since then gotten the non-heartbleed openssl, compiled it in
sailfish sb2 for static compilation and managed to link it against my
app.

The question is is this really the correct way to use the openssl library?
It seems unfriendly.

I really hope the answer to #1 isn't compile it yourself and use it.
I can do that, but then I'm not sure thats the right way of doing
things...

Thanks,
Uv
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Two prolblems: #1 Telepathy qt5 and #2 OpenSSL

2014-04-16 Thread Yuvraaj Kelkar
That is so much better than what I was doing!
Thanks so much!

I got confused by looking at this thread:
https://lists.sailfishos.org/pipermail/devel/2013-December/001677.html

On Wed, Apr 16, 2014 at 10:15 PM, Kalle Vahlman
kalle.vahl...@movial.com wrote:
 2014-04-17 2:15 GMT+03:00 Yuvraaj Kelkar yuvr...@gmail.com:
 Hello all.
 I'm trying to port my application from Maemo/Harmattan to Sailfish.

 Problem 1:
 One of the dependencies is telepathy-qt.
 In Maemo/Harmattan this used to be installable/searchable as
 telepathy-qt4-devel

 From what I understand, in Sailfish, I'm supposed to use telepathy-qt5.
 I ssh'd into the mersdk VM and did a sudo zypper install telepathy-qt5
 As I had assumed, this doesn't install it into the sb2 environment of course.

 It does install it to the sdk, however...

 I added a PKGCONFIG += TelepathyQt5 to my pro file (found out from Google).
 However that didn't work either.

 ...if you want to use it for compilation you need the
 telepathy-qt5-devel package. And no need to ssh in the vm, just go to
 the SailfishOS - Targets tab, click on manage for the desired
 target(s), search for telepathy and install the telepathy-qt5-devel
 package (and whatever else you need).

 I then entered the sb2 environment and tried to install telepathy-qt5.
 This too didn't work: No root privileges.

 If you really want to do this, add -R to sb2 command line. It will
 *appear* to give you root privileges. But as said, you don't need sb2
 for this task.

 Problem 2:
 Based on more Googling, I figured out that Sailfish does NOT provide
 its own openssl library and expects users to use the statically
 compiled version on their own.

 It certainly does *include* openssl library as the heartbleed bug was
 a part of the recent release :)

 Which google hit might have suggested otherwise?

 --
 Kalle Vahlman, Movial Creative Technologies Inc.
 Porkkalankatu 20, FI-00180 Helsinki
 Tel +358 9 8567 6400
 Fax +358 9 8567 6401
 www.movial.com
 ___
 SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list