From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AErlOZ+sq2O5zwAAbAwnHQ (envelope-from ) for ; Wed, 28 Dec 2022 03:40:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gF/XOZ+sq2OTBwAAauVa8A (envelope-from ) for ; Wed, 28 Dec 2022 03:40:31 +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 9D95345C62 for ; Wed, 28 Dec 2022 03:40:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAMMO-0003d2-Ca; Tue, 27 Dec 2022 21:40:04 -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 1pAMMM-0003cf-AU for guix-patches@gnu.org; Tue, 27 Dec 2022 21:40:03 -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 1pAMMM-0000br-1D for guix-patches@gnu.org; Tue, 27 Dec 2022 21:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAMML-0007kZ-IS for guix-patches@gnu.org; Tue, 27 Dec 2022 21:40:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60358] [PATCH v2 1/2] gnu: Add gnulib. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Dec 2022 02:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60358 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60358@debbugs.gnu.org Received: via spool by 60358-submit@debbugs.gnu.org id=B60358.167219515729715 (code B ref 60358); Wed, 28 Dec 2022 02:40:01 +0000 Received: (at 60358) by debbugs.gnu.org; 28 Dec 2022 02:39:17 +0000 Received: from localhost ([127.0.0.1]:56879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAMLd-0007jA-9g for submit@debbugs.gnu.org; Tue, 27 Dec 2022 21:39:17 -0500 Received: from planete-kraus.eu ([89.234.140.182]:55286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAMLb-0007j1-KF for 60358@debbugs.gnu.org; Tue, 27 Dec 2022 21:39:16 -0500 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 6d7a8255 for <60358@debbugs.gnu.org>; Wed, 28 Dec 2022 02:39:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= in-reply-to:references:from:date:subject:to:message-id :mime-version; s=dkim; bh=D7CY9e85DfujMFXQ3kxsSGyD4yY=; b=WhVVk3 20M4X09/8LlqVwZbyWKyE9jqTuPpWIEuIn1rZ2rWwlAZ+10NU8UTOmkUekFaFM1E 0IQCijkPjR9GC+MmwhHAGKDJGoI7kAdvCC/+cd47cyfoenpbRMSXjo2349qES2Lt hulbWGN0A5EddCcd8W/NSvpfTSIaQtsEU2phY= Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id ed81f6d8 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <60358@debbugs.gnu.org>; Wed, 28 Dec 2022 02:39:11 +0000 (UTC) In-Reply-To: <5c64afba3acb7820763eb5a4bf2567fc4b12ad77.camel@gmail.com> References: <5c64afba3acb7820763eb5a4bf2567fc4b12ad77.camel@gmail.com> Date: Tue, 27 Dec 2022 17:23:30 +0100 Message-ID: <39b658dda4fef7c90037de4ab69896cb5c37ae6d.camel@planete-kraus.eu> MIME-Version: 1.0 User-Agent: Evolution 3.46.0 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: , Reply-to: Vivien Kraus X-ACL-Warn: , Vivien Kraus via Guix-patches From: Vivien Kraus via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672195231; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: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=C592INsxBdjDl+bVrKTDSizK7iwVA9WHX6NFH0IwzIw=; b=kkE0a6as0pjHSwd/SlFrLDyev+PVkeO9hwclKhM55ISjk57k6Fh9sM9l7wiiDh2vxoh5O5 1e1wAr1CDzhhi62hh+QrOuHc3WW82D5jbkPYq+T9Q6M2k0BcbmFqkyDInMUXq2Hw3nSuOa MMsbW6yvlj9ToTATLXS28bWU4XU0K9EaxMzd3gXBA/vCgMNi9gV49Lqj4hBihdYO0yr1PL Af5WD25GVPDhsVKV0HgGKRUt1l0QI008FvH8vfS8UQhputGa6fcMhV2yZtV6eip9QJEsIe qPTosqdMVuNQqXNADY1qIsdgtBi1Y2AwIkHeyZlZUL/6ynmiFt4t0IpUbvul9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=dkim header.b="WhVVk3 2"; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672195231; a=rsa-sha256; cv=none; b=Deu9U5GxfrZBXhO3iqk+18erZjhZfFjRHqtFYgKouhXSHxWYbRL3edETThu3BBfdmJPAsF Kn+79yXcO9RXMzUTIvF31rf4LV2vv/413pBQdBSFog0DTV3sB/n3vOddh8KbBT/1uiN4qt 0Ef8Qpx6jIVU3U0rdn2TutSbiA8ay5DLusvafj5qIxUUmsG+9QIr8cIzUEwFwLpjBNM84N MRrlsJX2/XT1+d/BXw6Wwe3uiNWQQyY3z223VqAILvORYF3PCjHQLUiWuye1mWuyFehMZ6 6C1KhJ0O9CNNE1CklS9fxRf23+l8HzJqcjLK+uEPb0RJdGejkYUiAAu11chnPA== X-Spam-Score: -2.03 X-Migadu-Queue-Id: 9D95345C62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=dkim header.b="WhVVk3 2"; 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=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.03 X-TUID: /DRazZl5VU2N * gnu/packages/build-tools.scm (gnulib): New variable. (gnulib-checkout): New function. It returns a package with a specific commit of gnulib. --- gnu/packages/build-tools.scm | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index 6c1350c44f..5b4fc71429 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -38,6 +38,7 @@ (define-module (gnu packages build-tools) #:use-module (guix gexp) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix git) #:use-module (guix build-system cmake) #:use-module (gnu packages) #:use-module (gnu packages adns) @@ -48,11 +49,13 @@ (define-module (gnu packages build-tools) #:use-module (gnu packages cpp) #:use-module (gnu packages elf) #:use-module (gnu packages linux) + #:use-module (gnu packages lisp) #:use-module (gnu packages logging) #:use-module (gnu packages lua) #:use-module (gnu packages ninja) #:use-module (gnu packages package-management) #:use-module (gnu packages pcre) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) #:use-module (gnu packages protobuf) @@ -803,3 +806,58 @@ (define-public genie same settings to multiple projects. It supports generating projects using GNU Makefiles, JSON Compilation Database, and experimentally Ninja.") (license license:bsd-3)))) + +(define-public (gnulib-checkout gl-version gl-commit gl-hash) + "Return as a package the exact gnulib checkout." + (package + (name "gnulib") + (version (git-version gl-version "1" gl-commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.savannah.gnu.org/git/gnulib.git") + (commit gl-commit))) + (file-name (git-file-name name version)) + (sha256 (base32 gl-hash)))) + (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda _ + (install-file "gnulib-tool" + (string-append #$output "/bin")) + (copy-recursively "." + (string-append + #$output + "/share/gnulib/" + #$gl-commit))))) + #:tests? #f)) ;; Tests are syntax and indentation checks for the + ;; maintainer. + (inputs ;; Shebangs for some auxiliary build files. + (list python perl clisp)) + (home-page "https://www.gnu.org/software/gnulib/") + (synopsis "Source files to share among distributions") + (description + "Gnulib is a central location for common infrastructure needed by GNU +packages. It provides a wide variety of functionality, e.g., portability +across many systems, working with Unicode strings, cryptographic computation, +and much more. The code is intended to be shared at the level of source +files, rather than being a standalone library that is distributed, built, and +installed. The included @command{gnulib-tool} script helps with using Gnulib +code in other packages. Gnulib also includes copies of licensing and +maintenance-related files, for convenience.") + (native-search-paths + (list (search-path-specification + (variable "GNULIB_SRCDIR") + (files (list (string-append "share/gnulib/" gl-commit)))))) + (license (list license:lgpl2.0+ license:gpl3+)))) + +(define-public gnulib + (gnulib-checkout + "2022-12-27" + "fde75446490e18d2539817ca418ab8adf73b02d3" + "0fjbdhwi9025wyq39rwc2j6aazfmagx056kkbvxx6bs97i80dcim")) base-commit: 0cb8f7125b19264b01962c1249c3df4c5ce85aa9 -- 2.38.1