Re: How to optify in MADDE?

Re: How to optify in MADDE?

Sascha Makela
Karma: 373
2010-06-10 08:04 UTC
OK and how would I do that? Should I edit the src.pro file and how should it
look? Is something else needed?

Thanks,
Sascha

On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen <pasi.savanainen@nixu.com>wrote:

> On 6/9/10 5:58 PM, Sascha Mäkelä wrote:
> > How can I optify a package in Windows using MADDE? Does this work:
> >
> http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/
> >
> > If it does, how can I install it to MADDE?
> >
> > Cheers,
> > Sascha
> >
> >
> >
> >
> > _______________________________________________
> > maemo-developers mailing list
> > maemo-developers@maemo.org
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>
> You cannot use that with MADDE, because maemo-optify* commands use
> internally some dpkg* command options that are not implemented by MADDE.
> You have to do optify our packages by hand.
>
> -- Pasi
>

  •  Reply

Re: How to optify in MADDE?

daniel wilms
Karma: 597
2010-06-10 08:12 UTC
Hi,

ext Sascha Mäkelä wrote:
> OK and how would I do that? Should I edit the src.pro <http://src.pro>
> file and how should it look? Is something else needed?
one thing you could do is putting the files of the application (like
binary, images etc.) in a folder like /opt/myapp/. This you can specify
in your src.pro. There is a packaging guide for Qt applications
available in the wiki [1]. After doing that you can then have the right
path to your executable in the *.desktop file.

1. http://wiki.maemo.org/Packaging_a_Qt_application

Daniel


>
> Thanks,
> Sascha
>
> On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen
> <pasi.savanainen@nixu.com <mailto:pasi.savanainen@nixu.com>> wrote:
>
> On 6/9/10 5:58 PM, Sascha Mäkelä wrote:
> > How can I optify a package in Windows using MADDE? Does this work:
> >
> http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/
> >
> > If it does, how can I install it to MADDE?
> >
> > Cheers,
> > Sascha
> >
> >
> >
> >
> > _______________________________________________
> > maemo-developers mailing list
> > maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>
> You cannot use that with MADDE, because maemo-optify* commands use
> internally some dpkg* command options that are not implemented by
> MADDE.
> You have to do optify our packages by hand.
>
> -- Pasi
>
>

  •  Reply

Re: How to optify in MADDE?

Daniil Ivanov
Karma: 31
2010-06-10 08:32 UTC
Hi Daniel!

Of course manual optification is the way to go when there is no other way.
But is it so that installing scratchbox and performing optification
there is considered as too difficult?
BTW, are there any chances maemo-optify will be included into MADDE?

Thanks, Daniil.

On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms <daniel.wilms@nokia.com> wrote:
> Hi,
>
> ext Sascha Mäkelä wrote:
>>
>> OK and how would I do that? Should I edit the src.pro <http://src.pro>
>> file and how should it look? Is something else needed?
>
> one thing you could do is putting the files of the application (like binary,
> images etc.) in a folder like /opt/myapp/. This you can specify in your
> src.pro. There is a packaging guide for Qt applications available in the
> wiki [1]. After doing that you can then have the right path to your
> executable in the *.desktop file.
>
> 1. http://wiki.maemo.org/Packaging_a_Qt_application
>
> Daniel
>
>
>>
>> Thanks,
>> Sascha
>>
>> On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen <pasi.savanainen@nixu.com
>> <mailto:pasi.savanainen@nixu.com>> wrote:
>>
>>    On 6/9/10 5:58 PM, Sascha Mäkelä wrote:
>>    > How can I optify a package in Windows using MADDE? Does this work:
>>    >
>>
>>  http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/
>>    >
>>    > If it does, how can I install it to MADDE?
>>    >
>>    > Cheers,
>>    > Sascha
>>    >
>>    >
>>    >
>>    >
>>    > _______________________________________________
>>    > maemo-developers mailing list
>>    > maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
>>    > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>>    You cannot use that with MADDE, because maemo-optify* commands use
>>    internally some dpkg* command options that are not implemented by
>>    MADDE.
>>    You have to do optify our packages by hand.
>>
>>    -- Pasi
>>
>>
>
>
  •  Reply

