[{"id":15791,"web_url":"https://patchwork.libcamera.org/comment/15791/","msgid":"<20210322102001.GF9888@pyrite.rasen.tech>","date":"2021-03-22T10:20:01","subject":"Re: [libcamera-devel] [PATCH] Add alternative meson install command","submitter":{"id":17,"url":"https://patchwork.libcamera.org/api/people/17/","name":"Paul Elder","email":"paul.elder@ideasonboard.com"},"content":"Hi Vedant,\n\nThank you for the patch.\n\nThis is v3, so the subject should have [PATCH v3]\n\nOn Mon, Mar 22, 2021 at 03:35:50PM +0530, Vedant Paranjape wrote:\n> Changelog:\n> \n> * Updated README.rst to describ meson install issue\n\nThis should go below, as shown below, in imperative form.\n\nYou don't need \"Changelog:\" either, this entire section (until \"---\") is\ncalled the changelog.\n\n> \n> While installing meson using pip3 install --user meson, due to python path issues, build.ninja can't be located by ninja.\n\nLine length 75 characters.\n\n> It gives the following error on ninja -C build install:\n> \n> ninja: Entering directory `build'\n> ninja: error: loading 'build.ninja': No such file or directory\n> \n> After uninstalling meson and installing it without --user argument solved the issue.\n\nUpdate README.rst to describe the meson install issue and solutions.\n\n> \n> Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>\n> ---\n\nRight here, you can put what changed between versions, like:\n\nChanges in v3:\n- expanded the explanation of the issue\n- moved the explanation out of the dependencies section\n\nThis part is more lenient and freeform, as its purpose is to help\nreviewers know what changed in between versions (afaik github just\ndiscards it?) and it won't be committed.\n\n>  README.rst | 7 +++++++\n>  1 file changed, 7 insertions(+)\n> \n> diff --git a/README.rst b/README.rst\n> index 1427c714..b86bcc1d 100644\n> --- a/README.rst\n> +++ b/README.rst\n> @@ -37,6 +37,13 @@ To fetch the sources, build and install:\n>    meson build\n>    ninja -C build install\n>  \n> +Several users have reported issues with meson installation, crux of the issue is a potential version\n> +mismatch between the version that is installed in root, and version that the normal user\n\ns/is installed in root/that root uses/\n\ns/and version/and the version/\n\n> +uses. On calling meson, it can't find the build.ninja module. This can be solved by two ways: \n\ns/by/in/\n\nWas the issue occurring when you \"call meson\" to generate the build\ndirectory:\n\nmeson build\n\nOr was it when you try to ninja install:\n\nninja -C build install\n\n> +\n> +1) Don't install meson again if it is already installed system-wide\n> +2) If you still went ahead and installed, uninstall meson using pip, and install again without --user argument\n\nFor all of this, line length at 80 characters.\n\ns/--user/the --user/\n\nI think \"If you still went ahead and installed\" should be worded\ndifferently. Maybe \"If a meson that is different from the system-wide\nmeson is installed\"? I'm not too certain about this, so it's up to you.\n\n\nPaul\n\n> +\n>  Dependencies\n>  ~~~~~~~~~~~~\n>  \n> -- \n> 2.25.1","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 3EC6ABD80C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 22 Mar 2021 10:20:11 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E559368D62;\n\tMon, 22 Mar 2021 11:20:10 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F072C68D58\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 22 Mar 2021 11:20:08 +0100 (CET)","from pyrite.rasen.tech (unknown\n\t[IPv6:2400:4051:61:600:2c71:1b79:d06d:5032])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 64F18AD6;\n\tMon, 22 Mar 2021 11:20:07 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"GjCVMPqH\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1616408408;\n\tbh=ImSzUdb5zDx+heYk1Yo/rGRInJZiSPTVd65uQrUx0DU=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=GjCVMPqHlfOoHsoutlprz8vSV3c5LTR8KM1rr7TLEVbW5zzya2/SIhxARJRROSRKv\n\tD0R2pQM14UVSHe2eKWO2ZlN9CI1c0iOhOcoSurMRzrEx5qfJiRxgGxgONKBpykQbyB\n\tB/iS18d3Oc3uR1dpES6WrEwMsKzG9jHWLaHSWlO8=","Date":"Mon, 22 Mar 2021 19:20:01 +0900","From":"paul.elder@ideasonboard.com","To":"Vedant Paranjape <vedantparanjape160201@gmail.com>","Message-ID":"<20210322102001.GF9888@pyrite.rasen.tech>","References":"<20210322100550.38227-1-vedantparanjape160201@gmail.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20210322100550.38227-1-vedantparanjape160201@gmail.com>","Subject":"Re: [libcamera-devel] [PATCH] Add alternative meson install command","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Cc":"libcamera-devel@lists.libcamera.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":15795,"web_url":"https://patchwork.libcamera.org/comment/15795/","msgid":"<c8c55c419355eb3d2bf7ee77efec2bd2a6941540.camel@ndufresne.ca>","date":"2021-03-22T19:22:07","subject":"Re: [libcamera-devel] [PATCH] Add alternative meson install command","submitter":{"id":30,"url":"https://patchwork.libcamera.org/api/people/30/","name":"Nicolas Dufresne","email":"nicolas@ndufresne.ca"},"content":"Le lundi 22 mars 2021 à 15:35 +0530, Vedant Paranjape a écrit :\n> Changelog:\n> \n> * Updated README.rst to describ meson install issue\n> \n> While installing meson using pip3 install --user meson, due to python path\n> issues, build.ninja can't be located by ninja.\n> It gives the following error on ninja -C build install:\n\nThis is very vague. I was told on IRC that the error you have hit is when you\nused \"meson install\" in order to install libcamera system wide. This this\ncontext it can fail in two ways:\n\n1) policy kit removes some of your environment which cause the local python\nmodule to be lost, and then system meson endup being used\n2) sudo does not respect your user path, which is likely set in .bashrc, hence\nthe environment is lost, and you endup using your system meson\n\nPerhaps what you want to do is to add a \"Trouble Shooting\" section, and have\nmore precise explanation on which feature may wait and what workaround may be\nused. This is in my opinion a very niche use case. It's also not something I\nwould recommend to use as development work-flow. libcamera source code is\ndesigned to be run in-place for development purpose, and installing should be\nused to make packages or your distribution instead.\n\n> \n> ninja: Entering directory `build'\n> ninja: error: loading 'build.ninja': No such file or directory\n> \n> After uninstalling meson and installing it without --user argument solved the\n> issue.\n> \n> Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>\n> ---\n>  README.rst | 7 +++++++\n>  1 file changed, 7 insertions(+)\n> \n> diff --git a/README.rst b/README.rst\n> index 1427c714..b86bcc1d 100644\n> --- a/README.rst\n> +++ b/README.rst\n> @@ -37,6 +37,13 @@ To fetch the sources, build and install:\n>    meson build\n>    ninja -C build install\n>  \n> +Several users have reported issues with meson installation, crux of the issue\n> is a potential version\n> +mismatch between the version that is installed in root, and version that the\n> normal user\n> +uses. On calling meson, it can't find the build.ninja module. This can be\n> solved by two ways: \n> +\n> +1) Don't install meson again if it is already installed system-wide\n> +2) If you still went ahead and installed, uninstall meson using pip, and\n> install again without --user argument\n> +\n>  Dependencies\n>  ~~~~~~~~~~~~\n>","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 29D72C32E1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 22 Mar 2021 19:22:13 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5B71368D62;\n\tMon, 22 Mar 2021 20:22:12 +0100 (CET)","from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com\n\t[IPv6:2607:f8b0:4864:20::f2a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D163868D50\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 22 Mar 2021 20:22:10 +0100 (CET)","by mail-qv1-xf2a.google.com with SMTP id by2so9221496qvb.11\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 22 Mar 2021 12:22:10 -0700 (PDT)","from nicolas-tpx395.lan (173-246-12-168.qc.cable.ebox.net.\n\t[173.246.12.168]) by smtp.gmail.com with ESMTPSA id\n\t6sm9700743qth.82.2021.03.22.12.22.08\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 22 Mar 2021 12:22:09 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=ndufresne-ca.20150623.gappssmtp.com\n\theader.i=@ndufresne-ca.20150623.gappssmtp.com\n\theader.b=\"OL9Meq5m\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=ndufresne-ca.20150623.gappssmtp.com; s=20150623;\n\th=message-id:subject:from:to:date:in-reply-to:references:user-agent\n\t:mime-version:content-transfer-encoding;\n\tbh=nbYyKrv07/Bl1jRnxei0Jem683L4jpi25lKX0vuub2g=;\n\tb=OL9Meq5mbNMyniOhiajPRZ6EK01sV+xOgwYYYV5eGqX8zWZB4y7FclYJf+KCxDgxan\n\tx9AbfcERKWSw5n3PFqLsFEOVKvHZRVoImx3uX5f0A2pICY4AAzbaD+D0Z68/gJ0fEXBe\n\teXAZBaHcDPSX/kNQ103b/tDjR/KNg1gKKAteOOP0tmFWo5wp5LlRBQZJ2nhcpqb9kR5r\n\t0uNqh232wBw/0k36p+nDR9Q08OAUxO5T3m0K6ozLLkUO0Y4N2C8nId61z0ePABhMCXba\n\t5YkNLiqCmxjxWNRJRd/UgQgbad8OABWDp4v9JsIIcSet3PoaPUhXAhvOPlerqPrBDd/K\n\tjcNg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:message-id:subject:from:to:date:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=nbYyKrv07/Bl1jRnxei0Jem683L4jpi25lKX0vuub2g=;\n\tb=aKI1ZWeeBJE9bA4uPB0qziqp+0vr9/Fbj+JsYMweh87203sWXuOIAh26PkTsCpmOqX\n\tW7AEdNMYQ/WMpdZcfN7MWQ4hH8+fRQdONpwuXa1/L3u4Fqb4HnFOP+vUeasR7TTB2ZxR\n\tEetfYoqcNDqgS0zaMdQxI89ID572LyxWnxPnAs9teec8N61IWzuUMgaAxF9wGNdKiWJA\n\tdMBUsd4ey+BnW1/Uq6qtbvV0QXx1Sl2sCQYfhHuSFQkDqllCGF8kstrxufxbV00jp1Nj\n\t6PTzlmNirzgaXxc7i2S13yDNxsgJvo6DihLGDSp8D+PWokWxGBBvlE8zz9FvoOJs4Uls\n\tMseA==","X-Gm-Message-State":"AOAM532kGTZ1aVdEqc8LtnqrqrW1mhOawJBkNyrUGGU7GZbELwDABKZT\n\taJlHNzQwFEHvXF0DGv3b626dug==","X-Google-Smtp-Source":"ABdhPJzh/sknxJj/sbPmihShFJt418CSmeZnm0SKOQq/SmEpJA7wtvJ5dpGYGgaxBPOoYKzaUsP9IQ==","X-Received":"by 2002:a05:6214:204:: with SMTP id\n\ti4mr1171390qvt.47.1616440929630; \n\tMon, 22 Mar 2021 12:22:09 -0700 (PDT)","Message-ID":"<c8c55c419355eb3d2bf7ee77efec2bd2a6941540.camel@ndufresne.ca>","From":"Nicolas Dufresne <nicolas@ndufresne.ca>","To":"Vedant Paranjape <vedantparanjape160201@gmail.com>, \n\tlibcamera-devel@lists.libcamera.org","Date":"Mon, 22 Mar 2021 15:22:07 -0400","In-Reply-To":"<20210322100550.38227-1-vedantparanjape160201@gmail.com>","References":"<20210322100550.38227-1-vedantparanjape160201@gmail.com>","User-Agent":"Evolution 3.38.4 (3.38.4-1.fc33) ","MIME-Version":"1.0","Subject":"Re: [libcamera-devel] [PATCH] Add alternative meson install command","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":15822,"web_url":"https://patchwork.libcamera.org/comment/15822/","msgid":"<20210323051329.lxs3un4zvp6os3ex@basti-TUXEDO-Book-XA1510>","date":"2021-03-23T05:13:29","subject":"Re: [libcamera-devel] [PATCH] Add alternative meson install command","submitter":{"id":78,"url":"https://patchwork.libcamera.org/api/people/78/","name":"Sebastian Fricke","email":"sebastian.fricke@posteo.net"},"content":"Hey Verdant & Nicolas,\n\nOn 22.03.2021 15:22, Nicolas Dufresne wrote:\n>Le lundi 22 mars 2021 à 15:35 +0530, Vedant Paranjape a écrit :\n>> Changelog:\n>>\n>> * Updated README.rst to describ meson install issue\n>>\n>> While installing meson using pip3 install --user meson, due to python path\n>> issues, build.ninja can't be located by ninja.\n>> It gives the following error on ninja -C build install:\n>\n>This is very vague. I was told on IRC that the error you have hit is when you\n>used \"meson install\" in order to install libcamera system wide. This this\n>context it can fail in two ways:\n>\n>1) policy kit removes some of your environment which cause the local python\n>module to be lost, and then system meson endup being used\n>2) sudo does not respect your user path, which is likely set in .bashrc, hence\n>the environment is lost, and you endup using your system meson\n>\n>Perhaps what you want to do is to add a \"Trouble Shooting\" section, and have\n\nI like this idea, I believe that the installation section should be as\nsmall as possible and centered around the general use-case (where\neverything works as described). If we add to many special cases into\nthat section, then it will become unreadable. A \"Trouble Shooting\"\nsection would work like a little FAQ, which would probably reduce the\namount of newbie questions focused around the installation.\n\nGreetings,\nSebastian\n\n>more precise explanation on which feature may wait and what workaround may be\n>used. This is in my opinion a very niche use case. It's also not something I\n>would recommend to use as development work-flow. libcamera source code is\n>designed to be run in-place for development purpose, and installing should be\n>used to make packages or your distribution instead.\n>\n>>\n>> ninja: Entering directory `build'\n>> ninja: error: loading 'build.ninja': No such file or directory\n>>\n>> After uninstalling meson and installing it without --user argument solved the\n>> issue.\n>>\n>> Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>\n>> ---\n>>  README.rst | 7 +++++++\n>>  1 file changed, 7 insertions(+)\n>>\n>> diff --git a/README.rst b/README.rst\n>> index 1427c714..b86bcc1d 100644\n>> --- a/README.rst\n>> +++ b/README.rst\n>> @@ -37,6 +37,13 @@ To fetch the sources, build and install:\n>>    meson build\n>>    ninja -C build install\n>>  \n>> +Several users have reported issues with meson installation, crux of the issue\n>> is a potential version\n>> +mismatch between the version that is installed in root, and version that the\n>> normal user\n>> +uses. On calling meson, it can't find the build.ninja module. This can be\n>> solved by two ways:\n>> +\n>> +1) Don't install meson again if it is already installed system-wide\n>> +2) If you still went ahead and installed, uninstall meson using pip, and\n>> install again without --user argument\n>> +\n>>  Dependencies\n>>  ~~~~~~~~~~~~\n>>  \n>\n>\n>_______________________________________________\n>libcamera-devel mailing list\n>libcamera-devel@lists.libcamera.org\n>https://lists.libcamera.org/listinfo/libcamera-devel","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id DC0F0C32E4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 23 Mar 2021 05:13:33 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 49BCC6051B;\n\tTue, 23 Mar 2021 06:13:33 +0100 (CET)","from mout01.posteo.de (mout01.posteo.de [185.67.36.65])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 67ACF6051B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 23 Mar 2021 06:13:31 +0100 (CET)","from submission (posteo.de [89.146.220.130]) \n\tby mout01.posteo.de (Postfix) with ESMTPS id AF43D16005F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 23 Mar 2021 06:13:30 +0100 (CET)","from customer (localhost [127.0.0.1])\n\tby submission (posteo.de) with ESMTPSA id 4F4KJp1Cvrz6tmG;\n\tTue, 23 Mar 2021 06:13:30 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=posteo.net header.i=@posteo.net\n\theader.b=\"GnoXV5pT\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;\n\tt=1616476410; bh=OTT2V33ZYohakUaNa8FBfqgwrZkF8sPEIfpGHGzviY8=;\n\th=Date:From:To:Cc:Subject:From;\n\tb=GnoXV5pTG2psSr7dYn/3DP4PJ7MWQqzZ3KFpWvWPui5XYcHUS6oPL8lXm+BSMXHwN\n\tAsFygDUzRVoYBLYLu3iL2v+kDUJ5ofrVB2ZzJ4dFhh/4IKcgT4k3TdXyMq9jUoXUcp\n\tRSXX3yqBpkArKujxN03oUK9TsBVjxwEg2DRfXmQ+a/tnbQs520UbQESHAY7D5s/Hc6\n\t1WgE7fKHC/UDVKU2N+g0cOI80VrX6Dv4NRyRZAT3S4bbvr3RQhrfX10X3UF3BBlmDg\n\tT7VYJN/Pc0uQZisEdYK2dK3ljtXXkmfiOXVon3u+KPiDNI5df1Ka93o0iusy1oAPXH\n\tzOseaXi97fNOQ==","Date":"Tue, 23 Mar 2021 06:13:29 +0100","From":"Sebastian Fricke <sebastian.fricke@posteo.net>","To":"Nicolas Dufresne <nicolas@ndufresne.ca>","Message-ID":"<20210323051329.lxs3un4zvp6os3ex@basti-TUXEDO-Book-XA1510>","References":"<20210322100550.38227-1-vedantparanjape160201@gmail.com>\n\t<c8c55c419355eb3d2bf7ee77efec2bd2a6941540.camel@ndufresne.ca>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<c8c55c419355eb3d2bf7ee77efec2bd2a6941540.camel@ndufresne.ca>","Subject":"Re: [libcamera-devel] [PATCH] Add alternative meson install command","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Cc":"libcamera-devel@lists.libcamera.org,\n\tVedant Paranjape <vedantparanjape160201@gmail.com>","Content-Transfer-Encoding":"base64","Content-Type":"text/plain; charset=\"utf-8\"; Format=\"flowed\"","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":15846,"web_url":"https://patchwork.libcamera.org/comment/15846/","msgid":"<YFqeIVm7Tb9VMEaT@pendragon.ideasonboard.com>","date":"2021-03-24T02:04:17","subject":"Re: [libcamera-devel] [PATCH] Add alternative meson install command","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"content":"Hello,\n\nOn Tue, Mar 23, 2021 at 06:13:29AM +0100, Sebastian Fricke wrote:\n> Hey Verdant & Nicolas,\n> \n> On 22.03.2021 15:22, Nicolas Dufresne wrote:\n> > Le lundi 22 mars 2021 à 15:35 +0530, Vedant Paranjape a écrit :\n> >>  Changelog:\n> >> \n> >>  * Updated README.rst to describ meson install issue\n> >> \n> >>  While installing meson using pip3 install --user meson, due to python path\n> >>  issues, build.ninja can't be located by ninja.\n> >>  It gives the following error on ninja -C build install:\n> > \n> > This is very vague. I was told on IRC that the error you have hit is when you\n> > used \"meson install\" in order to install libcamera system wide. This this\n> > context it can fail in two ways:\n> > \n> > 1) policy kit removes some of your environment which cause the local python\n> > module to be lost, and then system meson endup being used\n> > 2) sudo does not respect your user path, which is likely set in .bashrc, hence\n> > the environment is lost, and you endup using your system meson\n> > \n> > Perhaps what you want to do is to add a \"Trouble Shooting\" section, and have\n> \n> I like this idea, I believe that the installation section should be as\n> small as possible and centered around the general use-case (where\n> everything works as described). If we add to many special cases into\n> that section, then it will become unreadable. A \"Trouble Shooting\"\n> section would work like a little FAQ, which would probably reduce the\n> amount of newbie questions focused around the installation.\n\nNote that we have https://libcamera.org/faq.html, but it may not be the\nbest place for such detailed information.\n\nOne option could also be to create an issue on bugs.libcamera.org, add\nall the relevant information there, and link to it (I'm not sure if it's\nthe best option though).\n\n> > more precise explanation on which feature may wait and what workaround may be\n> > used. This is in my opinion a very niche use case. It's also not something I\n> > would recommend to use as development work-flow. libcamera source code is\n> > designed to be run in-place for development purpose, and installing should be\n> > used to make packages or your distribution instead.\n> > \n> >> \n> >>  ninja: Entering directory `build'\n> >>  ninja: error: loading 'build.ninja': No such file or directory\n> >> \n> >>  After uninstalling meson and installing it without --user argument solved the\n> >>  issue.\n> >> \n> >>  Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>\n> >>  ---\n> >>   README.rst | 7 +++++++\n> >>   1 file changed, 7 insertions(+)\n> >> \n> >>  diff --git a/README.rst b/README.rst\n> >>  index 1427c714..b86bcc1d 100644\n> >>  --- a/README.rst\n> >>  +++ b/README.rst\n> >>  @@ -37,6 +37,13 @@ To fetch the sources, build and install:\n> >>     meson build\n> >>     ninja -C build install\n> >>   \n> >>  +Several users have reported issues with meson installation, crux of the issue\n> >>  is a potential version\n> >>  +mismatch between the version that is installed in root, and version that the\n> >>  normal user\n> >>  +uses. On calling meson, it can't find the build.ninja module. This can be\n> >>  solved by two ways:\n> >>  +\n> >>  +1) Don't install meson again if it is already installed system-wide\n> >>  +2) If you still went ahead and installed, uninstall meson using pip, and\n> >>  install again without --user argument\n> >>  +\n> >>   Dependencies\n> >>   ~~~~~~~~~~~~\n> >>","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id C0142C32E4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 24 Mar 2021 02:05:01 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2CBD168D58;\n\tWed, 24 Mar 2021 03:05:01 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id E980D6051A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 24 Mar 2021 03:04:59 +0100 (CET)","from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi\n\t[62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 56238580;\n\tWed, 24 Mar 2021 03:04:59 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"IvdAipbA\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1616551499;\n\tbh=ha2G2oBFKvL/j5krNVUjPYOnqXTtpY+X7HNDWQhEQ00=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=IvdAipbAJ6QN7NYL7VBAcGKJXqDrXujB/A/EDzdxwMO/3loS/U54UO6PAwhX/KMsP\n\ti9KfunIXdG3GwPiZAAQ2+9WCJs7Is6wgszeVlIorK18BLkwGeNk57leJKasOiDXNMK\n\tIByG9DAfNg1zvUgMNDMIAmA0Jwv2CGn1l5OAcO8o=","Date":"Wed, 24 Mar 2021 04:04:17 +0200","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"Sebastian Fricke <sebastian.fricke@posteo.net>","Message-ID":"<YFqeIVm7Tb9VMEaT@pendragon.ideasonboard.com>","References":"<20210322100550.38227-1-vedantparanjape160201@gmail.com>\n\t<c8c55c419355eb3d2bf7ee77efec2bd2a6941540.camel@ndufresne.ca>\n\t<20210323051329.lxs3un4zvp6os3ex@basti-TUXEDO-Book-XA1510>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20210323051329.lxs3un4zvp6os3ex@basti-TUXEDO-Book-XA1510>","Subject":"Re: [libcamera-devel] [PATCH] Add alternative meson install command","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Cc":"libcamera-devel@lists.libcamera.org,\n\tVedant Paranjape <vedantparanjape160201@gmail.com>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]