From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UEvcMofPrmPlngAAbAwnHQ (envelope-from ) for ; Fri, 30 Dec 2022 12:46:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oAYOMofPrmOioAAAG6o9tA (envelope-from ) for ; Fri, 30 Dec 2022 12:46:15 +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 371B23A4DD for ; Fri, 30 Dec 2022 12:46:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBDpI-00071L-Ec; Fri, 30 Dec 2022 06:45:29 -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 1pBDot-0006t2-QY for guix-patches@gnu.org; Fri, 30 Dec 2022 06:45:08 -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 1pBDot-0006EJ-Fz for guix-patches@gnu.org; Fri, 30 Dec 2022 06:45:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBDot-0005K4-BO for guix-patches@gnu.org; Fri, 30 Dec 2022 06:45:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60358] [PATCH v4 1/3] gnu: Add gnulib. References: In-Reply-To: Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Dec 2022 11:45:03 +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 Cc: Liliana Marie Prikler Received: via spool by 60358-submit@debbugs.gnu.org id=B60358.167240067320386 (code B ref 60358); Fri, 30 Dec 2022 11:45:03 +0000 Received: (at 60358) by debbugs.gnu.org; 30 Dec 2022 11:44:33 +0000 Received: from localhost ([127.0.0.1]:33650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBDoP-0005Ie-Ce for submit@debbugs.gnu.org; Fri, 30 Dec 2022 06:44:33 -0500 Received: from planete-kraus.eu ([89.234.140.182]:39758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBDoJ-0005Hz-Ov for 60358@debbugs.gnu.org; Fri, 30 Dec 2022 06:44:28 -0500 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 5233aec9; Fri, 30 Dec 2022 11:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h=from :date:subject:to:cc:message-id:mime-version; s=dkim; bh=xl1U1RNJ T3U2fJXIQ1ALpV8Bmn8=; b=k5E1iBJrm767F6imDIIuY7k3Hw6LvHg3g9Z2Yak0 r0T+/zoAsr4Ntx4S+93pNBgNdW9FsnWoj9bg7YOXWCxEUMDTPTsnKz4k7jYUgPu/ 3bKHozOtlr6PgDzWIKVhNQgnWVw3avX4x4SMjUNbFSpOy8khzA4F06S76YeeHgx7 KLM= Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id e45d1633 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Fri, 30 Dec 2022 11:44:22 +0000 (UTC) Date: Tue, 27 Dec 2022 17:23:30 +0100 Message-ID: <45c0f87031004dcca08c98161fd021787c3ab3de.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-Seal: i=1; s=key1; d=yhetil.org; t=1672400775; a=rsa-sha256; cv=none; b=WRubZsaozu4Mgw4AVjaDmRkM/swW0Mg6Kl/Ut9T/8Yn7qrPsUVc6psQWPOsHyJ/evwdWpE R5yPUvnTmQvUrfs05lTR/k3xsWKxmaxcOqRFqoIK6BrtpfGxcaE7za5uOFatUsDMkcmwqD w+GXJIAP5hh8wWkwC1Lj6aDfWENHl/nxfULWPOY+sDUn8kKGWqSmIeQKrxdS/xjwMGrJYP rVvdRFmHlc/kzRi0rb51ByRmracQ4f+SNxEEG52iTg9OWWdpJGJxmG7yQl9EP2on0KphAY k5o51uGJM2uo0l6TBYWrMtWypfkX1SMsfkkPebXzfdvC+7OsbOkLbKmCcd9/tw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=dkim header.b=k5E1iBJr; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672400775; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=/5pv26NMkaSumdPy+SugPeN7lvI1Sjk+1uLlGKcZ97o=; b=j29N2WIYnZIuzeAJtkSHeWfcfV1E+s54eCM4xXNMec22zKrAjisnyu5XAeRnBpcMcvAJwS CpH6oANjtojCyrZs+cgB8oEsHrDFZm+EbTbpZ7KhM2VBchIR5/vIKR7I3a836dTsx/P/0k lssP42vCBCgrHXTP3TYoIJE9/jZafJGbOIBrYIfXjkLO72OM13uk/Ry2EmPN/tV8eecbuq iQPTO/6UB4kQ1MmSO0Kl7surwaMe1fYTyKScGF1jJmnJR4zRU6SJ+cXEu9AkfKgGk5gtTr ZAdLKUYlKNrr+rsPRQ1D+6ii8qoxo5dVHl+Kx0Ku0IrNej7LC4d9s6LBaWUF1Q== X-Spam-Score: -2.13 X-Migadu-Queue-Id: 371B23A4DD Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=dkim header.b=k5E1iBJr; 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: scn0.migadu.com X-Migadu-Spam-Score: -2.13 X-TUID: bHWReJPH5/GB * 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 | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index 6c1350c44f..bde4ee0973 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -32,12 +32,14 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages build-tools) + #:use-module (ice-9 optargs) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix utils) #:use-module (guix packages) #: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 +50,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 +807,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 #:key + version + (revision "1") + commit + hash) + "Return as a package the exact gnulib checkout." + (package + (name "gnulib") + (version (git-version version revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.savannah.gnu.org/git/gnulib.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 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 "/src/gnulib/"))))) + #:tests? #f)) ;; Tests are syntax and indentation checks for the + ;; maintainer. And they are failing. + (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 "src/gnulib"))))) + (license (list license:lgpl2.0+ license:gpl3+)))) + +(define-public gnulib + (gnulib-checkout + #:version "2022-12-28" + #:commit "14a7b0ce5462c90ce86d97bf952185ec2500d341" + #:hash (base32 "0fz25ccdlxf4xp37rjsl1fslc4g0x12qpvadz4qw0cq18dvx5kbx"))) base-commit: 01762b7171f9afaf7ffa364f7926461bdebc903f -- 2.38.1