I am not talking about device detection here, I am just concerned that we will 
have loads of packages (source packages) done in different way for 
configuration files. Instead, we should group such configuration in one package 
and create sub-packages for the specific devices with the corresponding file. 
this way, configuration for policy in meego is found in one package and not 
multiple packages all over the place which might run out of sync.

The hw/device detection issue is well known and is on a different level....
Anas

On 10 Jan 2011, at 15:56, Carsten Munk wrote:

> One arguments against having one package is that behaviour policy is
> often very vendor and device specific. There is often multiple
> behaviours per platform as there are multiple devices to be concerned
> about based upon the platform.
> 
> Obviously it should be possible to have an image that autodetects
> which device and hence what policy should be in use on a platform
> image, so multiple policies should be installable in one image but:
> 
> We'd be going for a failure in making it easy for people to productize
> MeeGo by having one giant blob of device policies, in my humble
> opinion - people should be able to take a reference package, customize
> it towards their device, end of story. Shouldn't have to dive into a
> big package of many different devices and figure out how it works :)
> 
> /Carsten
> 
> 
> 2011/1/10 Anas Nashif <[email protected]>:
>> why do we have multiple packages for this, it would be easier and more 
>> manageable to have one package with sub-packages per platform.
>> 
>> Anas
>> 
>> 
>> On 10 Jan 2011, at 15:42, Markus Lehtonen wrote:
>> 
>>> Hi,
>>> Adding new package policy-settings-basic-n900 in project Trunk:Testing. 
>>> Please review and accept ASAP.
>>> 
>>> Justification for this new package:
>>> 
>>> This package provices basic MeeGo policy settings for the Nokia N900. This
>>> package is required for FEA#6701.
>>> 
>>> Thank You,
>>> Markus Lehtonen
>>> 
>>> [This message was auto-generated]
>>> 
>>> ---
>>> 
>>> Request #11692:
>>> 
>>>  submit:   devel:resourcepolicy/policy-settings-basic-n900(r3) -> 
>>> Trunk:Testing/policy-settings-basic-n900
>>> 
>>> 
>>> Message:
>>>    This package provices basic MeeGo policy settings for the Nokia N900. 
>>> This
>>> package is required for FEA#6701.
>>> 
>>> State:   new          2011-01-10T07:42:52 mlehtonen
>>> Comment: None
>>> 
>>> 
>>> This is a NEW package in Trunk:Testing project.
>>> The files in the new package:
>>> policy-settings-basic-n900/
>>>  |__  policy-settings-n900-0.0.1.tar.gz
>>>  |__  policy-settings-n900.changes
>>>  |__  policy-settings-n900.spec
>>>  |__  policy-settings-n900.yaml
>>> 
>>> The content of the YAML file, policy-settings-n900.yaml:
>>> ===================================================================
>>> Name: policy-settings-n900
>>> Summary: Precompiled basic MeeGo policy settings for the N900
>>> Version: 0.0.1
>>> Release: 0
>>> Group: System/Resource Policy
>>> License: GPLv2
>>> Sources:
>>>    - "%{name}-%{version}.tar.gz"
>>> Description: Precompiled basic MeeGo policy settings for the N900.
>>> 
>>> Requires:
>>>    - ohm
>>>    - ohm-plugins-misc
>>>    - ohm-plugin-resolver
>>>    - ohm-plugin-ruleengine
>>>    - pulseaudio-policy-enforcement
>>> PkgBR:
>>>    - libdres-utils
>>>    - swi-prolog
>>>    - swi-prolog-library
>>>    - libprolog
>>>    - prolog-resourcepolicy-extensions
>>> Provides:
>>>    - policy-settings
>>> Configure: autogen
>>> Builder: none
>>> BuildArch: noarch
>>> SubPackages:
>>>    - Name: text
>>>      Summary: Basic MeeGo policy settings sources for the N900
>>>      Group: System/Resource Policy
>>>      Description: Basic MeeGo policy settings sources for the N900.
>>>      AutoDepend: false
>>>      Requires:
>>>          - swi-prolog-library
>>>          - ohm
>>>          - ohm-plugins-misc
>>>          - ohm-plugin-resolver
>>>          - ohm-plugin-ruleengine
>>>          - pulseaudio-policy-enforcement
>>>      Provides:
>>>          - policy-settings
>>> 
>>> 
>>> ===================================================================
>>> 
>>> 
>>> The content of the spec file, policy-settings-n900.spec:
>>> ===================================================================
>>> #
>>> # Do NOT Edit the Auto-generated Part!
>>> # Generated by: spectacle version 0.22git
>>> #
>>> # >> macros
>>> # << macros
>>> 
>>> Name:       policy-settings-n900
>>> Summary:    Precompiled basic MeeGo policy settings for the N900
>>> Version:    0.0.1
>>> Release:    0
>>> Group:      System/Resource Policy
>>> License:    GPLv2
>>> BuildArch:  noarch
>>> Source0:    %{name}-%{version}.tar.gz
>>> Source100:  policy-settings-n900.yaml
>>> Requires:   ohm
>>> Requires:   ohm-plugins-misc
>>> Requires:   ohm-plugin-resolver
>>> Requires:   ohm-plugin-ruleengine
>>> Requires:   pulseaudio-policy-enforcement
>>> BuildRequires:  libdres-utils
>>> BuildRequires:  swi-prolog
>>> BuildRequires:  swi-prolog-library
>>> BuildRequires:  libprolog
>>> BuildRequires:  prolog-resourcepolicy-extensions
>>> Provides:   policy-settings
>>> 
>>> 
>>> %description
>>> Precompiled basic MeeGo policy settings for the N900.
>>> 
>>> 
>>> %package text
>>> Summary:    Basic MeeGo policy settings sources for the N900
>>> Group:      System/Resource Policy
>>> Requires:   swi-prolog-library
>>> Requires:   ohm
>>> Requires:   ohm-plugins-misc
>>> Requires:   ohm-plugin-resolver
>>> Requires:   ohm-plugin-ruleengine
>>> Requires:   pulseaudio-policy-enforcement
>>> Provides:   policy-settings
>>> 
>>> %description text
>>> Basic MeeGo policy settings sources for the N900.
>>> 
>>> 
>>> %prep
>>> %setup -q -n %{name}-%{version}
>>> 
>>> # >> setup
>>> # << setup
>>> 
>>> %build
>>> # >> build pre
>>> # << build pre
>>> 
>>> %autogen --disable-static
>>> %configure --disable-static
>>> 
>>> # >> build post
>>> make %{?jobs:-j%jobs}
>>> # << build post
>>> %install
>>> rm -rf %{buildroot}
>>> # >> install pre
>>> # << install pre
>>> 
>>> # >> install post
>>> make DESTDIR=%{buildroot} INSTALL_SYMLINKS=1 install
>>> # << install post
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> %files
>>> %defattr(-,root,root,-)
>>> # >> files
>>> %{_datadir}/policy/etc/current
>>> %{_datadir}/policy/rules/current
>>> %config %{_sysconfdir}/ohm/*.ini
>>> %config %{_sysconfdir}/ohm/plugins.d/*.ini
>>> %config %{_sysconfdir}/pulse/xpolicy.conf
>>> %{_datadir}/policy/rules/basic/*.plc
>>> %{_datadir}/policy/rules/basic/*.dresc
>>> %{_datadir}/policy/etc/basic/*.conf
>>> %{_datadir}/policy/etc/basic/ohm
>>> %{_datadir}/policy/etc/basic/pulse
>>> # << files
>>> 
>>> 
>>> %files text
>>> %defattr(-,root,root,-)
>>> # >> files text
>>> %{_datadir}/policy/etc/current
>>> %{_datadir}/policy/rules/current
>>> %config %{_sysconfdir}/ohm/*.ini
>>> %config %{_sysconfdir}/ohm/plugins.d/*.ini
>>> %config %{_sysconfdir}/pulse/xpolicy.conf
>>> %{_datadir}/policy/rules/basic/*.pl
>>> %{_datadir}/policy/rules/basic/*.dres
>>> %{_datadir}/policy/etc/basic/*.conf
>>> %{_datadir}/policy/etc/basic/ohm
>>> %{_datadir}/policy/etc/basic/pulse
>>> # << files text
>>> 
>>> 
>>> ===================================================================
>>> 
>>> _______________________________________________
>>> MeeGo-commits mailing list
>>> [email protected]
>>> http://lists.meego.com/listinfo/meego-commits
>> 
>> _______________________________________________
>> MeeGo-packaging mailing list
>> [email protected]
>> http://lists.meego.com/listinfo/meego-packaging
>> 

_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging

Reply via email to