From: zimoun <zimon.toutoune@gmail.com>
To: Timothy Sample <samplet@ngyro.com>
Cc: guix-devel@gnu.org
Subject: Re: Preservation of Guix 2021-10-22
Date: Mon, 25 Oct 2021 23:51:57 +0200 [thread overview]
Message-ID: <86pmrs93ia.fsf@gmail.com> (raw)
In-Reply-To: <87r1cb3fch.fsf@ngyro.com>
Hi Timothy,
On Sat, 23 Oct 2021 at 11:55, Timothy Sample <samplet@ngyro.com> wrote:
> zimoun <zimon.toutoune@gmail.com> writes:
>
>> How can I get the list of these 376+217 packages? Because it appears to
>> me easy to send a save request for them. :-)
Done. :-)
> Download the database (there’s a button at the bottom of the report),
> and use SQLite to run the following queries.
>
> For the 376:
>
> SELECT fod_id,
> swhid,
> reference
> FROM fods
> LEFT JOIN fod_references USING (fod_id)
> WHERE NOT is_in_swh
> AND reference LIKE '(git-reference%';
>
> For the 217 (which is the best place to start):
>
> SELECT fod_id,
> swhid,
> reference
> FROM fods
> JOIN fod_commit_links USING (fod_id)
> JOIN commits USING (commit_id)
> LEFT JOIN fod_references USING (fod_id)
> WHERE commits.hash = '258a27eea9aab4f8af995f95743ccd264b5efcb5'
> AND NOT is_in_swh
> AND reference LIKE '(git-reference%';
I have not checked one per one but I guess the 217 are included in the
376 ones. As I said earlier, many of them are duplicates.
Stupid me about previous question using SWH token, I did not use the
right environment variable. Arf!
Using something like that,
--8<---------------cut here---------------start------------->8---
(use-modules (guix swh)
(srfi srfi-1))
(setenv "GUIX_SWH_TOKEN"
"eyJhbG…"
)
(define missings
(list
;;"git://pumpa.branchable.com/"
"http://genome-source.cse.ucsc.edu/samtabix.git"
[...]
"https://salsa.debian.org/installer-team/debootstrap.git"
))
(for-each
(lambda (url)
(unless (lookup-origin url)
(pk url)
(save-origin url)))
missings)
--8<---------------cut here---------------end--------------->8---
now, all the missing URLs should be ingested by SWH – modulo a couple
rejected or failed*. It is not bullet-proof for the future – somehow it
shows that submitters and reviewers do not systematically run “guix lint
<package>” – but it should improve the POG report. :-)
I expect to have 0 missing git-reference package for the recent
revisions. If not, please raise!
*reject or failed: I am going to ask SWH folks.
From my side, the next steps I envision is:
1. have sources.json produced by a derivation so it could be run by CI
2. support SVN
I need help for #1 because I am not sure to understand how to do that.
About #2, it is few packages but many packages depends on some TeX.
Cheers,
simon
next prev parent reply other threads:[~2021-10-25 21:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-23 1:09 Preservation of Guix 2021-10-22 Timothy Sample
2021-10-23 7:52 ` zimoun
2021-10-23 15:55 ` Timothy Sample
2021-10-25 8:43 ` zimoun
2021-10-25 9:55 ` indieterminacy
2021-10-25 11:19 ` zimoun
2021-10-25 20:49 ` zimoun
2021-10-29 14:25 ` Ludovic Courtès
2021-10-25 21:51 ` zimoun [this message]
2021-10-26 13:12 ` Timothy Sample
2021-10-26 15:50 ` zimoun
2021-10-29 14:30 ` Ludovic Courtès
2021-10-30 16:00 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86pmrs93ia.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=samplet@ngyro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.