Re: Find out Maemo version from script
Marius Gedminas wrote: On Tue, Dec 15, 2009 at 07:50:48PM +0100, Cornelius Hald wrote: I think I will use the osso-product-info command as this seems to be the best way for me to do it. With the other solutions I have some problems: * /etc/osso_software_version does not exist on my N900. * pkg-config is only for *-dev packages and does not exist (by default) on the N900. * Checking for the feature is not possible, as the feature is a bug in some preinstalled library and I don't know in which one. I need this check because I need to figure out whether or not this bug exists and if yes change a couple of files to work around it. So checking for the OSSO_PRODUCT_RELEASE_VERSION with the osso-product-info command should work for me. This sounds very interesting. Can you tell use what the bug is and what files you need to change for the workaround? It´s this one: https://bugs.maemo.org/show_bug.cgi?id=6263 So I´m changing the uri-action-defaults.list in my postinst script if the script is installed on the current Maemo5 version. Cheers! Conny ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Find out Maemo version from script
Hi, I know this has been discussed before, but unfortunately I cannot find it. While developing inside the SDK I used /etc/maemo_version (which is provided by the package maemo-version) to alter the runtime behavior of some scripts. Now on the device I noticed that the package maemo-version does not exist. It seems to be in the SDK repositories only. How do you find out which version of Maemo your script is running on? Shouldn't the package maemo-version just be available in the default repositories? Thanks! Conny ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Find out Maemo version from script
There is /etc/osso_software_version but the file is part of some package that can be uninstalled. Then there is osso-product-info command that reads it from config partition (where it is stored by flasher) and prints it. Why do you need it? Maybe checking specific version of specific feature/debian package is better that this? Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Find out Maemo version from script
On Tue, Dec 15, 2009 at 12:21:58PM +0100, Cornelius Hald wrote: While developing inside the SDK I used /etc/maemo_version (which is provided by the package maemo-version) to alter the runtime behavior of some scripts. I think it's simpler to check the version of some installed packages (using e.g. pkg-config) Berto ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Find out Maemo version from script
On Tue, Dec 15, 2009 at 04:37:23PM +0100, Alberto Garcia wrote: On Tue, Dec 15, 2009 at 12:21:58PM +0100, Cornelius Hald wrote: While developing inside the SDK I used /etc/maemo_version (which is provided by the package maemo-version) to alter the runtime behavior of some scripts. I think it's simpler to check the version of some installed packages (using e.g. pkg-config) And it's even better to check for the *features* you want, rather than the version of the software that has these features. Marius Gedminas -- At most companies, programmers aren't trusted with words that a user might actually see (and for good reason, much of the time). -- Joel Spolski signature.asc Description: Digital signature ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Find out Maemo version from script
On Tue, 2009-12-15 at 17:44 +0200, Marius Gedminas wrote: On Tue, Dec 15, 2009 at 04:37:23PM +0100, Alberto Garcia wrote: On Tue, Dec 15, 2009 at 12:21:58PM +0100, Cornelius Hald wrote: While developing inside the SDK I used /etc/maemo_version (which is provided by the package maemo-version) to alter the runtime behavior of some scripts. I think it's simpler to check the version of some installed packages (using e.g. pkg-config) And it's even better to check for the *features* you want, rather than the version of the software that has these features. Thanks Frantisek, Alberto and Marius! I think I will use the osso-product-info command as this seems to be the best way for me to do it. With the other solutions I have some problems: * /etc/osso_software_version does not exist on my N900. * pkg-config is only for *-dev packages and does not exist (by default) on the N900. * Checking for the feature is not possible, as the feature is a bug in some preinstalled library and I don't know in which one. I need this check because I need to figure out whether or not this bug exists and if yes change a couple of files to work around it. So checking for the OSSO_PRODUCT_RELEASE_VERSION with the osso-product-info command should work for me. Thanks for all the suggestions! Conny ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Find out Maemo version from script
On Tue, Dec 15, 2009 at 07:50:48PM +0100, Cornelius Hald wrote: I think I will use the osso-product-info command as this seems to be the best way for me to do it. With the other solutions I have some problems: * /etc/osso_software_version does not exist on my N900. * pkg-config is only for *-dev packages and does not exist (by default) on the N900. * Checking for the feature is not possible, as the feature is a bug in some preinstalled library and I don't know in which one. I need this check because I need to figure out whether or not this bug exists and if yes change a couple of files to work around it. So checking for the OSSO_PRODUCT_RELEASE_VERSION with the osso-product-info command should work for me. This sounds very interesting. Can you tell use what the bug is and what files you need to change for the workaround? Marius Gedminas -- If the ancients were right and to think is to exist, does Microsoft exist? signature.asc Description: Digital signature ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers