From patchwork Mon Feb 17 11:12:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Neidhardt X-Patchwork-Id: 20292 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0D48D27BBE4; Mon, 17 Feb 2020 11:13:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id CCEAB17B44 for ; Mon, 17 Feb 2020 11:13:16 +0000 (GMT) Received: from localhost ([::1]:43658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3eKy-0006pj-CJ for patchwork@mira.cbaines.net; Mon, 17 Feb 2020 06:13:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36772) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3eKm-0006oG-5n for guix-patches@gnu.org; Mon, 17 Feb 2020 06:13:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3eKl-000507-6b for guix-patches@gnu.org; Mon, 17 Feb 2020 06:13:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3eKl-0004zv-2t for guix-patches@gnu.org; Mon, 17 Feb 2020 06:13:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3eKk-00057W-UO for guix-patches@gnu.org; Mon, 17 Feb 2020 06:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39599] [PATCH 4/4] gnu: net-base: Use copy build system. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Feb 2020 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39599 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39599@debbugs.gnu.org Received: via spool by 39599-submit@debbugs.gnu.org id=B39599.158193795419626 (code B ref 39599); Mon, 17 Feb 2020 11:13:02 +0000 Received: (at 39599) by debbugs.gnu.org; 17 Feb 2020 11:12:34 +0000 Received: from localhost ([127.0.0.1]:38051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3eKI-00056O-Bk for submit@debbugs.gnu.org; Mon, 17 Feb 2020 06:12:34 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:38117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3eKF-00055e-AA for 39599@debbugs.gnu.org; Mon, 17 Feb 2020 06:12:32 -0500 X-Originating-IP: 92.169.129.147 Received: from bababa.home (lfbn-idf2-1-1315-147.w92-169.abo.wanadoo.fr [92.169.129.147]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 2DE3420013 for <39599@debbugs.gnu.org>; Mon, 17 Feb 2020 11:12:30 +0000 (UTC) From: Pierre Neidhardt Date: Mon, 17 Feb 2020 12:12:28 +0100 Message-Id: <20200217111228.23716-4-mail@ambrevar.xyz> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200217111228.23716-1-mail@ambrevar.xyz> References: <20200214125144.4185-1-mail@ambrevar.xyz> <20200217111228.23716-1-mail@ambrevar.xyz> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/admin.scm (net-base)[build-system]: Use copy-build-system. --- gnu/packages/admin.scm | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 4780fe124e..1f384edb2c 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -54,6 +54,7 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system emacs) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) @@ -566,30 +567,12 @@ to allow automatic login and starting any app.") (sha256 (base32 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1")))) - (build-system trivial-build-system) + (build-system copy-build-system) (arguments - `(#:modules ((guix build utils)) - #:builder (begin - (use-modules (guix build utils) - (srfi srfi-26)) - - (let* ((source (assoc-ref %build-inputs "source")) - (tar (assoc-ref %build-inputs "tar")) - (xz (assoc-ref %build-inputs "xz")) - (output (assoc-ref %outputs "out")) - (etc (string-append output "/etc"))) - (setenv "PATH" (string-append xz "/bin")) - (invoke (string-append tar "/bin/tar") "xvf" - source) - (chdir ,(string-append "netbase-" version)) - (mkdir-p etc) - (for-each copy-file - '("etc-services" "etc-protocols" "etc-rpc") - (map (cut string-append etc "/" <>) - '("services" "protocols" "rpc"))) - #t)))) - (native-inputs `(("tar" ,tar) - ("xz" ,xz))) + `(#:install-plan + `(("etc-services" "etc/services") + ("etc-protocols" "etc/protocols") + ("etc-rpc" "etc/rpc")))) (synopsis "IANA protocol, port, and RPC number assignments") (description "This package provides the /etc/services, /etc/protocols, and /etc/rpc