Re: How to optify in MADDE?

daniel wilms
Karma: 597
2010-06-10 08:45 UTC
Hi,

ext Daniil Ivanov wrote:
> Hi Daniel!
>
> Of course manual optification is the way to go when there is no other way.
> But is it so that installing scratchbox and performing optification
> there is considered as too difficult?
>

I think the manual way is reasonably easy. Or which drawback do you see
here? If you have set up your environment already with MADDE, the
optification should not be a reason to install the Platform SDK with
Scratchbox etc. There is just one bug in MADDE, if you package your
application that way, you have to set the rights of your binary to
executable in the postinst file.


> BTW, are there any chances maemo-optify will be included into MADDE?
>

I doubt that, but I'm not sure. Will find that out.

Daniel
> Thanks, Daniil.
>
> On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms <daniel.wilms@nokia.com> wrote:
>
>> Hi,
>>
>> ext Sascha Mäkelä wrote:
>>
>>> OK and how would I do that? Should I edit the src.pro <http://src.pro>
>>> file and how should it look? Is something else needed?
>>>
>> one thing you could do is putting the files of the application (like binary,
>> images etc.) in a folder like /opt/myapp/. This you can specify in your
>> src.pro. There is a packaging guide for Qt applications available in the
>> wiki [1]. After doing that you can then have the right path to your
>> executable in the *.desktop file.
>>
>> 1. http://wiki.maemo.org/Packaging_a_Qt_application
>>
>> Daniel
>>
>>
>>
>>> Thanks,
>>> Sascha
>>>
>>> On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen <pasi.savanainen@nixu.com
>>> <mailto:pasi.savanainen@nixu.com>> wrote:
>>>
>>> On 6/9/10 5:58 PM, Sascha Mäkelä wrote:
>>> > How can I optify a package in Windows using MADDE? Does this work:
>>> >
>>>
>>> http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/
>>> >
>>> > If it does, how can I install it to MADDE?
>>> >
>>> > Cheers,
>>> > Sascha
>>> >
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > maemo-developers mailing list
>>> > maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
>>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>
>>> You cannot use that with MADDE, because maemo-optify* commands use
>>> internally some dpkg* command options that are not implemented by
>>> MADDE.
>>> You have to do optify our packages by hand.
>>>
>>> -- Pasi
>>>
>>>
>>>
>>
>>

  •  Reply

Re: How to optify in MADDE?

Daniil Ivanov
Karma: 31
2010-06-10 09:15 UTC
Hi Daniel!

You have to keep ratio 80%/20% /opt/usr it's not so easy to achieve manually.
Moreover, if you put binary to /opt on MADDE dpkg-buildpackage will
fail to set
execution bit to your binary (I hope it will be fixed soon).

Thanks, Daniil.

