{"action":"created","issue":{"url":"https://api.github.com/repos/SELinuxProject/selinux/issues/64","repository_url":"https://api.github.com/repos/SELinuxProject/selinux","labels_url":"https://api.github.com/repos/SELinuxProject/selinux/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/SELinuxProject/selinux/issues/64/comments","events_url":"https://api.github.com/repos/SELinuxProject/selinux/issues/64/events","html_url":"https://github.com/SELinuxProject/selinux/issues/64","id":260925236,"number":64,"title":"semodule_deps show wrong dependencies","user":{"login":"sopos","id":16821184,"avatar_url":"https://avatars1.githubusercontent.com/u/16821184?v=4","gravatar_id":"","url":"https://api.github.com/users/sopos","html_url":"https://github.com/sopos","followers_url":"https://api.github.com/users/sopos/followers","following_url":"https://api.github.com/users/sopos/following{/other_user}","gists_url":"https://api.github.com/users/sopos/gists{/gist_id}","starred_url":"https://api.github.com/users/sopos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopos/subscriptions","organizations_url":"https://api.github.com/users/sopos/orgs","repos_url":"https://api.github.com/users/sopos/repos","events_url":"https://api.github.com/users/sopos/events{/privacy}","received_events_url":"https://api.github.com/users/sopos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-27T10:32:00Z","updated_at":"2017-10-03T14:46:06Z","closed_at":null,"author_association":"NONE","body":"Particularly showed requirements are shifted by one index.\r\n\r\n```\r\ncat > module1.te << EOF\r\nmodule module1 1.0;\r\nrequire {\r\n        type bin_t;\r\n}\r\ntype module1_t;\r\nEOF\r\ncat > module2.te << EOF\r\nmodule module2 1.0;\r\nrequire {\r\n        type bin_t;\r\n}\r\ntype module2_t;\r\nEOF\r\ncat > module3.te << EOF\r\nmodule module3 1.0;\r\nrequire {\r\n        type module1_t;\r\n}\r\ntype module3_t;\r\nEOF\r\ncat > module4.te << EOF\r\nmodule module4 1.0;\r\nrequire {\r\n        type module2_t;\r\n}\r\ntype module4_t;\r\nEOF\r\ncat > module5.te << EOF\r\nmodule module5 1.0;\r\nrequire {\r\n        type module1_t;\r\n        type module4_t;\r\n}\r\ntype module5_t;\r\nEOF\r\ncat > module6.te << EOF\r\nmodule module6 1.0;\r\nrequire {\r\n        type module3_t;\r\n        type module4_t;\r\n}\r\ntype module6_t;\r\nEOF\r\nmake -f /usr/share/selinux/devel/Makefile\r\nsemodule -E base\r\n\r\nsemodule_deps base.pp module1.pp module2.pp module3.pp module4.pp module5.pp module6.pp\r\nmodule: module1\r\n        [no dependencies]\r\nmodule: module2\r\n        [no dependencies]\r\nmodule: module3\r\n        module2\r\nmodule: module4\r\n        module3\r\nmodule: module5\r\n        module2\r\n        module5\r\nmodule: module6\r\n        module4\r\n        module5\r\n}\r\n```\r\nMoreover there is `}` at the end.\r\n\r\nI have taken a quick look at the code but have not been able to identify the buggy part. The output seems to be simple enough and sane so I suspect the `generate_requires` function."},"comment":{"url":"https://api.github.com/repos/SELinuxProject/selinux/issues/comments/333865345","html_url":"https://github.com/SELinuxProject/selinux/issues/64#issuecomment-333865345","issue_url":"https://api.github.com/repos/SELinuxProject/selinux/issues/64","id":333865345,"user":{"login":"stephensmalley","id":7840580,"avatar_url":"https://avatars2.githubusercontent.com/u/7840580?v=4","gravatar_id":"","url":"https://api.github.com/users/stephensmalley","html_url":"https://github.com/stephensmalley","followers_url":"https://api.github.com/users/stephensmalley/followers","following_url":"https://api.github.com/users/stephensmalley/following{/other_user}","gists_url":"https://api.github.com/users/stephensmalley/gists{/gist_id}","starred_url":"https://api.github.com/users/stephensmalley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephensmalley/subscriptions","organizations_url":"https://api.github.com/users/stephensmalley/orgs","repos_url":"https://api.github.com/users/stephensmalley/repos","events_url":"https://api.github.com/users/stephensmalley/events{/privacy}","received_events_url":"https://api.github.com/users/stephensmalley/received_events","type":"User","site_admin":false},"created_at":"2017-10-03T14:46:06Z","updated_at":"2017-10-03T14:46:06Z","author_association":"OWNER","body":"I have posted a patch to selinux list to remove semodule_deps; it will be merged in a few days unless there is a strong objection (and someone can actually fix it)."}}
{"actor":{"display_login":"stephensmalley"}}