GNU bug report logs - #43442
Code stored with Subversion (SVN) cannot be retrieved from SWH

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Severity: important; Reported by: zimoun <zimon.toutoune@HIDDEN>; Keywords: patch; dated Wed, 16 Sep 2020 08:15:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Changed bug title to 'Code stored with Subversion (SVN) cannot be retrieved from SWH' from '[PATCH] Fixes init of #42162: gforge.inria.fr down Dec. 2020' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 20 Mar 2023 14:09:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 20 10:09:21 2023
Received: from localhost ([127.0.0.1]:55443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1peGCO-0004CN-Vw
	for submit <at> debbugs.gnu.org; Mon, 20 Mar 2023 10:09:21 -0400
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:51064)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1peGCM-0004C2-DC
 for 43442 <at> debbugs.gnu.org; Mon, 20 Mar 2023 10:09:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc;
 h=from:to:cc:subject:references:date:in-reply-to:
 message-id:mime-version;
 bh=ZXgWW4DhDQrUfTaQOnOoMqLhzH2AVg6/Tt35qHUcGk0=;
 b=PXyR6HVLP05J1oetvEKzKq8zZoISabxVafitfcnSvHIXQJe9iXpqb0uy
 oninQB2KYeepWSAYlmNFGSHR3HpazwUDh2lkieI2ANMJqLtpLfYD7JiVL
 e1eiNTjz4BxFZrTQ1qAmEdUOXgjmW/P9RlwcfZ3Wuy42v6d1gKwg3DM2m A=;
Authentication-Results: mail3-relais-sop.national.inria.fr;
 dkim=none (message not signed) header.i=none;
 spf=SoftFail smtp.mailfrom=ludovic.courtes@HIDDEN;
 dmarc=fail (p=none dis=none) d=inria.fr
X-IronPort-AV: E=Sophos;i="5.98,274,1673910000"; d="scan'208";a="50699762"
Received: from unknown (HELO ribbon) ([193.50.110.213])
 by mail3-relais-sop.national.inria.fr with
 ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 15:09:12 +0100
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: bug#43442: [PATCH] Fixes init of #42162: gforge.inria.fr down
 Dec. 2020
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN>
 <87o8lyj090.fsf@HIDDEN> <86zh5iol1n.fsf@HIDDEN>
 <87h7rocvkt.fsf@HIDDEN>
 <CAJ3okZ175Tjr9ZjfatMDaogNT1guMZBfF+U1eGssUj+2_xtvww@HIDDEN>
 <877dsi44lu.fsf@HIDDEN>
 <CAJ3okZ1i4E0iKM1nYCtQ2N+hD2tE7=hcOAUihuay-x0bZQmLeQ@HIDDEN>
 <87y2knhei3.fsf@HIDDEN>
Date: Mon, 20 Mar 2023 15:09:11 +0100
In-Reply-To: <87y2knhei3.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Sat, 03 Oct 2020 10:59:00 +0200")
Message-ID: <87jzzbms54.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi!

Ludovic Court=C3=A8s <ludo@HIDDEN> skribis:

> Ah yes, under =E2=80=9Cextra_headers=E2=80=9D there=E2=80=99s the SVN rev=
ision number.  (guix
> swh) doesn=E2=80=99t expose =E2=80=9Cextra_headers=E2=80=9D yet, but once=
 it does, we can walk
