{"issue":{"user":{"id":658081,"login":"Prakash-Surya","url":"https://api.github.com/users/Prakash-Surya","gravatar_id":"ea8270b9f1f868833a8cdbb325384ed2","avatar_url":"https://secure.gravatar.com/avatar/ea8270b9f1f868833a8cdbb325384ed2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"created_at":"2011-12-16T06:05:08Z","title":"Incorrect linux distribution is detected on Arch Linux","state":"open","updated_at":"2011-12-16T06:05:08Z","labels":[],"id":2576657,"html_url":"https://github.com/zfsonlinux/spl/issues/72","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"During the configure step on an Arch Linux system, the linux distribution is incorrectly being detected as 'ubuntu' and the default package to be 'deb'.\r\n\r\n    $ ./configure\r\n    ...\r\n    checking linux distribution... ubuntu\r\n    checking default package type... deb\r\n    ...\r\n\r\nThe linux distribution is determined by the `SPL_AC_DEFAULT_PACKAGE` autoconf macro as such:\r\n\r\n<pre>\r\n...\r\n        elif test -f /etc/lsb-release ; then\r\n                VENDOR=ubuntu ;\r\n...\r\n        elif test -f /etc/arch-release ; then\r\n                VENDOR=arch ;\r\n...\r\n</pre>\r\n\r\nThe problem lies in the fact that Arch Linux provides an `/etc/lsb-release` file:\r\n\r\n<pre>\r\n$ cat /etc/lsb-release\r\nDISTRIB_DESCRIPTION=\"Arch Linux\"\r\n</pre>\r\n\r\nI _think_ simply moving the test for arch, above the test for ubuntu would solve the issue. Although I haven't yet tested that theory. Perhaps there's a more appropriate file to test against for the ubuntu distro? `/etc/lsb-release` doesn't seem too specific to ubuntu, perhaps this issue is even present under distributions other than arch.","number":72,"url":"https://api.github.com/repos/zfsonlinux/spl/issues/72","comments":0,"assignee":null},"action":"opened"}