From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: New build system: copy-build-system Date: Mon, 27 Jan 2020 16:03:39 +0100 Message-ID: References: <87sgk2dkuv.fsf@ambrevar.xyz> <87pnf5arh1.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42540) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw5vd-0001Go-CO for guix-devel@gnu.org; Mon, 27 Jan 2020 10:03:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw5vc-0007Gn-Au for guix-devel@gnu.org; Mon, 27 Jan 2020 10:03:53 -0500 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:42737) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iw5vc-0007FM-6c for guix-devel@gnu.org; Mon, 27 Jan 2020 10:03:52 -0500 Received: by mail-qt1-x82a.google.com with SMTP id j5so7570175qtq.9 for ; Mon, 27 Jan 2020 07:03:52 -0800 (PST) In-Reply-To: <87pnf5arh1.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix Devel On Mon, 27 Jan 2020 at 15:45, Pierre Neidhardt wrote: > > zimoun writes: > > > Well, the questions are: > > - hash? > > - a copy on Berlin as substitute? > > What are the questions exactly? I don't understand what you are asking. Considering "large" data, the questions are: How to compute the hash? Does Berlin have a copy of large data set? > > I am just taking the occasion to discussion the hypothetical > > possibility to discuss if 'copy-build-system' could be way to > > distribute such data set. [...] > Hmmm, maybe you are asking for something else, because the > copy-build-system, as a build system, has nothing to do with the fetcher > which is responsible for fetching the data over the network. I know that it was not your initial intention with 'copy-build-sytem'. :-) You want something like that: --8<---------------cut here---------------start------------->8--- (define-public debian-archive-keyring (package (name "debian-archive-keyring") (version "2019.1") (source ...) (build-system copy-build-system) (arguments '(#:install-plan (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (apt (string-append out "/etc/apt/trusted.gpg.d/")) (key (string-append out "/share/keyrings/"))) (install-file "keyrings/debian-archive-keyring.gpg" key) (install-file "keyrings/debian-archive-removed-keys.gpg" key) (for-each (lambda (file) (install-file file apt)) (find-files "trusted.gpg" "\\.gpg$"))) #t))))) --8<---------------cut here---------------end--------------->8--- instead of the current: --8<---------------cut here---------------start------------->8--- (build-system gnu-build-system) (arguments '(#:test-target "verify-results" #:parallel-build? #f ; has race conditions #:phases (modify-phases %standard-phases (delete 'configure) ; no configure script (replace 'install --8<---------------cut here---------------end--------------->8--- I agree that it is a good idea. The aim of my comment was: 1. Point out a previous discussion about the packages of data only; which is what we are talking about, right? 2. Discuss if your proposal can fit some data distribution issue; discussed earlier at point 1.. Cheers, simon