On Thu, Jun 10, 2010 at 11:45 AM, daniel wilms <daniel.wilms@nokia.com> wrote:
> Hi,
>
> ext Daniil Ivanov wrote:
>>
>> Hi Daniel!
>>
>>  Of course manual optification is the way to go when there is no other
>> way.
>>  But is it so that installing scratchbox and performing optification
>> there is considered as too difficult?
>>
>
> I think the manual way is reasonably easy. Or which drawback do you see
> here? If you have set up your environment already with MADDE, the
> optification should not be a reason to install the Platform SDK with
> Scratchbox etc. There is just one bug in MADDE, if you package your
> application that way, you have to set the rights of your binary to
> executable in the postinst file.
>
>
>>  BTW, are there any chances maemo-optify will be included into MADDE?
>>
>
> I doubt that, but I'm not sure. Will find that out.
>
> Daniel
>>
>> Thanks, Daniil.
>>
>> On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms <daniel.wilms@nokia.com>
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> ext Sascha Mäkelä wrote:
>>>
>>>>
>>>> OK and how would I do that? Should I edit the src.pro <http://src.pro>
>>>> file and how should it look? Is something else needed?
>>>>
>>>
>>> one thing you could do is putting the files of the application (like
>>> binary,
>>> images etc.) in a folder like /opt/myapp/. This you can specify in your
>>> src.pro. There is a packaging guide for Qt applications available in the
>>> wiki [1]. After doing that you can then have the right path to your
>>> executable in the *.desktop file.
>>>
>>> 1. http://wiki.maemo.org/Packaging_a_Qt_application
>>>
>>> Daniel
>>>
>>>
>>>
>>>>
>>>> Thanks,
>>>> Sascha
>>>>
>>>> On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen <pasi.savanainen@nixu.com
>>>> <mailto:pasi.savanainen@nixu.com>> wrote:
>>>>
>>>>   On 6/9/10 5:58 PM, Sascha Mäkelä wrote:
>>>>   > How can I optify a package in Windows using MADDE? Does this work:
>>>>   >
>>>>
>>>>
>>>>  http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/
>>>>   >
>>>>   > If it does, how can I install it to MADDE?
>>>>   >
>>>>   > Cheers,
>>>>   > Sascha
>>>>   >
>>>>   >
>>>>   >
>>>>   >
>>>>   > _______________________________________________
>>>>   > maemo-developers mailing list
>>>>   > maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
>>>>   > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>
>>>>   You cannot use that with MADDE, because maemo-optify* commands use
>>>>   internally some dpkg* command options that are not implemented by
>>>>   MADDE.
>>>>   You have to do optify our packages by hand.
>>>>
>>>>   -- Pasi
>>>>
>>>>
>>>>
>>>
>>>
>>>
>
>
  •  Reply

Re: How to optify in MADDE?

daniel wilms
Karma: 597
2010-06-10 09:49 UTC
Hi,

ext Daniil Ivanov wrote:
> Hi Daniel!
>
> You have to keep ratio 80%/20% /opt/usr it's not so easy to achieve manually.
>

it is not required to have this ratio and I think this is rather
confusing to give that out as a goal. The easiest way is to put
everything into a separate application-specific folder in opt and the
desktop file in it's place.

> Moreover, if you put binary to /opt on MADDE dpkg-buildpackage will
> fail to set
> execution bit to your binary (I hope it will be fixed soon).
>
>

This is what I said. It is fixed already (this morning ;) ) and should
be in the next release.

Daniel

