[{"id":39648,"web_url":"https://patchwork.libcamera.org/comment/39648/","msgid":"<178359287558.2174993.4261273719547059181@ping.linuxembedded.co.uk>","date":"2026-07-09T10:27:55","subject":"Re: [PATCH] libcamera: Replace outdated git URLs","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"content":"Quoting Laurent Pinchart (2026-07-08 22:55:57)\n> The libcamera main repository has moved to gitlab.freedesktop.org a\n> while ago. https://git.libcamera.org/libcamera/libcamera/ was kept as a\n> mirror, and has now started to redirecto to gitlab.freedesktop.org due\n> to the Gitolite server being decommissioned.\n> \n> This causes several problems:  URLs to files now redirect to\n> non-existing pages, as Gitolite and Gitlab use different URL syntaxes,\n> and \"git clone\" now prints a redirection warning. Even for URLs that\n> redirect properly, following links from the libcamera documentation\n> causes unnecessary redirections.\n> \n> There is no need to keep using the git.libcamera.org host name, as\n> libcamera will stay on gitlab.freedesktop.org for the foreseable future.\n> Fix the issues by replacing git.libcamera.org URLs with their\n> gitlab.freedesktop.org equivalent.\n> \n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n> ---\n> You may notice that some repository URLs now end with a '/', for\n> instance in\n> \n> -  $ git clone https://git.libcamera.org/libcamera/libcamera.git\n> +  $ git clone https://gitlab.freedesktop.org/camera/libcamera.git/\n> \n> or in\n> \n> -# https://git.libcamera.org/libcamera/simple-cam.git\n> +# https://gitlab.freedesktop.org/camera/simple-cam.git/\n> \n> When cloning a Gitlab URL that does not end with '.git', Gitlab\n> redirects to a URL that ends with '.git/'. I have therefore decided to\n> standardize repository URLs with a trailing '/', even if URLs without it\n> work equally fine.\n\naha, that's what I just also discovered from the buildroot patch.\n\nHowever - if you open the web interface and get the URL they report\nwithout a slash:\n\nclicking the 'code' button and clone with https reports:\n\n  https://gitlab.freedesktop.org/camera/simple-cam.git\n\nCloning without the trailing slash doesn't redirect:\n\nkbingham@Monstersaurus:/tmp$ git clone https://gitlab.freedesktop.org/camera/simple-cam.git\nCloning into 'simple-cam'...\nremote: Enumerating objects: 112, done.\nremote: Total 112 (delta 0), reused 0 (delta 0), pack-reused 112 (from 1)\nReceiving objects: 100% (112/112), 23.34 KiB | 23.34 MiB/s, done.\nResolving deltas: 100% (56/56), done.\n\n\nSo I feel like the trailing slash is a bit superfluous and probably a\nbug/nuance in their redirection more than anything.\n\nPersonally I wouldn't add them, but whatever you prefer.\n\n\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\n\n\n\n\n> ---\n>  Documentation/contributing.rst                 | 11 ++++-------\n>  Documentation/guides/application-developer.rst |  4 ++--\n>  Documentation/runtime_configuration.rst        |  4 ++--\n>  README.rst                                     |  2 +-\n>  REUSE.toml                                     |  2 +-\n>  src/py/examples/simple-cam.py                  |  2 +-\n>  6 files changed, 11 insertions(+), 14 deletions(-)\n> \n> diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst\n> index 495bfb3196b3..6942ac8ebb4f 100644\n> --- a/Documentation/contributing.rst\n> +++ b/Documentation/contributing.rst\n> @@ -58,17 +58,14 @@ In the foreseeable future, the following applies:\n>            Following semantic versioning as documented at https://semver.org/\n>  \n>  \n> -The source code is available from the project's `git tree`_.\n> +The source code is available from the project's `git tree`_, hosted by\n> +Freedesktop.\n>  \n>  .. code-block:: shell\n>  \n> -  $ git clone https://git.libcamera.org/libcamera/libcamera.git\n> +  $ git clone https://gitlab.freedesktop.org/camera/libcamera.git/\n>  \n> -.. _git tree: https://git.libcamera.org/libcamera/libcamera.git/\n> -\n> -A development mirror is also hosted on `Freedesktop`_.\n> -\n> -.. _Freedesktop: https://gitlab.freedesktop.org/camera/libcamera\n> +.. _git tree: https://gitlab.freedesktop.org/camera/libcamera/\n>  \n>  Freedesktop also provides our CI and `testing pipeline`_.\n>  \n> diff --git a/Documentation/guides/application-developer.rst b/Documentation/guides/application-developer.rst\n> index a9620ca8620f..bb9a12ba9f5e 100644\n> --- a/Documentation/guides/application-developer.rst\n> +++ b/Documentation/guides/application-developer.rst\n> @@ -475,7 +475,7 @@ instance. An example of how to write image data to disk is available in the\n>  `FileSink class`_ which is a part of the ``cam`` utility application in the\n>  libcamera repository.\n>  \n> -.. _FileSink class: https://git.libcamera.org/libcamera/libcamera.git/tree/src/apps/cam/file_sink.cpp\n> +.. _FileSink class: https://gitlab.freedesktop.org/camera/libcamera/-/blob/master/src/apps/cam/file_sink.cpp\n>  \n>  With the handling of this request completed, it is possible to re-use the\n>  request and the associated buffers and re-queue it to the camera\n> @@ -562,7 +562,7 @@ install the ``pkg-config`` tool to correctly identify the libcamera.so object\n>  install location in the system.\n>  \n>  .. _Meson build system: https://mesonbuild.com/\n> -.. _git repository: https://git.libcamera.org/libcamera/libcamera.git/\n> +.. _git repository: https://gitlab.freedesktop.org/camera/libcamera.git/\n>  \n>  Dependencies\n>  ~~~~~~~~~~~~\n> diff --git a/Documentation/runtime_configuration.rst b/Documentation/runtime_configuration.rst\n> index 2cdffb335a66..a71b715a1724 100644\n> --- a/Documentation/runtime_configuration.rst\n> +++ b/Documentation/runtime_configuration.rst\n> @@ -256,7 +256,7 @@ Log categories\n>  \n>  Every category represents a specific area of the libcamera codebase,\n>  the names can be located within the source code, for example:\n> -`src/libcamera/camera_manager.cpp <https://git.libcamera.org/libcamera/libcamera.git/tree/src/libcamera/camera_manager.cpp#n35>`__\n> +`src/libcamera/camera_manager.cpp <https://gitlab.freedesktop.org/camera/libcamera/-/blob/master/src/libcamera/camera_manager.cpp#L38>`__\n>  \n>  .. code:: cpp\n>  \n> @@ -287,7 +287,7 @@ usually contain tuning parameters for the algorithms, in JSON format.\n>  The ``LIBCAMERA_IPA_CONFIG_PATH`` variable can be used to specify custom\n>  storage locations to search for those configuration files.\n>  \n> -`Examples <https://git.libcamera.org/libcamera/libcamera.git/tree/src/ipa/rpi/vc4/data>`__\n> +`Examples <https://gitlab.freedesktop.org/camera/libcamera/-/blob/master/src/ipa/rpi/vc4/data>`__\n>  \n>  IPA module\n>  ~~~~~~~~~~\n> diff --git a/README.rst b/README.rst\n> index 56b2e0956e36..33b910c6ef3d 100644\n> --- a/README.rst\n> +++ b/README.rst\n> @@ -29,7 +29,7 @@ To fetch the sources, build and install:\n>  \n>  .. code::\n>  \n> -  git clone https://git.libcamera.org/libcamera/libcamera.git\n> +  git clone https://gitlab.freedesktop.org/camera/libcamera.git/\n>    cd libcamera\n>    meson setup build\n>    ninja -C build install\n> diff --git a/REUSE.toml b/REUSE.toml\n> index e7509ac41532..4783811b43e2 100644\n> --- a/REUSE.toml\n> +++ b/REUSE.toml\n> @@ -1,7 +1,7 @@\n>  version = 1\n>  SPDX-PackageName = \"libcamera\"\n>  SPDX-PackageSupplier = \"Laurent Pinchart <laurent.pinchart@ideasonboard.com>\"\n> -SPDX-PackageDownloadLocation = \"https://git.libcamera.org/libcamera/libcamera.git/\"\n> +SPDX-PackageDownloadLocation = \"https://gitlab.freedesktop.org/camera/libcamera/\"\n>  \n>  [[annotations]]\n>  path = [\n> diff --git a/src/py/examples/simple-cam.py b/src/py/examples/simple-cam.py\n> index 1cd1019da955..78cfae57ad0a 100755\n> --- a/src/py/examples/simple-cam.py\n> +++ b/src/py/examples/simple-cam.py\n> @@ -6,7 +6,7 @@\n>  # A simple libcamera capture example\n>  #\n>  # This is a python version of simple-cam from:\n> -# https://git.libcamera.org/libcamera/simple-cam.git\n> +# https://gitlab.freedesktop.org/camera/simple-cam.git/\n>  #\n>  # \\todo Move to simple-cam repository when the Python API has stabilized more\n>  \n> \n> base-commit: 32b0d940baaf182a9d01d4833e30bd340d4dc918\n> -- \n> Regards,\n> \n> Laurent Pinchart\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 287B8C3301\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  9 Jul 2026 10:27:59 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E23CD660D9;\n\tThu,  9 Jul 2026 12:27:58 +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 E443965FA2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  9 Jul 2026 12:27:57 +0200 (CEST)","from monstersaurus.ideasonboard.com\n\t(cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 8AD9B593;\n\tThu,  9 Jul 2026 12:27:07 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"KLq9+0MY\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1783592827;\n\tbh=/JAw90QbFNY0v2lttuoFVGXGENIdPWHFo3ryQaT1Mkg=;\n\th=In-Reply-To:References:Subject:From:To:Date:From;\n\tb=KLq9+0MYO3hAw+UWQU8BZmokHd0AKlRvViMXqhErOGHuaRL58aVDg5dKKnPpo3pD0\n\tL2Rai8J/JO/WPi5wWDaYpzK8qk7/vfGsoGyHkqTVX0pJMN7R4ULqChkHr/UTEF0bl8\n\trlNGBqCebPz9qYJH1I7halVZUeGsXnUeDw7AW5/M=","Content-Type":"text/plain; charset=\"utf-8\"","MIME-Version":"1.0","Content-Transfer-Encoding":"quoted-printable","In-Reply-To":"<20260708215557.416365-1-laurent.pinchart@ideasonboard.com>","References":"<20260708215557.416365-1-laurent.pinchart@ideasonboard.com>","Subject":"Re: [PATCH] libcamera: Replace outdated git URLs","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tlibcamera-devel@lists.libcamera.org","Date":"Thu, 09 Jul 2026 11:27:55 +0100","Message-ID":"<178359287558.2174993.4261273719547059181@ping.linuxembedded.co.uk>","User-Agent":"alot/0.9.1","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]