From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iAVZN4vD42NY6wAAbAwnHQ (envelope-from ) for ; Wed, 08 Feb 2023 16:45:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mNNSN4vD42PAmAAA9RJhRA (envelope-from ) for ; Wed, 08 Feb 2023 16:45:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A01442CEA7 for ; Wed, 8 Feb 2023 16:45:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPmd9-0006R8-CP; Wed, 08 Feb 2023 10:45:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPmd4-0006QV-Hg for guix-patches@gnu.org; Wed, 08 Feb 2023 10:45:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPmd4-0001T2-5y for guix-patches@gnu.org; Wed, 08 Feb 2023 10:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPmd3-0003fr-M7 for guix-patches@gnu.org; Wed, 08 Feb 2023 10:45:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61246] [PATCH v2] gnu: libgit2: Update to 1.5.1. Resent-From: =?UTF-8?Q?Andr=C3=A9?= Batista Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Feb 2023 15:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61246 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61246@debbugs.gnu.org Received: via spool by 61246-submit@debbugs.gnu.org id=B61246.167587107014054 (code B ref 61246); Wed, 08 Feb 2023 15:45:01 +0000 Received: (at 61246) by debbugs.gnu.org; 8 Feb 2023 15:44:30 +0000 Received: from localhost ([127.0.0.1]:56355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPmcX-0003eW-T2 for submit@debbugs.gnu.org; Wed, 08 Feb 2023 10:44:30 -0500 Received: from mx0.riseup.net ([198.252.153.6]:56948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPmcS-0003e7-UT for 61246@debbugs.gnu.org; Wed, 08 Feb 2023 10:44:28 -0500 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4PBknZ5w2lz9sxB for <61246@debbugs.gnu.org>; Wed, 8 Feb 2023 15:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1675871058; bh=joANxmxvoaBNgVEF54IKzrHL7/5o7GEgNiXViV81sTs=; h=Date:From:To:Subject:References:In-Reply-To:From; b=rVYVUseUnsaFQsleJZfRhZp7y6dqL4iCycBFXLp8ica4shjAu5FkEgBwSfaxUj8c9 O8J6EmDKnpU+aR9gi5FUfiBeFNujXAnOOSlpb07IxClmlEWw77cG9oq8vqLTlSXM6r lwnXPSRlX4eq51B4tun7VFFmv4/fYm1jncgNCZwY= X-Riseup-User-ID: 697327D9398C1F951AF4824355E508D0C11CAF392DC97B54661711F48A143F4E Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4PBknX6PVzz1yCw for <61246@debbugs.gnu.org>; Wed, 8 Feb 2023 15:44:16 +0000 (UTC) Date: Wed, 8 Feb 2023 12:43:58 -0300 From: =?UTF-8?Q?Andr=C3=A9?= Batista Message-ID: References: <20230203031129.3529-1-nandre@riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gdacvxlmmRaNFQas" Content-Disposition: inline In-Reply-To: <20230203031129.3529-1-nandre@riseup.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=rVYVUseU; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675871115; a=rsa-sha256; cv=none; b=Nk9MmaFpMVDFzwCC8wdBeS/LV/tU1M7F30kzm159Z13EdATMCEiFuj9uXjGACXxalUurts pA8xoYDOLd/IjytPh/kKdghidEh5n5IraAE6WwWdLqCASLnA0MSG8O4BPq9gDUzDVN9/1T jv8SGnFNNX7VkSUkUcC5mFYFMTYYpp95IR3pWXlJZK+DJnLivmp1/2NsrUfwaUbR9oQm8L 8OqFFJNy2GozsQ0XodeujpwksDRJZtpZ6ePizsJ3txAWCqyp6jDK6xAMpNtl/BsYjV5vcP w7QeYF8iTPLpUsXKm7PcVwXCunLLrIt9HJBoTTnuvFmKZbb5BSYHjqSh/ohNTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675871115; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=YBEbbosPb2zw+LQ4tztFQQKkVdYlgticBCVPyP0tKL0=; b=FIad2Tr4ia8Gsfmpy9FzUmRmdzyz8qbNIfoMGM29LfiBCJbXXyD7B03Ye1Dgm5qAErfhgG 9E2TkJCqBGwQOECdxCbT4dmd6lAFTXqorkjSq9RI2oYXmfuDdhb5JidJNJ88huk09vEG2k uQEiPfTdKVlM3HySWBR81f4C3RiTFnXUk9ipx5uWYUV1ht4jLYU4iUZqtrTDktFLsSN9Su 44cmZBJYQr4TKo4IUDmfqw++LqK+Jy/A6Wbt/bYxGbEIOlOTy+MgzYq6iraaBuY8DuBuv/ LgMwgBHA+5vtpewhSBnsIsGfyxGR/nmZ7YQt4DYKDFXxVhm6O0WTGQlJg39y6g== X-Migadu-Spam-Score: -3.70 X-Spam-Score: -3.70 X-Migadu-Queue-Id: A01442CEA7 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=rVYVUseU; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) X-TUID: CWNahsDsJxHt --gdacvxlmmRaNFQas Content-Type: multipart/mixed; boundary="KsrHdQxclZKfBIQV" Content-Disposition: inline --KsrHdQxclZKfBIQV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline There were both a missing space on the copyright and a missing texi 'command' tag on the previous patch to guix.texi. Please, apply this one instead. --KsrHdQxclZKfBIQV Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline; filename="0001-gnu-libgit2-Update-to-1.5.1.patch" Content-Transfer-Encoding: quoted-printable =46rom 97b1752180ac89f78fdbbbec7d6c4aaf0a18bdbf Mon Sep 17 00:00:00 2001 =46rom: =3D?UTF-8?q?Andr=3DC3=3DA9=3D20Batista?=3D Date: Wed, 8 Feb 2023 12:28:25 -0300 Subject: [PATCH] gnu: libgit2: Update to 1.5.1. To: guix-patches@gnu.org Cc: 61246@debbugs.gnu.org * gnu/packages/version-control.scm (libgit2): Update to 1.5.1. [source]: Remove snippet to comment out the "10 years ago" test, which was removed on newer versions. (libgit2-1.4): New variable. Update to 1.4.5. (libgit2-1.3): Inherit from 'libgit2-1.4'. Update to 1.3.2. (libgit2-1.1): Update to 1.1.1. Add back the snippet which comments out the "10 years ago" test that remains on this older version. * doc/guix.texi (Using a Custom Guix Channel): Add note and example on how to exempt a local guix repository from git ownership checks. --- doc/guix.texi | 20 ++++++++++++- gnu/packages/version-control.scm | 50 +++++++++++++++++++++----------- 2 files changed, 52 insertions(+), 18 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 2b1ad77ba5..5314488d7e 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -81,7 +81,7 @@ Copyright @copyright{} 2020, 2021 Brice Waegeneire@* Copyright @copyright{} 2020 R Veera Kumar@* Copyright @copyright{} 2020, 2021 Pierre Langlois@* Copyright @copyright{} 2020 pinoaffe@* -Copyright @copyright{} 2020 Andr=E9 Batista@* +Copyright @copyright{} 2020, 2023 Andr=E9 Batista@* Copyright @copyright{} 2020, 2021 Alexandru-Sergiu Marton@* Copyright @copyright{} 2020 raingloom@* Copyright @copyright{} 2020 Daniel Brooks@* @@ -5411,6 +5411,24 @@ From there on, @command{guix pull} will fetch code f= rom the @code{super-hacks} branch of the repository at @code{example.org}. The authentication concer= n is addressed below (@pxref{Channel Authentication}). =20 +Note that you can specify a local directory on the @code{url} field above = if +the channel that you intend to use resides on a local file system. Howeve= r, +in this case @command{guix} checks said directory for ownership before any +further processing. This means that if the user is not the directory owne= r, +but wants to use it as their default, they will then need to set it as a s= afe +directory in their global git configuration file. Otherwise, @command{gui= x} +will refuse to even read it. Supposing your system-wide local directory i= s at +@code{/src/guix.git}, you would then create a git configuration file at +@code{~/.gitconfig} with the following contents: + +@example +[safe] + directory =3D /src/guix.git +@end example + +@noindent +This also applies to the root user. + @node Replicating Guix @section Replicating Guix =20 diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-contro= l.scm index 78a89cfd5b..2f1eb27b3c 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -799,7 +799,7 @@ (define-public git-cal (define-public libgit2 (package (name "libgit2") - (version "1.4.3") + (version "1.5.1") (source (origin ;; Since v1.1.1, release artifacts are no longer offered (se= e: ;; https://github.com/libgit2/libgit2/discussions/5932#discu= ssioncomment-1682729). @@ -810,18 +810,11 @@ (define-public libgit2 (file-name (git-file-name name version)) (sha256 (base32 - "02x1a4zrzpzjd0yxnsi8njh5hgihc1iy1v4r0fnl8m4ckcgp6x2s")) + "04ypzpicpgq1wh6anwcmjjyh2b854lvjhxq0hq2hbsx7kb14qc1b")) (modules '((guix build utils))) (snippet '(begin - (delete-file-recursively "deps") - - ;; The "refs:revparse::date" test is time-dependent: it - ;; assumes "HEAD@{10 years ago}" matches a specific comm= it. - ;; See . - (substitute* "tests/refs/revparse.c" - (("test_object.*10 years ago.*" all) - (string-append "// " all "\n"))))))) + (delete-file-recursively "deps"))))) (build-system cmake-build-system) (outputs '("out" "debug")) (arguments @@ -863,10 +856,10 @@ (define-public libgit2 ;; GPLv2 with linking exception (license license:gpl2))) =20 -(define-public libgit2-1.3 +(define-public libgit2-1.4 (package (inherit libgit2) - (version "1.3.0") + (version "1.4.5") (source (origin (inherit (package-source libgit2)) (method git-fetch) @@ -876,7 +869,22 @@ (define-public libgit2-1.3 (file-name (git-file-name "libgit2" version)) (sha256 (base32 - "0vgpb2175a5dhqiy1iwywwppahgqhi340i8bsvafjpvkw284vazd")))) + "0q754ipc6skagszi93lcy6qr09ibavivm2q5i5fhpdblvlnv2p7x"))))= )) + +(define-public libgit2-1.3 + (package + (inherit libgit2-1.4) + (version "1.3.2") + (source (origin + (inherit (package-source libgit2-1.4)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/libgit2/libgit2") + (commit (string-append "v" version)))) + (file-name (git-file-name "libgit2" version)) + (sha256 + (base32 + "1dngga8jq419z6ps65wpmh2jihcf70k6r98pb1m1yiwj7qqh9792")))) (arguments (substitute-keyword-arguments (package-arguments libgit2) ((#:phases _ '%standard-phases) @@ -892,17 +900,25 @@ (define-public libgit2-1.3 (define-public libgit2-1.1 (package (inherit libgit2-1.3) - (version "1.1.0") + (version "1.1.1") (source (origin (inherit (package-source libgit2-1.3)) (file-name #f) ;use the default name (method url-fetch) (uri (string-append "https://github.com/libgit2/libgit2/" - "releases/download/v" version - "/libgit2-" version ".tar.gz")) + "archive/refs/tags/v" version ".tar.gz")) (sha256 (base32 - "1fjdglkh04qv3b4alg621pxa689i0wlf8m7nf2755zawjr2zhwxd")) + "085644zkjydjba9y162z4s020lfij3c191851ah13iv47wvjb98k")) + (snippet + '(begin + (delete-file-recursively "deps") + ;; The "refs:revparse::date" test is time-dependent: it + ;; assumes "HEAD@{10 years ago}" matches a specific comm= it. + ;; See . + (substitute* "tests/refs/revparse.c" + (("test_object.*10 years ago.*" all) + (string-append "// " all "\n"))))) (patches (search-patches "libgit2-mtime-0.patch")))))) =20 (define-public git-crypt --=20 2.39.1 --KsrHdQxclZKfBIQV-- --gdacvxlmmRaNFQas Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQG5BAABCgAjFiEEXo3OJhMk/jL9rLM1Nj97Uq5OMvYFAmPjwzcFgwPCZwAACgkQ Nj97Uq5OMvartwv+IIcm+3A63CcWUFEeP79llWjMyBZ05anjyB64b5WXG8kHL8sw VnL/DBonpqQr4kguqXZFwleb/f3g4yo3eAwwrymmmo4pZCJBO6Bi88sCQln54qE3 1N02MUXyE9ct723PEuRodpQZC9aSSBQrdyk6edfwhxaiqLAdo/eiJ6RTHNUiwYDQ acc3bMhXQOjKLEwaKoqjjv4+oD9M9nQtT8auSEJ7DNVD8/HgOeX1IQ5gdVPkYzHP HW+U4uOk0COdqOUqNMePi2YV/XI+mJceqPgi+Ybs/ErIE1VbtQ6s/rRZoZSL+FW6 eYIts9Llwx21mf3x4KqMJ9eur5WcOyQlUAtMRyGLmQHx2otU8UsVMzoeAzVU1GC8 +OQ+rawRi5sb1+6je4Hww7GOi4XYsl0VxGKgtRG2k/ztqmCcp/n6nHgMMhhK2W4K QKIwhzs54ViXAYJakIK4I/AwqpryKiu1ssX0wNV5LvBPtMY2UHVFGXpLBmhQzx9K wT3O1BgnNh32+L3A =ly5G -----END PGP SIGNATURE----- --gdacvxlmmRaNFQas--