> Thanks, Daniil.
>
> On Thu, Jun 10, 2010 at 11:45 AM, daniel wilms <daniel.wilms@nokia.com> wrote:
>
>> Hi,
>>
>> ext Daniil Ivanov wrote:
>>
>>> Hi Daniel!
>>>
>>> Of course manual optification is the way to go when there is no other
>>> way.
>>> But is it so that installing scratchbox and performing optification
>>> there is considered as too difficult?
>>>
>>>
>> I think the manual way is reasonably easy. Or which drawback do you see
>> here? If you have set up your environment already with MADDE, the
>> optification should not be a reason to install the Platform SDK with
>> Scratchbox etc. There is just one bug in MADDE, if you package your
>> application that way, you have to set the rights of your binary to
>> executable in the postinst file.
>>
>>
>>
>>> BTW, are there any chances maemo-optify will be included into MADDE?
>>>
>>>
>> I doubt that, but I'm not sure. Will find that out.
>>
>> Daniel
>>
>>> Thanks, Daniil.
>>>
>>> On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms <daniel.wilms@nokia.com>
>>> wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> ext Sascha Mäkelä wrote:
>>>>
>>>>
>>>>> OK and how would I do that? Should I edit the src.pro <http://src.pro>
>>>>> file and how should it look? Is something else needed?
>>>>>
>>>>>
>>>> one thing you could do is putting the files of the application (like
>>>> binary,
>>>> images etc.) in a folder like /opt/myapp/. This you can specify in your
>>>> src.pro. There is a packaging guide for Qt applications available in the
>>>> wiki [1]. After doing that you can then have the right path to your
>>>> executable in the *.desktop file.
>>>>
>>>> 1. http://wiki.maemo.org/Packaging_a_Qt_application
>>>>
>>>> Daniel
>>>>
>>>>
>>>>
>>>>
>>>>> Thanks,
>>>>> Sascha
>>>>>
>>>>> On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen <pasi.savanainen@nixu.com
>>>>> <mailto:pasi.savanainen@nixu.com>> wrote:
>>>>>
>>>>> On 6/9/10 5:58 PM, Sascha Mäkelä wrote:
>>>>> > How can I optify a package in Windows using MADDE? Does this work:
>>>>> >
>>>>>
>>>>>
>>>>> http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/
>>>>> >
>>>>> > If it does, how can I install it to MADDE?
>>>>> >
>>>>> > Cheers,
>>>>> > Sascha
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > maemo-developers mailing list
>>>>> > maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
>>>>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>>
>>>>> You cannot use that with MADDE, because maemo-optify* commands use
>>>>> internally some dpkg* command options that are not implemented by
>>>>> MADDE.
>>>>> You have to do optify our packages by hand.
>>>>>
>>>>> -- Pasi
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>

  •  Reply

Re: How to optify in MADDE?

Riku Voipio

2010-06-10 09:57 UTC
On 06/10/2010 11:32 AM, ext Daniil Ivanov wrote:
> Hi Daniel!
>
> Of course manual optification is the way to go when there is no other way.
> But is it so that installing scratchbox and performing optification
> there is considered as too difficult?
> BTW, are there any chances maemo-optify will be included into MADDE?

IMHO Rather than adding support for maemo-optify, madde should optify
(eg. install everything under /opt/projectname/) builds by default when
targeting n900.
  •  Reply

Re: How to optify in MADDE?

Daniil Ivanov
Karma: 31
2010-06-10 10:01 UTC
Hi Riku!

Then why we went to maemo-optify path instead of modifying Debian build tools?
I know it was a huge thread about optification, I didn't dare to read it.
Neither want to start it again :)

Thanks, Daniil.

On Thu, Jun 10, 2010 at 12:57 PM, Riku Voipio <riku.voipio@nokia.com> wrote:
> On 06/10/2010 11:32 AM, ext Daniil Ivanov wrote:
>> Hi Daniel!
>>
>>   Of course manual optification is the way to go when there is no other way.
>>   But is it so that installing scratchbox and performing optification
>> there is considered as too difficult?
>>   BTW, are there any chances maemo-optify will be included into MADDE?
>
> IMHO Rather than adding support for maemo-optify, madde should optify
> (eg. install everything under /opt/projectname/) builds by default when
> targeting n900.
>
  •  Reply

Re: How to optify in MADDE?

Tim Teulings

2010-06-10 10:08 UTC
Hallo!

> Then why we went to maemo-optify path instead of modifying Debian
> build tools?
> I know it was a huge thread about optification, I didn't dare to read it.
> Neither want to start it again :)


Location of application files is not only defined by the packaging
mechanism. Part of the locations are defined by the software at
buildtime (partly configure options), some may be hardcoded. In
general one cannot be sure that after apckaging moves around files the
application can find all of its files.

Optification was a very late "feature" and getting software to run on
the device quickly was a goal while SDK or device modification were
not possible in that short time frame. So a solution was created that
may not require the active support of the developer, by mobinf files
and at the same time creating links from the old to the new location
hiding the movement from the application.

--
Gruß...
Tim


  •  Reply

Re: How to optify in MADDE?

Sascha Makela
Karma: 373
2010-06-10 10:15 UTC
OK, could someone give me or point me to example on how to do this?
Basically the only the src.pro and the .desktop files need to be modified,
right?

