[{"id":15997,"web_url":"https://patchwork.libcamera.org/comment/15997/","msgid":"<20210329065434.GB2475@pyrite.rasen.tech>","date":"2021-03-29T06:54:34","subject":"Re: [libcamera-devel] [PATCH v6] Add alternative meson install\n\tcommand","submitter":{"id":17,"url":"https://patchwork.libcamera.org/api/people/17/","name":"Paul Elder","email":"paul.elder@ideasonboard.com"},"content":"Hi Vedant,\n\nOn Sun, Mar 28, 2021 at 12:50:48AM +0530, Vedant Paranjape wrote:\n> Changes in v6:\n> * Updated README.rst to describe meson install issue\n> * Removed \"changelog\" heading from commit message\n> * Fixed few grammatical mistakes\n> * Reworded few sentences\n> * Added a new troubleshooting section in readme,\n> and shifted meson issue to that section\n\nThis shouldn't be committed into the git history, and so should be after\n--- (marked with <1>).\n\n> While installing meson using pip3 install --user meson, due to python\n> path issues, build.ninja can't be located by ninja. meson generates\n> ninja files fine, but then when you run ninja, it is unable to find\n> meson's build.ninja python module due to path issues.\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 using pip3 and installing it again using pip\n> without --user argument solved the issue.\n\nGood description of the problem and motivation. You should add just one\nline about what you did in the patch, like about adding a solution to\nthe issue in a troubleshooting section.\n\n> \n> Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>\n> ---\n\n<1>\n\n>  README.rst | 19 +++++++++++++++++++\n>  1 file changed, 19 insertions(+)\n> \n> diff --git a/README.rst b/README.rst\n> index 1427c714..fff67762 100644\n> --- a/README.rst\n> +++ b/README.rst\n> @@ -104,3 +104,22 @@ onto the default video display element on your system.\n>    gst-launch-1.0 libcamerasrc camera-name=\"Camera 1\" ! videoconvert ! autovideosink\n>  \n>  .. section-end-getting-started\n> +\n> +Troubleshooting\n> +~~~~~~~~~~~~~~~\n> +\n> +Several users have reported issues with meson installation, crux of the issue is a potential version\n> +mismatch between the version that root uses, and the version that the normal user\n> +uses. On calling `ninja -C build`, it can't find the build.ninja module. This the snippet of error message,\n\nLine wrap at 80 characters.\n\n> +\n> +:: \n> +\n> +  ninja: Entering directory `build'     \n> +  ninja: error: loading 'build.ninja': No such file or directory\n> +\n> +This can be solved in two ways: \n> +\n> +1) Don't install meson again if it is already installed system-wide.\n> +2) If meson which is different from system-wide is already installed, \n\ns/meson/a version of meson/\n\ns/system-wide/the system-wide version/\n\n> +uninstall that meson using pip3, and install again without the --user \n> +argument.\n> \\ No newline at end of file\n\nThere should be a newline at end of file.\n\n\nThe content and structure looks good! I think it's just style that's\nleft.\n\n\nPaul\n\n> -- \n> 2.25.1\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 C9C9BC32EF\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 29 Mar 2021 06:54:44 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 185416877D;\n\tMon, 29 Mar 2021 08:54:44 +0200 (CEST)","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 26DE2602D2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 29 Mar 2021 08:54:43 +0200 (CEST)","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 5A9F83F;\n\tMon, 29 Mar 2021 08:54:41 +0200 (CEST)"],"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=\"NiNSRcFI\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1617000882;\n\tbh=yjKpv1V2l1mK5BmWs9tFOuPBi5VxdNzfH8s8IF6v1ts=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=NiNSRcFIjTs7ElAJ6PN7U8uWcaZfdP8qzZvyM8NrO9+7xV1RPk3G242Vxu0HD6VJY\n\t6k6BvtWqx0r3nnUnrMkJ0k7XhFKzU+4oc7UfZCaWaFkYPQy42ojVBCoZS0YRWz2FO7\n\t4blTw067xzoep+T53z48Wqqh8ghMo6+FygznJY8M=","Date":"Mon, 29 Mar 2021 15:54:34 +0900","From":"paul.elder@ideasonboard.com","To":"Vedant Paranjape <vedantparanjape160201@gmail.com>","Message-ID":"<20210329065434.GB2475@pyrite.rasen.tech>","References":"<20210327192048.121809-1-vedantparanjape160201@gmail.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20210327192048.121809-1-vedantparanjape160201@gmail.com>","Subject":"Re: [libcamera-devel] [PATCH v6] Add alternative meson install\n\tcommand","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>"}}]