> snapshots until we find the SVN revision we=E2=80=99re looking for.
>
> scheme@(guile-user)> (lookup-origin "https://scm.gforge.inria.fr/anonscm/=
svn/mpfi/")
> $3 =3D #<<origin> visits-url: "https://archive.softwareheritage.org/api/1=
/origin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visits/" type: #f url:=
 "https://scm.gforge.inria.fr/anonscm/svn/mpfi">
> scheme@(guile-user)> (origin-visits $3)
> $4 =3D (#<<visit> date: #<date nanosecond: 902765 second: 25 minute: 53 h=
our: 21 day: 21 month: 9 year: 2020 zone-offset: 0> origin: "https://scm.gf=
orge.inria.fr/anonscm/svn/mpfi" url: "https://archive.softwareheritage.org/=
api/1/origin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visit/1/" snapsho=
t-url: "https://archive.softwareheritage.org/api/1/snapshot/e7fdd4dc6230f71=
0dbc55c1b308804fa1b5f51f0/" status: full number: 1>)
> scheme@(guile-user)> (visit-snapshot (car $4))
> $5 =3D #<<snapshot> branches: (#<<branch> name: "HEAD" target-type: revis=
ion target-url: "https://archive.softwareheritage.org/api/1/revision/f7b445=
a6bdc38bf075f29265120ca49824f698ea/">)>
>
> So the next step is to augment (guix swh) with a
> =E2=80=98lookup-subversion-revision=E2=80=99 procedure.

The attached patch does that:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (lookup-subversion-revision "https://scm.gforge.inria.=
fr/anonscm/svn/mpfi" 680)
$12 =3D #<<revision> id: "72102de7605a2459ebcb016338ebbf1a997e8c8d" date: #=
<date nanosecond: 938388 second: 35 minute: 32 hour: 11 day: 6 month: 9 yea=
r: 2018 zone-offset: 0> directory: "5c89c025a4cd9d16befdfec12dfc23f7318d0d5=
b" directory-url: "https://archive.softwareheritage.org/api/1/directory/5c8=
9c025a4cd9d16befdfec12dfc23f7318d0d5b/" parents-ids: ("16da41f1848d77a93aec=
565320b72b460c429b61") extra-headers: (("svn_repo_uuid" . "e2f78e0c-bb60-47=
09-9413-9660a31d4696") ("svn_revision" . "680"))>
scheme@(guile-user)> (lookup-subversion-revision "https://scm.gforge.inria.=
fr/anonscm/svn/mpfi" 666)
$13 =3D #<<revision> id: "148eb1e7206b111af4075c73c656e54c9efed6cb" date: #=
<date nanosecond: 654167 second: 2 minute: 52 hour: 12 day: 2 month: 8 year=
: 2018 zone-offset: 0> directory: "ed7b0bd7019fb85cd86d948a97c23b9d43aa8728=
" directory-url: "https://archive.softwareheritage.org/api/1/directory/ed7b=
0bd7019fb85cd86d948a97c23b9d43aa8728/" parents-ids: ("0ba2aa7e0d3fc0a1eb3ba=
72b32094515415ae47a") extra-headers: (("svn_repo_uuid" . "e2f78e0c-bb60-470=
9-9413-9660a31d4696") ("svn_revision" . "666"))>
--8<---------------cut here---------------end--------------->8---

The implementation is pretty bad though, because it walks the revision
history until it finds the right revision number=E2=80=94so you=E2=80=99re =
likely to
reach the bandwidth rate limit before you=E2=80=99ve found the revision you=
=E2=80=99re
looking for.

More importantly, most svn origins cannot be found, or at least not
by passing the URL as-is:

  https://sympa.inria.fr/sympa/arc/swh-devel/2023-03/msg00009.html

This whole hack looks like a dead end.

It would be ideal if SWH would compute nar hashes, as you proposed:

  https://gitlab.softwareheritage.org/swh/meta/-/issues/4538

As a stopgap, I wonder if we could use =E2=80=9Cdouble hashing=E2=80=9D on =
our side, but
only for svn: we=E2=80=99d store both the nar sha256 as we currently do, pl=
us
the swhid.  It still seems to me that it=E2=80=99d be hard to scale and to
maintain that over time, even if it=E2=80=99s limited to svn.  Plus, there=
=E2=80=99d
still be the problem of =E2=80=98svn-multi-fetch=E2=80=99, which is what mo=
st TeX=C2=A0Live
packages use.

Thoughts?

Ludo=E2=80=99.


--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

diff --git a/guix/swh.scm b/guix/swh.scm
index c7c1c873a2..a65635b1db 100644
--- a/guix/swh.scm
+++ b/guix/swh.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright =C2=A9 2018, 2019, 2020, 2021 Ludovic Court=C3=A8s <ludo@gnu=
.org>
+;;; Copyright =C2=A9 2018, 2019, 2020, 2021, 2023 Ludovic Court=C3=A8s <lu=
do@HIDDEN>
 ;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka <kuba@HIDDEN>
 ;;; Copyright =C2=A9 2021 Xinglu Chen <public@HIDDEN>
 ;;; Copyright =C2=A9 2021 Simon Tournier <zimon.toutoune@HIDDEN>
@@ -75,8 +75,10 @@ (define-module (guix swh)
             revision-id
             revision-date
             revision-directory
+            revision-parents
             lookup-revision
             lookup-origin-revision
+            lookup-subversion-revision
=20
             content?
             content-checksums
@@ -207,6 +209,14 @@ (define string*
     ((? null?) #f)                                ;Guile-JSON 3.x
     ('null #f)))                                  ;Guile-JSON 4.x
=20
+(define pair-vector->alist
+  (match-lambda
+    ('null '())
+    ((=3D vector->list lst)
+     (map (match-lambda
+            (#(key value) (cons key value)))
+          lst))))
+
 (define %allow-request?
   ;; Takes a URL and method (e.g., the 'http-get' procedure) and returns t=
rue
   ;; to keep going.  This can be used to disallow requests when
@@ -346,7 +356,14 @@ (define-json-mapping <revision> make-revision revision?
   (id            revision-id)
   (date          revision-date "date" (maybe-null string->date*))
   (directory     revision-directory)
-  (directory-url revision-directory-url "directory_url"))
+  (directory-url revision-directory-url "directory_url")
+  (parents-ids   revision-parent-ids "parents"
+                 (lambda (vector)
+                   (map (lambda (alist)
+                          (assoc-ref alist "id"))
+                        (vector->list vector))))
+  (extra-headers revision-extra-headers      ;alist--e.g., with "svn_revis=
ion"
+                 "extra_headers" pair-vector->alist))
=20
 ;; <https://archive.softwareheritage.org/api/1/content/>
 (define-json-mapping <content> make-content content?
@@ -524,6 +541,50 @@ (define (lookup-origin-revision url tag)
         (()
          #f)))))
=20
+(define (revision-parents revision)
+  "Return the parent revision(s) of REVISION."
+  (filter-map lookup-revision (revision-parent-ids revision)))
+
+(define (lookup-subversion-revision-in-history revision revision-number)
+  "Look for Subversion REVISION-NUMBER starting from REVISION and going ba=
ck
+in history."
+  (let loop ((revision revision))
+    (let ((number (and=3D> (assoc-ref (revision-extra-headers revision)
+                                    "svn_revision")
+                         string->number)))
+      (and number
+           (cond ((=3D number revision-number)
+                  ;; Found it!
+                  revision)
+                 ((< number revision-number)
+                  ;; REVISION is ancestor of REVISION-NUMBER, so stop here.
+                  #f)
+                 (else
+                  ;; Check the parent(s) of REVISION.
+                  (any loop (revision-parents revision))))))))
+
+(define (lookup-subversion-revision url revision-number)
+  "Return either #f or the revision of the Subversion repository once
+available at URL with the given REVISION-NUMBER."
+  (match (lookup-origin url)
+    (#f #f)
+    (origin
+      (match (filter (lambda (visit)
+                       ;; Return #f if (visit-snapshot VISIT) would return=
 #f.
+                       (and (visit-snapshot-url visit)
+                            (eq? 'full (visit-status visit))))
+                     (origin-visits origin))
+        (()
+         #f)
+        ((visit . _)
+         (any (lambda (branch)
+                (match (branch-target branch)
+                  ((? revision? revision)
+                   (lookup-subversion-revision-in-history revision
+                                                          revision-number))
+                  (_ #f)))
+              (snapshot-branches (visit-snapshot visit))))))))
+
 (define (release-target release)
   "Return the revision that is the target of RELEASE."
   (match (release-target-type release)

--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 3 Oct 2020 08:59:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 03 04:59:10 2020
Received: from localhost ([127.0.0.1]:42963 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kOdNm-00020d-36
	for submit <at> debbugs.gnu.org; Sat, 03 Oct 2020 04:59:10 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53464)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kOdNk-00020Q-Hg
 for 43442 <at> debbugs.gnu.org; Sat, 03 Oct 2020 04:59:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51867)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kOdNf-0004mf-6V; Sat, 03 Oct 2020 04:59:03 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43598 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kOdNe-0003GW-Cl; Sat, 03 Oct 2020 04:59:03 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by
 'svn-fetch'.
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN>
 <87o8lyj090.fsf@HIDDEN> <86zh5iol1n.fsf@HIDDEN>
 <87h7rocvkt.fsf@HIDDEN>
 <CAJ3okZ175Tjr9ZjfatMDaogNT1guMZBfF+U1eGssUj+2_xtvww@HIDDEN>
 <877dsi44lu.fsf@HIDDEN>
 <CAJ3okZ1i4E0iKM1nYCtQ2N+hD2tE7=hcOAUihuay-x0bZQmLeQ@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 12 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la
 =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Sat, 03 Oct 2020 10:59:00 +0200
In-Reply-To: <CAJ3okZ1i4E0iKM1nYCtQ2N+hD2tE7=hcOAUihuay-x0bZQmLeQ@HIDDEN>
 (zimoun's message of "Thu, 1 Oct 2020 22:26:28 +0200")
Message-ID: <87y2knhei3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

zimoun <zimon.toutoune@HIDDEN> skribis:

> On Fri, 25 Sep 2020 at 10:56, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>
>> Note that the original svn revision number is discarded, AFAICS.
>
> No, it is not... but to find it one needs a bit of guidance by SWH folks.=
 :-)
>
> 1. With the URL, fetch:
> https://archive.softwareheritage.org/api/1/origin/https://scm.gforge.inri=
a.fr/anonscm/svn/mpfi/visit/latest/
>
> 2. From #1 one gets 'snapshot' and fetch:
> https://archive.softwareheritage.org/api/1/snapshot/e7fdd4dc6230f710dbc55=
c1b308804fa1b5f51f0/
>
> 3. From #3, one gets the 'target' and fetch:
> https://archive.softwareheritage.org/api/1/revision/f7b445a6bdc38bf075f29=
265120ca49824f698ea/log/
>
> And #3 lists all the revisions in SWH.

Ah yes, under =E2=80=9Cextra_headers=E2=80=9D there=E2=80=99s the SVN revis=
ion number.  (guix
swh) doesn=E2=80=99t expose =E2=80=9Cextra_headers=E2=80=9D yet, but once i=
t does, we can walk
snapshots until we find the SVN revision we=E2=80=99re looking for.

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (lookup-origin "https://scm.gforge.inria.fr/anonscm/sv=
n/mpfi/")
$3 =3D #<<origin> visits-url: "https://archive.softwareheritage.org/api/1/o=
rigin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visits/" type: #f url: "=
https://scm.gforge.inria.fr/anonscm/svn/mpfi">
scheme@(guile-user)> (origin-visits $3)
$4 =3D (#<<visit> date: #<date nanosecond: 902765 second: 25 minute: 53 hou=
r: 21 day: 21 month: 9 year: 2020 zone-offset: 0> origin: "https://scm.gfor=
ge.inria.fr/anonscm/svn/mpfi" url: "https://archive.softwareheritage.org/ap=
i/1/origin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visit/1/" snapshot-=
url: "https://archive.softwareheritage.org/api/1/snapshot/e7fdd4dc6230f710d=
bc55c1b308804fa1b5f51f0/" status: full number: 1>)
scheme@(guile-user)> (visit-snapshot (car $4))
$5 =3D #<<snapshot> branches: (#<<branch> name: "HEAD" target-type: revisio=
n target-url: "https://archive.softwareheritage.org/api/1/revision/f7b445a6=
bdc38bf075f29265120ca49824f698ea/">)>
--8<---------------cut here---------------end--------------->8---

So the next step is to augment (guix swh) with a
=E2=80=98lookup-subversion-revision=E2=80=99 procedure.

Thanks for investigating!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 1 Oct 2020 21:01:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 01 17:01:23 2020
Received: from localhost ([127.0.0.1]:38573 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kO5hb-00018R-3F
	for submit <at> debbugs.gnu.org; Thu, 01 Oct 2020 17:01:23 -0400
Received: from mail-qk1-f194.google.com ([209.85.222.194]:37064)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kO5hY-00018B-RT
 for 43442 <at> debbugs.gnu.org; Thu, 01 Oct 2020 17:01:21 -0400
Received: by mail-qk1-f194.google.com with SMTP id 16so7306462qkf.4
 for <43442 <at> debbugs.gnu.org>; Thu, 01 Oct 2020 14:01:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=DirNretSCFmic08WdR5jWCBM78tj5a2x8XFWQ03OE6k=;
 b=msZW3YzQJukci6wCOrHZPahY6hwjMiVkcSmsHNJDfB1L237LTemEHIxYuo60yAbeEZ
 RxR+SXIXcpEPX+2uEWQA+N6Cgh06MWzgdDfTnNgRmFW1PPGdMWze7LyzHCL1yFDmZjCM
 seYOLJpq4Br1lIwQKTenV/zfucfvbSvC5v5j0di/o9I8KQWBwxvDmW3W8nT5WC2pFjDr
 1Ee1n5GBhC0TcQ/4Z7wAEVkMUlleh1OIQV0OwLji1hQeLHlS8rk4oH+ezlzu32AyAaR8
 zDd49IaCDrHMC7LGRcptKl8QLSZvyXMzSIjVgh/Z5F3RkNkctOl5HcFAoMzIin5pumci
 m/fQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=DirNretSCFmic08WdR5jWCBM78tj5a2x8XFWQ03OE6k=;
 b=hFQqU/FZp0prnNeQS0+tMGi7odbsrvlaCRro2j0NJWJuwS4fj+MOVi4IeqeFEqGGfP
 X2htwFKvpK6DwxWmR7K9clRNgmi28s0TfRa+ArwRwhD5JcmSIk3Wck6YGpLioBw6FFj9
 UY5M05RW92ZBQxLTIq/ubtZu24cLGjGxwsfV9szexqtcDAvoQLhlZhq5vorOFDyvoWCf
 YRS/Sx4KTEQKmSCKx8pfUtOeXihgYOK/CZeaF8yhafK/ZybBLSCLinUD+uBFdNtqw3JJ
 g77aslIN+F/JxA6ybllbj1fU6MkWUuf3By6uj8DfjcuZbUC+VgXC7eabI+uwmqf+gs4G
 aZKw==
X-Gm-Message-State: AOAM530vHqakJ+eBny9QTLQOw5VXkf5VZeJt5nwilOQMEaA//iyzD9o1
 lV/aCREPlVLx3is5DRHqLixe1n0k0tVH6kzm2/4=
X-Google-Smtp-Source: ABdhPJyrGxevODNnBEVJImCf+AdvFrSCY6Wl4CrS6IHooTb8cjDIq6o+yUOMzOQkPcM086q3GAO88FG6Br14nAdoiP8=
X-Received: by 2002:a37:9b4d:: with SMTP id d74mr8740277qke.201.1601586075280; 
 Thu, 01 Oct 2020 14:01:15 -0700 (PDT)
MIME-Version: 1.0
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN> <87o8lyj090.fsf@HIDDEN>
 <86zh5iol1n.fsf@HIDDEN> <87h7rocvkt.fsf@HIDDEN>
 <CAJ3okZ175Tjr9ZjfatMDaogNT1guMZBfF+U1eGssUj+2_xtvww@HIDDEN>
 <877dsi44lu.fsf@HIDDEN>
 <CAJ3okZ1i4E0iKM1nYCtQ2N+hD2tE7=hcOAUihuay-x0bZQmLeQ@HIDDEN>
In-Reply-To: <CAJ3okZ1i4E0iKM1nYCtQ2N+hD2tE7=hcOAUihuay-x0bZQmLeQ@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Thu, 1 Oct 2020 23:01:03 +0200
Message-ID: <CAJ3okZ1+SZbkqRkAe1Q6uAHoHrAugp99aouRKYFkc=98z1h_-Q@HIDDEN>
Subject: Re: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by
 'svn-fetch'.
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Thu, 1 Oct 2020 at 22:26, zimoun <zimon.toutoune@HIDDEN> wrote:

> 1. With the URL, fetch:
> https://archive.softwareheritage.org/api/1/origin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visit/latest/
>
> 2. From #1 one gets 'snapshot' and fetch:
> https://archive.softwareheritage.org/api/1/snapshot/e7fdd4dc6230f710dbc55c1b308804fa1b5f51f0/
>
> 3. From #3, one gets the 'target' and fetch:
> https://archive.softwareheritage.org/api/1/revision/f7b445a6bdc38bf075f29265120ca49824f698ea/log/
>
> And #3 lists all the revisions in SWH.
>
> Well, this should be enough for the saving request.  WDYT?
>

> However, it is not clear how to fetch cooking from the vault.  To be
> continued...

From #3, using 'directory' (4193e93b4aea0abeaff715b1a1274c4d7eb4a27d),
it seems possible to cook from the vault and get the tarball (I did
with the web interface).  And the integrity field (guix hash -r) is
the same as the one I put in the patch submission.




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 1 Oct 2020 20:26:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 01 16:26:47 2020
Received: from localhost ([127.0.0.1]:38536 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kO5A6-0006cr-Qz
	for submit <at> debbugs.gnu.org; Thu, 01 Oct 2020 16:26:47 -0400
Received: from mail-qv1-f65.google.com ([209.85.219.65]:44267)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kO5A5-0006cf-Fd
 for 43442 <at> debbugs.gnu.org; Thu, 01 Oct 2020 16:26:45 -0400
Received: by mail-qv1-f65.google.com with SMTP id j10so3834538qvk.11
 for <43442 <at> debbugs.gnu.org>; Thu, 01 Oct 2020 13:26:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=Z68QW4gHpT+1xe7lnSIvyrabH0WmcixYXGuqYutIs/A=;
 b=TIkJ5noF1W7tWgaMsHo0zHWboTK/Diynn7lgPFv3OmOVxOie40soCiy1xMG2T2yLAn
 WH/slNV6w84x9hulmuzJMWwL+/3k+ytDUffvUEKt7iKEYZiRjhINTtWpno4Kbl3Mg6rR
 UXvNcPOXPPPJlyXtWeeti7f1wGxrf+exlNV1TBQ11VDps5+38e3m+e4OiTbhJBtL9a+j
 UuiYNW3mJ2qUb6eK7R76QKhKJpAQOGQvn3AtjPmPPN+I5Bwda14zkdfYTgAdNBJ9vexU
 6TsXx/S3Jb30K79s8gljsVSgR+hYgxeoYENzXtLsXyJSjQzAWPUBv6I6iXpVuNvK3kgM
 WsQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=Z68QW4gHpT+1xe7lnSIvyrabH0WmcixYXGuqYutIs/A=;
 b=qzuKhM0MGByCHNYs9WAt258NL0zKOGSVMfBsj1YKjOUGOdAD9dltg0zYYpVCYX0bJY
 O0ImsfFSsnNTaEwThYTY3Zd8/XXMw+soNHFNuvzgh9Jad7MDbma1lQw/GJaE87jgzOlY
 +hiV3PREain7Id8Snpa3AyswaDrrT3ZBerehQybEmxE3qaHzm4cWfvH/CO4d9xg2YqEs
 TMpLMPxjWt0gjurhAuDmFjySaXNJAEAMktVSHRMDGWx/g3+r3p7sdvdZUKpKM/odvWZ7
 2wS74vbU+DQwFx4m2mjSdVdLQv8WREgeB5d5PmmtAueK605AU7rDRoOLwcY78C+ms24Y
 SquA==
X-Gm-Message-State: AOAM533AorT7fsBtUvuklm2CvghOe9RqRTPfLKKw5r6n6U8cktbR7lNL
 7kBhF1TU46EscqfSbjk8DtXzk2E9NaKJ7J9GHx0=
X-Google-Smtp-Source: ABdhPJx8Bt+ssxyrh5+65VqDMIMBi+AzRAvjefkPx23Ln6oYYti/awo+CpefuIIsTOx6X93agi/46QdveZ8HH3HbCrQ=
X-Received: by 2002:ad4:58e7:: with SMTP id di7mr9337494qvb.36.1601583999915; 
 Thu, 01 Oct 2020 13:26:39 -0700 (PDT)
MIME-Version: 1.0
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN> <87o8lyj090.fsf@HIDDEN>
 <86zh5iol1n.fsf@HIDDEN> <87h7rocvkt.fsf@HIDDEN>
 <CAJ3okZ175Tjr9ZjfatMDaogNT1guMZBfF+U1eGssUj+2_xtvww@HIDDEN>
 <877dsi44lu.fsf@HIDDEN>
In-Reply-To: <877dsi44lu.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Thu, 1 Oct 2020 22:26:28 +0200
Message-ID: <CAJ3okZ1i4E0iKM1nYCtQ2N+hD2tE7=hcOAUihuay-x0bZQmLeQ@HIDDEN>
Subject: Re: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by
 'svn-fetch'.
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Ludo,

On Fri, 25 Sep 2020 at 10:56, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

> Note that the original svn revision number is discarded, AFAICS.

No, it is not... but to find it one needs a bit of guidance by SWH folks. :=
-)

1. With the URL, fetch:
https://archive.softwareheritage.org/api/1/origin/https://scm.gforge.inria.=
fr/anonscm/svn/mpfi/visit/latest/

2. From #1 one gets 'snapshot' and fetch:
https://archive.softwareheritage.org/api/1/snapshot/e7fdd4dc6230f710dbc55c1=
b308804fa1b5f51f0/

3. From #3, one gets the 'target' and fetch:
https://archive.softwareheritage.org/api/1/revision/f7b445a6bdc38bf075f2926=
5120ca49824f698ea/log/

And #3 lists all the revisions in SWH.

Well, this should be enough for the saving request.  WDYT?


However, it is not clear how to fetch cooking from the vault.  To be
continued...

Cheers,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 25 Sep 2020 08:56:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 25 04:56:25 2020
Received: from localhost ([127.0.0.1]:42600 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLjWi-0005s9-QK
	for submit <at> debbugs.gnu.org; Fri, 25 Sep 2020 04:56:25 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47014)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kLjWg-0005ro-5Y
 for 43442 <at> debbugs.gnu.org; Fri, 25 Sep 2020 04:56:23 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:49921)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kLjWa-000696-MK; Fri, 25 Sep 2020 04:56:16 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60666 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kLjWZ-0004GR-C0; Fri, 25 Sep 2020 04:56:16 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by
 'svn-fetch'.
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN>
 <87o8lyj090.fsf@HIDDEN> <86zh5iol1n.fsf@HIDDEN>
 <87h7rocvkt.fsf@HIDDEN>
 <CAJ3okZ175Tjr9ZjfatMDaogNT1guMZBfF+U1eGssUj+2_xtvww@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 4 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la
 =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Fri, 25 Sep 2020 10:56:13 +0200
In-Reply-To: <CAJ3okZ175Tjr9ZjfatMDaogNT1guMZBfF+U1eGssUj+2_xtvww@HIDDEN>
 (zimoun's message of "Wed, 23 Sep 2020 19:07:19 +0200")
Message-ID: <877dsi44lu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi!

zimoun <zimon.toutoune@HIDDEN> skribis:

> as you can see here:
>
> <https://archive.softwareheritage.org/browse/origin/directory/?origin_url=
=3Dhttps://scm.gforge.inria.fr/anonscm/svn/mpfi>

Oh indeed:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,use(guix swh)
scheme@(guile-user)> (lookup-origin "https://scm.gforge.inria.fr/anonscm/sv=
n/mpfi")
$14 =3D #<<origin> visits-url: "https://archive.softwareheritage.org/api/1/=
origin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visits/" type: #f url: =
"https://scm.gforge.inria.fr/anonscm/svn/mpfi">
scheme@(guile-user)> (origin-visits $14)
$15 =3D (#<<visit> date: #<date nanosecond: 902765 second: 25 minute: 53 ho=
ur: 21 day: 21 month: 9 year: 2020 zone-offset: 0> origin: "https://scm.gfo=
rge.inria.fr/anonscm/svn/mpfi" url: "https://archive.softwareheritage.org/a=
pi/1/origin/https://scm.gforge.inria.fr/anonscm/svn/mpfi/visit/1/" snapshot=
-url: "https://archive.softwareheritage.org/api/1/snapshot/e7fdd4dc6230f710=
dbc55c1b308804fa1b5f51f0/" status: full number: 1>)
scheme@(guile-user)> (visit-snapshot (car $15))
$16 =3D #<<snapshot> branches: (#<<branch> name: "HEAD" target-type: revisi=
on target-url: "https://archive.softwareheritage.org/api/1/revision/f7b445a=
6bdc38bf075f29265120ca49824f698ea/">)>
--8<---------------cut here---------------end--------------->8---

Note that the original svn revision number is discarded, AFAICS.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 23 Sep 2020 17:07:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 13:07:38 2020
Received: from localhost ([127.0.0.1]:37700 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kL8F0-00035n-7W
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 13:07:38 -0400
Received: from mail-qk1-f195.google.com ([209.85.222.195]:39958)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kL8Ey-00035a-DU
 for 43442 <at> debbugs.gnu.org; Wed, 23 Sep 2020 13:07:37 -0400
Received: by mail-qk1-f195.google.com with SMTP id w16so385652qkj.7
 for <43442 <at> debbugs.gnu.org>; Wed, 23 Sep 2020 10:07:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=/zNoKz9wHX80qcHPID0rwjY8Wn665nO72VVvHlg2mKY=;
 b=nsf9sIp18gneIdHMHY8OgrV1q5gWqByVdIiZQ+1KeWCu07NEkIPE4eXk1o2QEDBIMf
 59GedMvTVSybHDfnJKyoI587V/HboUOOpko8buJUfnCnGj0HMYMDhxHniiIjO++PAF+3
 /lSpOvIkw8fgVqwP//bt1NwCocekpe/N+1vA68AVbPmhqGcsqgT9ZwPUnBzl9aYzTAKH
 bldHc2QvUP7l7aIPIKE7P4sTuK3LyGK6+RzkMgu/SYSaqcAAdypc/zYq5+ced/KryF44
 l6mQcjuL7P72ECh9MeIMpkunxbGwL8oCi5JEZHA5mzzDZcHkVt4bd4svTymsJKK6xrrq
 FU8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=/zNoKz9wHX80qcHPID0rwjY8Wn665nO72VVvHlg2mKY=;
 b=sY+IWHMNFVCUVXkYa8z+7ZtDbLGPFy5rGG8AseuRqSExIkVqZmyPTaTKa6orcUWxdr
 RMeUOGXS6eopkek9PGnKgUz14iULi/O4+ASX/o/tobdLsCL5AmsTIAcx8oP2VNhh1aiW
 clcb90j7kxy/GJvTUK6ZfQlMpBGZAzc748goK/aLAdL4TzehQ+bRAbFuw6imOzoutkIX
 pHbRk6wSdg8uFGYtrEFJ1hjShaEloI4c1Ijnva2XWAT3pFs/oBPn5/kNoYrHeEKzt87w
 OgrtZFd8ezUGzPJyAJhuKE7DriccWvqJLxiHhSso3z+OTc3uYHAoVF2pNZkUZKkbFL9x
 nt9Q==
X-Gm-Message-State: AOAM531DC0AEdOzwk5wuqr7yw/tk0/fKDAzw7koHbLXcYSpkVAsYJupt
 7e6KTQeYInNIoLY8vE2KC2qHcGyCy92Yr1TwsaU+Yc9X5tNYOA==
X-Google-Smtp-Source: ABdhPJxQBMy1gHbU2bZ0FdDKCjala5y5BpZxtx7chHHfWhses+YePtLMi8BBVG7RfuCtukMTYF/78fwxeMwTRhjvYxA=
X-Received: by 2002:a37:6848:: with SMTP id d69mr835589qkc.80.1600880850828;
 Wed, 23 Sep 2020 10:07:30 -0700 (PDT)
MIME-Version: 1.0
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN> <87o8lyj090.fsf@HIDDEN>
 <86zh5iol1n.fsf@HIDDEN> <87h7rocvkt.fsf@HIDDEN>
In-Reply-To: <87h7rocvkt.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Wed, 23 Sep 2020 19:07:19 +0200
Message-ID: <CAJ3okZ175Tjr9ZjfatMDaogNT1guMZBfF+U1eGssUj+2_xtvww@HIDDEN>
Subject: Re: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by
 'svn-fetch'.
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Wed, 23 Sep 2020 at 18:22, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
> zimoun <zimon.toutoune@HIDDEN> skribis:
>
> > On Mon, 21 Sep 2020 at 23:19, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote=
:
> >
> >>> +       (method svn-fetch)
> >>> +       (uri (svn-reference
> >>> +             (url "https://scm.gforge.inria.fr/anonscm/svn/mpfi/trun=
k/mpfi")
> >>> +             (revision 688)))
> >>
> >> Does this have any chance of working with SWH?  Does their HTTP API
> >> support looking up svn revision for a given origin URL?
> >
> > Well, I have not yet did my homework on the topic, neither asked on
> > #swh-devel.
> >
> > Probably not!
> >
> > In any case, we should find a way because there are a lot of Subversion
> > sources.
>
> Yes, we should implement it.  But until that is done, I=E2=80=99m not sur=
e it=E2=80=99s
> worth replacing tarballs with svn references.  WDYT?

I do not have a strong opinion.

> >> Also:
> >>
> >>   scheme@(guile-user)> (lookup-origin "https://scm.gforge.inria.fr/ano=
nscm/svn/mpfi/trunk/mpfi")
> >>   $6 =3D #f
> >
> > Since =E2=80=9Cguix lint -c archival=E2=80=9D I should have forgotten t=
o submit the
> > request via their Web interface.  Now, it is scheduled:
> >
> >   <https://archive.softwareheritage.org/save/#requests>
>
> =E2=80=98lookup-origin=E2=80=99 still returns #f though.

Weird because SWH says it is in. Requests at 21/09/2020, 23:47:09 then
click. :-)

 - scheduled: 21/09/2020, 23:47:21
 - start: 21/09/2020, 23:47:24
 - end: 21/09/2020, 23:53:26
 - log: [2020-09-21 21:53:26,098: INFO/ForkPoolWorker-1] Task
swh.loader.svn.tasks.DumpMountAndLoadSvnRepository[b13942f6-b415-4831-b25f-=
e68bd4515cf2]
succeeded in 361.4525023885071s: {'status': 'eventful'}

Well, the issue is:

- Not in: https://scm.gforge.inria.fr/anonscm/svn/mpfi/trunk/mpfi
<https://archive.softwareheritage.org/browse/search/?q=3Dhttps%3A%2F%2Fscm.=
gforge.inria.fr%2Fanonscm%2Fsvn%2Fmpfi%2Ftrunk%2Fmpfi&with_visit=3Dtrue&wit=
h_content=3Dtrue>

+ In: https://scm.gforge.inria.fr/anonscm/svn/mpfi
<https://archive.softwareheritage.org/browse/search/?q=3Dhttps%3A%2F%2Fscm.=
gforge.inria.fr%2Fanonscm%2Fsvn%2Fmpfi&with_visit=3Dtrue&with_content=3Dtru=
e>

as you can see here:

<https://archive.softwareheritage.org/browse/origin/directory/?origin_url=
=3Dhttps://scm.gforge.inria.fr/anonscm/svn/mpfi>


> (Note that it seems possible that the shutdown of gforge.inria.fr will
> be delayed a bit or at least be made less brutally that initially
> announced.)

Good to know. :-)

All the best,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 23 Sep 2020 16:22:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 12:22:08 2020
Received: from localhost ([127.0.0.1]:37603 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kL7Wy-0001TG-EY
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 12:22:08 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44262)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kL7Wv-0001Sd-5s
 for 43442 <at> debbugs.gnu.org; Wed, 23 Sep 2020 12:22:07 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:47159)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kL7Wp-000079-UX; Wed, 23 Sep 2020 12:21:59 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52546 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kL7Wl-0002cW-JF; Wed, 23 Sep 2020 12:21:59 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by
 'svn-fetch'.
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN>
 <87o8lyj090.fsf@HIDDEN> <86zh5iol1n.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 2 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la
 =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Wed, 23 Sep 2020 18:21:54 +0200
In-Reply-To: <86zh5iol1n.fsf@HIDDEN> (zimoun's message of "Mon, 21 Sep 2020
 23:51:48 +0200")
Message-ID: <87h7rocvkt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

zimoun <zimon.toutoune@HIDDEN> skribis:

> On Mon, 21 Sep 2020 at 23:19, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>
>>> +       (method svn-fetch)
>>> +       (uri (svn-reference
>>> +             (url "https://scm.gforge.inria.fr/anonscm/svn/mpfi/trunk/=
mpfi")
>>> +             (revision 688)))
>>
>> Does this have any chance of working with SWH?  Does their HTTP API
>> support looking up svn revision for a given origin URL?
>
> Well, I have not yet did my homework on the topic, neither asked on
> #swh-devel.
>
> Probably not!
>
> In any case, we should find a way because there are a lot of Subversion
> sources.=20

Yes, we should implement it.  But until that is done, I=E2=80=99m not sure =
it=E2=80=99s
worth replacing tarballs with svn references.  WDYT?

>> Also:
>>
>>   scheme@(guile-user)> (lookup-origin "https://scm.gforge.inria.fr/anons=
cm/svn/mpfi/trunk/mpfi")
>>   $6 =3D #f
>
> Since =E2=80=9Cguix lint -c archival=E2=80=9D I should have forgotten to =
submit the
> request via their Web interface.  Now, it is scheduled:
>
>   <https://archive.softwareheritage.org/save/#requests>

=E2=80=98lookup-origin=E2=80=99 still returns #f though.

>> So the effect today would be the opposite of what we=E2=80=99re attempti=
ng: when
>> GForge goes down, we=E2=80=99d lose it completely.
>
> I agree.
>
>
> Well, the shutdown of the INRIA=E2=80=99s GForge is a concrete deadline t=
o add
> the support of Subversion (and Mercurial) sources to:
>
>  - fallback to SWH
>  - guix lint -c archival
>
> I am working on it. :-)

Awesome.

(Note that it seems possible that the shutdown of gforge.inria.fr will
be delayed a bit or at least be made less brutally that initially
announced.)

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 21 Sep 2020 21:51:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 21 17:51:59 2020
Received: from localhost ([127.0.0.1]:56577 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kKTj5-0001Wk-5i
	for submit <at> debbugs.gnu.org; Mon, 21 Sep 2020 17:51:59 -0400
Received: from mail-wr1-f67.google.com ([209.85.221.67]:42351)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kKTj2-0001WX-JC
 for 43442 <at> debbugs.gnu.org; Mon, 21 Sep 2020 17:51:57 -0400
Received: by mail-wr1-f67.google.com with SMTP id c18so14548620wrm.9
 for <43442 <at> debbugs.gnu.org>; Mon, 21 Sep 2020 14:51:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:in-reply-to:references:date:message-id
 :mime-version:content-transfer-encoding;
 bh=K7hNNCKY4ow2AzVH+PAT10JgiutAKQI7oPlZqxPql7Y=;
 b=pM/PTtg+I9KdovMwzIPoJ5jhj9TcwHQHPzJ24zMZp24CZtDuLZXefZZcB/q/HgG0GU
 yeUx12pjximI3sn4c0eSIKdDD7FkcVHtpM58PEw78TJlk2ZsMT4GyUyvK0vxLevodJ9q
 wNggfiyLJRePXbtrpYWYkoE3fnFwSuCbCQlGf32bPwHxYVODmMnLOttG6om/H4BgHG3q
 P3HiQHi/aZSQ9/O7xcij4R3VdwYdwPl8vdqkCXAVZs2aBXdeLPTOyWJCqZ7pownga6XF
 +jRHZQb5Rpn6gz+WTvqvrroJsBUjYgnTbE9Unz26cxcY21aN1fYWgvez0M6AWen4PxaZ
 AX/w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date
 :message-id:mime-version:content-transfer-encoding;
 bh=K7hNNCKY4ow2AzVH+PAT10JgiutAKQI7oPlZqxPql7Y=;
 b=OfoFVY52U+ZJdVxEdL5zg6uX0807cz6CrEPbod4OtosHQGWagf1lP0nHnP2XIOBV/K
 RpNibjTdV/M6yXYBjDPS0Jnt+SUqHXZLhCTmDucIXBXHboDG24bdpL6DskaENuUBn+ic
 6FUQXSDXTnT4yV/afVWAm2KtSuZ2WcLoDL2HrWqmxwnKOphuOOIKFAc+E0+z1vqtF8rI
 vfxizdNAWibSQtLwCJXI8bTeMv4PHMnW/JvDYdLocd/XC/GmK2XC94KmNSK8vCTFmbYA
 PiWnAV7ygnt396LfssWi3VYfZSSXOQYne1v9E+96XXnr0PckHPwU6LWnN6ZKckuL6x2I
 VrgA==
X-Gm-Message-State: AOAM533S669nnpuhcfxbyE8VihLzk1VUbxrmeMxUVblxW7PY+mI1DHDd
 P6F73G4naVo/PkPtbPIojKZHgYmjk9A=
X-Google-Smtp-Source: ABdhPJx5Dr4kMszC0xl+SnHremhAVUtTVl6Ol5arpS/qvE2l6VhZgxRRz8cJW92myfXhmdl7Q/Twvg==
X-Received: by 2002:adf:e292:: with SMTP id v18mr1823868wri.256.1600725110463; 
 Mon, 21 Sep 2020 14:51:50 -0700 (PDT)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id w14sm23098948wrk.95.2020.09.21.14.51.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 21 Sep 2020 14:51:50 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by
 'svn-fetch'.
In-Reply-To: <87o8lyj090.fsf@HIDDEN>
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN> <87o8lyj090.fsf@HIDDEN>
Date: Mon, 21 Sep 2020 23:51:48 +0200
Message-ID: <86zh5iol1n.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On Mon, 21 Sep 2020 at 23:19, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

>> +       (method svn-fetch)
>> +       (uri (svn-reference
>> +             (url "https://scm.gforge.inria.fr/anonscm/svn/mpfi/trunk/m=
pfi")
>> +             (revision 688)))
>
> Does this have any chance of working with SWH?  Does their HTTP API
> support looking up svn revision for a given origin URL?

Well, I have not yet did my homework on the topic, neither asked on
#swh-devel.

Probably not!

In any case, we should find a way because there are a lot of Subversion
sources.=20


> Also:
>
>   scheme@(guile-user)> (lookup-origin "https://scm.gforge.inria.fr/anonsc=
m/svn/mpfi/trunk/mpfi")
>   $6 =3D #f

Since =E2=80=9Cguix lint -c archival=E2=80=9D I should have forgotten to su=
bmit the
request via their Web interface.  Now, it is scheduled:

  <https://archive.softwareheritage.org/save/#requests>


> So the effect today would be the opposite of what we=E2=80=99re attemptin=
g: when
> GForge goes down, we=E2=80=99d lose it completely.

I agree.


Well, the shutdown of the INRIA=E2=80=99s GForge is a concrete deadline to =
add
the support of Subversion (and Mercurial) sources to:

 - fallback to SWH
 - guix lint -c archival

I am working on it. :-)


All the best,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 21 Sep 2020 21:20:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 21 17:20:04 2020
Received: from localhost ([127.0.0.1]:56506 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kKTEC-0000io-75
	for submit <at> debbugs.gnu.org; Mon, 21 Sep 2020 17:20:04 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41280)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kKTEA-0000iB-SZ
 for 43442 <at> debbugs.gnu.org; Mon, 21 Sep 2020 17:20:03 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:37236)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kKTE5-0003rj-Cj; Mon, 21 Sep 2020 17:19:57 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48028 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kKTE4-0002k2-UL; Mon, 21 Sep 2020 17:19:57 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43442] [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by
 'svn-fetch'.
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
 <20200916081642.6716-1-zimon.toutoune@HIDDEN>
Date: Mon, 21 Sep 2020 23:19:55 +0200
In-Reply-To: <20200916081642.6716-1-zimon.toutoune@HIDDEN> (zimoun's
 message of "Wed, 16 Sep 2020 10:16:41 +0200")
Message-ID: <87o8lyj090.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43442
Cc: 43442 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi!

zimoun <zimon.toutoune@HIDDEN> skribis:

> Fixes <https://bugs.gnu.org/42162>.
>
> * gnu/packages/multiprecision.scm (mpfi)[source]: Replace 'url-fetch' by
> 'svn-fetch'.

[...]

> +       (method svn-fetch)
> +       (uri (svn-reference
> +             (url "https://scm.gforge.inria.fr/anonscm/svn/mpfi/trunk/mp=
fi")
> +             (revision 688)))

Does this have any chance of working with SWH?  Does their HTTP API
support looking up svn revision for a given origin URL?

Also:

  scheme@(guile-user)> (lookup-origin "https://scm.gforge.inria.fr/anonscm/=
svn/mpfi/trunk/mpfi")
  $6 =3D #f

So the effect today would be the opposite of what we=E2=80=99re attempting:=
 when
GForge goes down, we=E2=80=99d lose it completely.

Thoughts?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Sep 2020 08:15:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 17 04:14:59 2020
Received: from localhost ([127.0.0.1]:37261 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kIp4F-0003Rv-Nq
	for submit <at> debbugs.gnu.org; Thu, 17 Sep 2020 04:14:59 -0400
Received: from lists.gnu.org ([209.51.188.17]:33448)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1kIp4E-0003Rj-8p
 for submit <at> debbugs.gnu.org; Thu, 17 Sep 2020 04:14:58 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57294)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1kIp49-0002hO-BI
 for guix-patches@HIDDEN; Thu, 17 Sep 2020 04:14:57 -0400
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:12282)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1kIp47-0008Op-2R
 for guix-patches@HIDDEN; Thu, 17 Sep 2020 04:14:52 -0400
X-IronPort-AV: E=Sophos;i="5.76,436,1592863200"; d="scan'208";a="359260461"
Received: from unknown (HELO ribbon) ([193.50.110.192])
 by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 17 Sep 2020 10:14:45 +0200
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [PATCH] Fixes init of #42162: gforge.inria.fr down Dec. 2020
References: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Jour du =?utf-8?Q?G=C3=A9nie?= de =?utf-8?Q?l'Ann?=
 =?utf-8?Q?=C3=A9e?= 228 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 17 Sep 2020 10:14:34 +0200
In-Reply-To: <20200916081411.5801-1-zimon.toutoune@HIDDEN> (zimoun's
 message of "Wed, 16 Sep 2020 10:14:11 +0200")
Message-ID: <87imcczuol.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=192.134.164.104;
 envelope-from=ludovic.courtes@HIDDEN;
 helo=mail3-relais-sop.national.inria.fr
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/17 04:14:46
X-ACL-Warn: Detected OS   = ???
X-Spam_score_int: -68
X-Spam_score: -6.9
X-Spam_bar: ------
X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: Maurice.Bremond@HIDDEN, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hello!

zimoun <zimon.toutoune@HIDDEN> skribis:

> The aim of switching the 2 packages from 'url-fetch' to 'svn-fetch' is
> twofolds, test case for improving:
>
>  - "guix lint -c archival" (support 'svn' and 'hg')
>  - the fallback to SWH (for non-git VCS source)

Woow, it=E2=80=99s ambitious given that SWH/SVN integration is currently la=
cking
on our side.  :-)

It=E2=80=99s a good idea to switch to gitlab.inria.fr for those that have
migrated, though.

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 16 Sep 2020 08:17:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 16 04:16:59 2020
Received: from localhost ([127.0.0.1]:33143 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kIScd-0005BK-Id
	for submit <at> debbugs.gnu.org; Wed, 16 Sep 2020 04:16:59 -0400
Received: from mail-wm1-f47.google.com ([209.85.128.47]:39027)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kIScV-0005An-UB
 for 43442 <at> debbugs.gnu.org; Wed, 16 Sep 2020 04:16:56 -0400
Received: by mail-wm1-f47.google.com with SMTP id b79so1970731wmb.4
 for <43442 <at> debbugs.gnu.org>; Wed, 16 Sep 2020 01:16:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=9xaqBFV1s3Y9JbiYLbcgWy/XqYRgN2TqQlZejwep4cc=;
 b=KM/+a33CDoLehbdfk8qznSSvBrb7jWO0AQw6xs21o4lto/aJ7yLI4JEbsH85sfsDXK
 P/veEGXVB0YWUubzAHjQhKTYglmix0gE2m8y9IkSG+oPi9mp/D4B6QhLb5UknRrP73zs
 CvPH5BSmt3ZHHtq/bbKuqnd+Y8zxTzqABC4zQMkNtlAWAczppP1o/1q3y8VJa5ybHpR/
 nLgL02h7d5212xFxIwEg5Z0YiM0Grnc9kpna1yjW5IvBEFflzt8zY002fd0raPERaPHv
 EFS7HSGUVMPpcu3mfQfta9NgQpnjOnGI0TCaCrJfRDkbZL4VFRHDU1817GcoywrvXwCq
 74Ew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=9xaqBFV1s3Y9JbiYLbcgWy/XqYRgN2TqQlZejwep4cc=;
 b=BddEWKt3XalHBGcFWTS7qMA7UnhDuyrpex+ArrEfZLyUfXwkqm6Uv/qeqN2gDd/8fn
 HOusx3+I64q/xpjUHJt+q+uG3hu0G+9qszextiZ+DTgTss1+5agxLqI3RkUr1opcOYSV
 0NmV1AfR1qEXjhtpyU8HV26g3M/VBl1UtLoWaN66x/F9AYbm7hUhn1mUhcgCHVg4qWqW
 k22Irq/XOz6e71YiVWaE8lGUwtaO+2GYm991xOgSjL15jq2JAKyJ8btg8+cOXWXOj1DL
 Gs4Vf75TRM7AG+IGp+6/K8jraZAePWPVnXMup7Xq1uyui0edX7u87/tKiD15i3ctfMOV
 797A==
X-Gm-Message-State: AOAM533RswfPKpTM+DdC4OPVymiuAdEEdn/vnofCLJ4ZGlvnCecMNIWh
 qNbT1Vkm2vCsmmwylvMMLYrw8EHKsec=
X-Google-Smtp-Source: ABdhPJykFM8DYcBrpbE2uIVVHTtpryenlMbs3vjHJD79cITdiF+AaSSLIAkiB11BwTaFbrRMUWk9Gw==
X-Received: by 2002:a05:600c:20f:: with SMTP id
 15mr3216783wmi.99.1600244205921; 
 Wed, 16 Sep 2020 01:16:45 -0700 (PDT)
Received: from lili.univ-paris-diderot.fr
 ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id w15sm33271135wro.46.2020.09.16.01.16.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 16 Sep 2020 01:16:45 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: 43442 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: mpfi: Replace 'url-fetch' by 'svn-fetch'.
Date: Wed, 16 Sep 2020 10:16:41 +0200
Message-Id: <20200916081642.6716-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.28.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43442
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Fixes <https://bugs.gnu.org/42162>.

* gnu/packages/multiprecision.scm (mpfi)[source]: Replace 'url-fetch' by
'svn-fetch'.
---
 gnu/packages/multiprecision.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/multiprecision.scm b/gnu/packages/multiprecision.scm
index b3a5ec5894..f1b152d9aa 100644
--- a/gnu/packages/multiprecision.scm
+++ b/gnu/packages/multiprecision.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Eric Bavier <bavier@HIDDEN>
 ;;; Copyright © 2018, 2019 Efraim Flashner <efraim@HIDDEN>
+;;; Copyright © 2020 Simon Tournier <zimon.toutoune@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32,6 +33,7 @@
   #:use-module (gnu packages texinfo)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix svn-download)
   #:use-module (guix utils)
   #:use-module (guix build-system gnu))
 
@@ -157,14 +159,15 @@ precision and correctly rounds the results.")
 (define-public mpfi
   (package
     (name "mpfi")
-    (version "1.5.4")
+    (version "1.5.4-688")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://gforge.inria.fr/frs/download.php"
-                           "/latestfile/181/mpfi-" version ".tgz"))
+       (method svn-fetch)
+       (uri (svn-reference
+             (url "https://scm.gforge.inria.fr/anonscm/svn/mpfi/trunk/mpfi")
+             (revision 688)))
        (sha256
-        (base32 "0mismr1ll3wp788dq2n22s5irm0dziy75byyfdwz22kjbmckhf9v"))))
+        (base32 "13pqkdvi8maj0mm76zh8p7jcc4c4569zh4kq336shh9cxlrh8qqx"))))
     (build-system gnu-build-system)
     (arguments
      `(#:tests? #f                      ;tests are broken in this release
-- 
2.28.0





Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at 43442 <at> debbugs.gnu.org:


Received: (at 43442) by debbugs.gnu.org; 16 Sep 2020 08:16:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 16 04:16:56 2020
Received: from localhost ([127.0.0.1]:33141 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kISca-0005B8-7i
	for submit <at> debbugs.gnu.org; Wed, 16 Sep 2020 04:16:56 -0400
Received: from mail-wr1-f54.google.com ([209.85.221.54]:40485)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kIScY-0005Aq-Ex
 for 43442 <at> debbugs.gnu.org; Wed, 16 Sep 2020 04:16:55 -0400
Received: by mail-wr1-f54.google.com with SMTP id j2so5890379wrx.7
 for <43442 <at> debbugs.gnu.org>; Wed, 16 Sep 2020 01:16:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=LCViRX8zDrlOWVj91b/FUlvacrnQUnuXBgUzO+aQPNs=;
 b=GTlOyIzyKpEY7Pe419DRMRbZzRotHuLEIneQsZbDShyY75x/Bl+f9cId2rDQKwnbBk
 N1kCi5OqAwAmCLSwYfBardg4XEeEGkq4zNpGJI+jVsZtBNWRbfqIL03kfpzL3FNNv2+M
 ZtDTzNy2gGA2ZnVId0790LbCD+IAP5Q4ms8vhEfIA4eoar21O5U2LAOrQK/7tQQ6n8LD
 7v1bGjmI00F2e9P+AmA80klVvYWJTib8y+cl2KkxH8xxQIb9w1ef6rrSMT9XDE8YtniU
 IVR7PMqDQf+KSbIYNUfpDnv2qtnPlROYdB+sl4OeV+Q6HdRHARkMxsEr54jqtJPBBmDF
 K5TA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=LCViRX8zDrlOWVj91b/FUlvacrnQUnuXBgUzO+aQPNs=;
 b=RPKo4X10H2uHD+pdA4zWqUcIqiHgWwWYB46J3XcPsT+wOKoH+z0PrxoYxqjFzzOr7b
 y51BtElyUDBtIHmfaqyVAfOjHIyTpx+HhGKs2KtDPPPvtHeE3u/XNH7cX66uyd5J8vCr
 gij4SYPxdJ6WrRAMIchTl7oE/YAyY4iiAEnkgxNfengpeccAGh5H1DuggEuJqLFi5iFT
 VwMoKK9F3C0uAsD4reokHnO3HgPQS0zaMIrHptMeEiQAY1OKaLHa/1V1n6kAgoOZUZcN
 VN9gFm8C/2jL152xXPc3E4lcpnMB2ghfjM7Vwj+ej64DTVOzeKQa1pz7TeDKInQn0J7d
 0cjQ==
X-Gm-Message-State: AOAM5302HLyu77XWddFgH8dFPBU4DjLI8SHE12wkEK3GlXbli+j+UeLr
 31duBTjeqncVftOz9zoiYik5eMUbgmI=
X-Google-Smtp-Source: ABdhPJyqFU+qBst5PTuPjLrzMs71ErYgdxm+1s47u8as3ZIlNztzpNw2NEPZLo3r9t+iZ//xgh3Yfw==
X-Received: by 2002:adf:e690:: with SMTP id r16mr25186005wrm.15.1600244208456; 
 Wed, 16 Sep 2020 01:16:48 -0700 (PDT)
Received: from lili.univ-paris-diderot.fr
 ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id w15sm33271135wro.46.2020.09.16.01.16.47
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 16 Sep 2020 01:16:48 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: 43442 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: gmp-ecm: Replace 'url-fetch' by 'svn-fetch'.
Date: Wed, 16 Sep 2020 10:16:42 +0200
Message-Id: <20200916081642.6716-2-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.28.0
In-Reply-To: <20200916081642.6716-1-zimon.toutoune@HIDDEN>
References: <20200916081642.6716-1-zimon.toutoune@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43442
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Fixes <https://bugs.gnu.org/42162>.

* gnu/packages/algebra.scm (gmp-ecm)[source]: Replace 'url-fetch' by
'svn-fetch'.
[natice-inputs]: Add requirements.
[arguments]: Adjust 'check phase to substitute correct path.
---
 gnu/packages/algebra.scm | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 318d653618..1cf293f17a 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2020 Jakub Kądziołka <kuba@HIDDEN>
 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@HIDDEN>
 ;;; Copyright © 2020 Vinicius Monego <monego@HIDDEN>
+;;; Copyright © 2020 Simon Tournier <zimon.toutoune@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -66,6 +67,7 @@
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (guix hg-download)
+  #:use-module (guix svn-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils))
@@ -670,15 +672,20 @@ geometry and singularity theory.")
 (define-public gmp-ecm
   (package
    (name "gmp-ecm")
-   (version "7.0.4")
+   (version "7.0.4-3088")
    (source (origin
-             (method url-fetch)
-             ;; Use the ‘Latest version’ link for a stable URI across releases.
-             (uri (string-append "https://gforge.inria.fr/frs/download.php/"
-                                 "latestfile/160/ecm-" version ".tar.gz"))
+             (method svn-fetch)
+             (uri
+              (svn-reference
+               (url "https://scm.gforge.inria.fr/anonscm/svn/ecm/trunk")
+               (revision 3088)))
              (sha256 (base32
-                      "0hxs24c2m3mh0nq1zz63z3sb7dhy1rilg2s1igwwcb26x3pb7xqc"))))
+                      "0g1jqgp9baqz4x9mzksch69i4kp3207d3wn56g9vnsmanrrb4qvb"))))
    (build-system gnu-build-system)
+   (native-inputs
+    `(("autoconf" ,autoconf)
+      ("automake" ,automake)
+      ("libtool" ,libtool)))
    (inputs
     `(("gmp" ,gmp)))
    (arguments
@@ -686,7 +693,14 @@ geometry and singularity theory.")
                           ;; Disable specific assembly routines, which depend
                           ;; on the subarchitecture of the build machine,
                           ;; and use gmp instead.
-                          "--disable-asm-redc")))
+                          "--disable-asm-redc")
+      #:phases (modify-phases %standard-phases
+                 (add-before 'check 'replace-/bin/rm
+                   (lambda _
+                     (substitute*
+                         (list "test.ecm")
+                       (("/bin/rm") (which "rm")))
+                     #t)))))
    (synopsis "Integer factorization library using the elliptic curve method")
    (description
     "GMP-ECM factors integers using the elliptic curve method (ECM) as well
-- 
2.28.0





Information forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Sep 2020 08:14:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 16 04:14:27 2020
Received: from localhost ([127.0.0.1]:33130 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kISaB-000558-Eu
	for submit <at> debbugs.gnu.org; Wed, 16 Sep 2020 04:14:27 -0400
Received: from lists.gnu.org ([209.51.188.17]:42232)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kISa8-00054z-Dx
 for submit <at> debbugs.gnu.org; Wed, 16 Sep 2020 04:14:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56696)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1kISa8-0004Zp-9E
 for guix-patches@HIDDEN; Wed, 16 Sep 2020 04:14:24 -0400
Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:37534)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1kISa5-00040X-Kb
 for guix-patches@HIDDEN; Wed, 16 Sep 2020 04:14:23 -0400
Received: by mail-wr1-x443.google.com with SMTP id z4so5910886wrr.4
 for <guix-patches@HIDDEN>; Wed, 16 Sep 2020 01:14:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=44JcPDudrQuC8+Gfm4iVcUFgsOfwBEmQeG0cijnUQp4=;
 b=m23MiHJ7ZPFswQ6b7wZ5YEBf9R0D4+2ScFNTyeAusAmpT9JdTp0Kco8iHw4Yx/zsJY
 7Oqq2OAS3P+C8QIOd/BsJzDZCqxVgeXqHk2E0hXo6fYjPhKoy5m6Si+tVsnxV02OQ206
 p8Wyonj2ha9uuXk+wZSbjAEl6xNwGHOj1VTJ2Vr7E0lgQL7rbJGUTfHBdNMc6Eu8RdXv
 yGuR0yj74dKu3cl6C42oQ+6e2NUGY5ctuvywxtrjXSzITibI25BrsccSxhrLo7Tm6PXG
 ToU2yw3YutLxefHNgBJ1LFcarIR1h62eyV0jucsvWNHx9SKARrvW60x6Tuo8KL2NBUZM
 Chgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=44JcPDudrQuC8+Gfm4iVcUFgsOfwBEmQeG0cijnUQp4=;
 b=HXAsSbWDSbZz7JFaAj7S0WfkmZoUXmzNDa5wkC22cwrJ/OewAkguVguOBLLBpoEm6y
 oA1tpRZdTwsBXMkzbrUxcCmyF4gJiAOab7NidYk+H91n4mU4p9fqkeXbM5W7eyircyl/
 QCHWAC3ST8ckUzzaVA2v5SDlaH8h8V/CCnu7pR/a7jSLjqgm10tWLGK3dxevmQvqiN2F
 dsIeN9MFPyV1as1z255ZkhXft0/5tXdPgmSQ15Io9booGmFwgnU3UIrpP9A9s83HGEpQ
 FtmGBHuHAFgq+L2Cxra9oHpEj01jvzrgoZtadQ6aMt2sCR0r+3tRRN39BCfmNSMLJT5U
 Ct0g==
X-Gm-Message-State: AOAM531ZETh5qm+Q+LQ42Cw8l16xYLgK8oMKSSmq8p2MfjB1f3qnZrN7
 Te9zWYrwKOkPETydykDxPhxotlxUDLQ=
X-Google-Smtp-Source: ABdhPJxsfBPxiHA06AcI1jkhzHYmT3hfwSmj1Z8EGex+RBIzRtQvGjEccUhdxbxcFi5JJ6opAg6+hA==
X-Received: by 2002:adf:f784:: with SMTP id q4mr20261633wrp.126.1600244059594; 
 Wed, 16 Sep 2020 01:14:19 -0700 (PDT)
Received: from lili.univ-paris-diderot.fr
 ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id n11sm31519839wrx.91.2020.09.16.01.14.18
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 16 Sep 2020 01:14:19 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] Fixes init of #42162: gforge.inria.fr down Dec. 2020
Date: Wed, 16 Sep 2020 10:14:11 +0200
Message-Id: <20200916081411.5801-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.28.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::443;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x443.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
Cc: Maurice.Bremond@HIDDEN, ludovic.courtes@HIDDEN,
 zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Dear,

The first message in [1] explains the concrete issue.  To avoid to pollute the
already long thread discussing long term Tarball Archiving (which will not be
ready before the down), here is sent patches fixing the concrete issue.

Aside, note that the tarballs should be now ingested by Software Heritage via:

https://archive.softwareheritage.org/browse/search/?q=https%3A%2F%2Fguix.gnu.org%2Fsources.json&with_visit=true&with_content=true

but the issue is to reach them; well see [2].


From [1], the non-archived packages (yet) are:

--8<---------------cut here---------------start------------->8---
  scheme@(guile-user)> ,pp (lset-difference eq? $7 $8)
  $11 = (
   #<package r-spams@HIDDEN gnu/packages/statistics.scm:3931 7f632401a640>
   #<package mpfi@HIDDEN gnu/packages/multiprecision.scm:158 7f632ee3adc0>
   #<package gf2x@HIDDEN gnu/packages/algebra.scm:103 7f6323ea1280>
   #<package gmp-ecm@HIDDEN gnu/packages/algebra.scm:658 7f6323eb4960>
   #<package cmh@HIDDEN gnu/packages/algebra.scm:322 7f6323eb4dc0>)
--8<---------------cut here---------------end--------------->8---

However, some have migrated to gitlab:

 - r-spams
     <https://gitlab.inria.fr/thoth/spams-devel>
 - gf2x
     <https://gitlab.inria.fr/gf2x/gf2x>
 - cmh
    <https://prod-gitlab.inria.fr/cmh/cmh>

Note that repackage 'r-spams' from the Git checkout needs some love and is not
straightforward.  (Not tried yet the 2 others).


The aim of switching the 2 packages from 'url-fetch' to 'svn-fetch' is
twofolds, test case for improving:

 - "guix lint -c archival" (support 'svn' and 'hg')
 - the fallback to SWH (for non-git VCS source)

WDYT?


[1]: <http://issues.guix.gnu.org/issue/42162>
[2] <https://forge.softwareheritage.org/T2430>

All the best,
simon

PS:
I am not sure how to deal with <control <at> debbugs.gnu.org> to "clone" (split)
the bug #42162.  That's why this one. :-)


zimoun (2):
  gnu: mpfi: Replace 'url-fetch' by 'svn-fetch'.
  gnu: gmp-ecm: Replace 'url-fetch' by 'svn-fetch'.

 gnu/packages/algebra.scm        | 28 +++++++++++++++++++++-------
 gnu/packages/multiprecision.scm | 13 ++++++++-----
 2 files changed, 29 insertions(+), 12 deletions(-)


base-commit: f5163902d7c3cfed5a97033f38e92d7158b19fa8
-- 
2.28.0





Acknowledgement sent to zimoun <zimon.toutoune@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#43442; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 20 Mar 2023 14:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.