Cheers,
Sascha

On Thu, Jun 10, 2010 at 12:49, daniel wilms <daniel.wilms@nokia.com> wrote:

> Hi,
>
> ext Daniil Ivanov wrote:
>
>> Hi Daniel!
>>
>> You have to keep ratio 80%/20% /opt/usr it's not so easy to achieve
>> manually.
>>
>>
>
> it is not required to have this ratio and I think this is rather confusing
> to give that out as a goal. The easiest way is to put everything into a
> separate application-specific folder in opt and the desktop file in it's
> place.
>
>
> Moreover, if you put binary to /opt on MADDE dpkg-buildpackage will
>> fail to set
>> execution bit to your binary (I hope it will be fixed soon).
>>
>>
>>
>
> This is what I said. It is fixed already (this morning ;) ) and should be
> in the next release.
>
>
> Daniel
>
> Thanks, Daniil.
>>
>> On Thu, Jun 10, 2010 at 11:45 AM, daniel wilms <daniel.wilms@nokia.com>
>> wrote:
>>
>>
>>> Hi,
>>>
>>> ext Daniil Ivanov wrote:
>>>
>>>
>>>> Hi Daniel!
>>>>
>>>> Of course manual optification is the way to go when there is no other
>>>> way.
>>>> But is it so that installing scratchbox and performing optification
>>>> there is considered as too difficult?
>>>>
>>>>
>>>>
>>> I think the manual way is reasonably easy. Or which drawback do you see
>>> here? If you have set up your environment already with MADDE, the
>>> optification should not be a reason to install the Platform SDK with
>>> Scratchbox etc. There is just one bug in MADDE, if you package your
>>> application that way, you have to set the rights of your binary to
>>> executable in the postinst file.
>>>
>>>
>>>
>>>
>>>> BTW, are there any chances maemo-optify will be included into MADDE?
>>>>
>>>>
>>>>
>>> I doubt that, but I'm not sure. Will find that out.
>>>
>>> Daniel
>>>
>>>
>>>> Thanks, Daniil.
>>>>
>>>> On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms <daniel.wilms@nokia.com>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> ext Sascha Mäkelä wrote:
>>>>>
>>>>>
>>>>>
>>>>>> OK and how would I do that? Should I edit the src.pro <http://src.pro
>>>>>> >
>>>>>> file and how should it look? Is something else needed?
>>>>>>
>>>>>>
>>>>>>
>>>>> one thing you could do is putting the files of the application (like
>>>>> binary,
>>>>> images etc.) in a folder like /opt/myapp/. This you can specify in your
>>>>> src.pro. There is a packaging guide for Qt applications available in
>>>>> the
>>>>> wiki [1]. After doing that you can then have the right path to your
>>>>> executable in the *.desktop file.
>>>>>
>>>>> 1. http://wiki.maemo.org/Packaging_a_Qt_application
>>>>>
>>>>> Daniel
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Thanks,
>>>>>> Sascha
>>>>>>
>>>>>> On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen <
>>>>>> pasi.savanainen@nixu.com
>>>>>> <mailto:pasi.savanainen@nixu.com>> wrote:
>>>>>>
>>>>>> On 6/9/10 5:58 PM, Sascha Mäkelä wrote:
>>>>>> > How can I optify a package in Windows using MADDE? Does this work:
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/
>>>>>> >
>>>>>> > If it does, how can I install it to MADDE?
>>>>>> >
>>>>>> > Cheers,
>>>>>> > Sascha
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > _______________________________________________
>>>>>> > maemo-developers mailing list
>>>>>> > maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
>>>>>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>>>
>>>>>> You cannot use that with MADDE, because maemo-optify* commands use
>>>>>> internally some dpkg* command options that are not implemented by
>>>>>> MADDE.
>>>>>> You have to do optify our packages by hand.
>>>>>>
>>>>>> -- Pasi
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

  •  Reply
1 2 next