{"action":"created","issue":{"url":"https://api.github.com/repos/SUSE/kiwi/issues/658","repository_url":"https://api.github.com/repos/SUSE/kiwi","labels_url":"https://api.github.com/repos/SUSE/kiwi/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/SUSE/kiwi/issues/658/comments","events_url":"https://api.github.com/repos/SUSE/kiwi/issues/658/events","html_url":"https://github.com/SUSE/kiwi/issues/658","id":303094359,"number":658,"title":"Profiles should be able to get grouped","user":{"login":"agraf","id":367209,"avatar_url":"https://avatars3.githubusercontent.com/u/367209?v=4","gravatar_id":"","url":"https://api.github.com/users/agraf","html_url":"https://github.com/agraf","followers_url":"https://api.github.com/users/agraf/followers","following_url":"https://api.github.com/users/agraf/following{/other_user}","gists_url":"https://api.github.com/users/agraf/gists{/gist_id}","starred_url":"https://api.github.com/users/agraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agraf/subscriptions","organizations_url":"https://api.github.com/users/agraf/orgs","repos_url":"https://api.github.com/users/agraf/repos","events_url":"https://api.github.com/users/agraf/events{/privacy}","received_events_url":"https://api.github.com/users/agraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"davidcassany","id":6428768,"avatar_url":"https://avatars3.githubusercontent.com/u/6428768?v=4","gravatar_id":"","url":"https://api.github.com/users/davidcassany","html_url":"https://github.com/davidcassany","followers_url":"https://api.github.com/users/davidcassany/followers","following_url":"https://api.github.com/users/davidcassany/following{/other_user}","gists_url":"https://api.github.com/users/davidcassany/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcassany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcassany/subscriptions","organizations_url":"https://api.github.com/users/davidcassany/orgs","repos_url":"https://api.github.com/users/davidcassany/repos","events_url":"https://api.github.com/users/davidcassany/events{/privacy}","received_events_url":"https://api.github.com/users/davidcassany/received_events","type":"User","site_admin":false},"assignees":[{"login":"davidcassany","id":6428768,"avatar_url":"https://avatars3.githubusercontent.com/u/6428768?v=4","gravatar_id":"","url":"https://api.github.com/users/davidcassany","html_url":"https://github.com/davidcassany","followers_url":"https://api.github.com/users/davidcassany/followers","following_url":"https://api.github.com/users/davidcassany/following{/other_user}","gists_url":"https://api.github.com/users/davidcassany/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcassany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcassany/subscriptions","organizations_url":"https://api.github.com/users/davidcassany/orgs","repos_url":"https://api.github.com/users/davidcassany/repos","events_url":"https://api.github.com/users/davidcassany/events{/privacy}","received_events_url":"https://api.github.com/users/davidcassany/received_events","type":"User","site_admin":false}],"milestone":null,"comments":21,"created_at":"2018-03-07T13:17:27Z","updated_at":"2018-03-08T10:30:35Z","closed_at":null,"author_association":"MEMBER","body":"## Problem description\r\nWhen building an image description, we can potentially have multiple profiles that together make up the actual expected build target. For example, you may have profiles for \"VMware\", \"x11_common\" and \"gnome\". The expected build target would be \"VMware-gnome\" which can then combine all the targets required.\r\n\r\n## Expected behaviour\r\nThere are multiple ideas on how to accomplish this. One idea would be to add a special \"profiles group\" tag in parallel to the \"profiles\" one that defines groups:\r\n\r\n```\r\n  <profilegroups>\r\n    <profilegroup name=\"VMware-gnome\" includes=\"VMware,x11_common,gnome\">\r\n  </profilegroups>\r\n```\r\nAnother idea (probably better IMHO) would be to just allow profiles to include other profiles automatically:\r\n\r\n```\r\n  <profiles>\r\n    <profile name=\"VMware\" />\r\n    <profile name=\"x11_common\" />\r\n    <profile name=\"gnome\" />\r\n    <profile name=\"VMware-gnome\" includes=\"VMware,x11_common,gnome\" />\r\n  </profiles>\r\n```\r\n\r\nThat's probably more consistent and easier to integrate in OBS.\r\n\r\n@adrianschroeter @Vogtinator both can provide more ideas if needed.\r\n\r\n## Steps to reproduce the behaviour\r\n\r\n## OS and Software information\r\n+ KIWI version: \r\n+ Operating system: \r\n+ OBS version: \r\n"},"comment":{"url":"https://api.github.com/repos/SUSE/kiwi/issues/comments/371447577","html_url":"https://github.com/SUSE/kiwi/issues/658#issuecomment-371447577","issue_url":"https://api.github.com/repos/SUSE/kiwi/issues/658","id":371447577,"user":{"login":"schaefi","id":912234,"avatar_url":"https://avatars0.githubusercontent.com/u/912234?v=4","gravatar_id":"","url":"https://api.github.com/users/schaefi","html_url":"https://github.com/schaefi","followers_url":"https://api.github.com/users/schaefi/followers","following_url":"https://api.github.com/users/schaefi/following{/other_user}","gists_url":"https://api.github.com/users/schaefi/gists{/gist_id}","starred_url":"https://api.github.com/users/schaefi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schaefi/subscriptions","organizations_url":"https://api.github.com/users/schaefi/orgs","repos_url":"https://api.github.com/users/schaefi/repos","events_url":"https://api.github.com/users/schaefi/events{/privacy}","received_events_url":"https://api.github.com/users/schaefi/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T10:30:35Z","updated_at":"2018-03-08T10:30:35Z","author_association":"MEMBER","body":"> It's trivial as it's unconditional: Just check whether the profile you're adding was already added\r\n\r\nIt's immaterial if it's trivial, it's imho not needed and I don't see a reason for nested profiles. To be honest I don't want people to even think about the possibility. When you design an image description you do it in the most simple way, you use the smallest possible package list, you try to use less to no profiles to keep the number of indirection small, you try to handle one target and you want to do this explicit without having the need to recursively go back in a nested profile structure to see a list of names which should just be presented to you by one short look. An image description is just reading no thinking and no unneeded complexity please. Reading the same thing twice does not hurt\r\n\r\n> k, @schaefi, could you make it in a way that it does not matter if the name in a profile or a group then? means that kiwi --profile XXX would match group or profile, so we don't need new interfaces? Means of course you can not have a group with the same name as a profile ...\r\n\r\nWell you are suggesting that because it makes the use of the feature on the obs side easier. From an implementation point of view it feels odd that a group name is the same than a profile name. Don't get me wrong but magic assumptions behind the scene is one of the reasons why the perl version of kiwi turned into bad shape. Maybe you can imagine that we (and @davidcassany  please object when I'm wrong) are not motivated to drive the implementation with changing the meaning of the --profile option\r\n\r\nThanks"}}
{"actor":{"display_login":"schaefi"}}