From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gDS/GCL1SWYQAgEAe85BDQ:P1 (envelope-from ) for ; Sun, 19 May 2024 14:48:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gDS/GCL1SWYQAgEAe85BDQ (envelope-from ) for ; Sun, 19 May 2024 14:48:34 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alternativebit.fr header.s=gm1 header.b=ArPSE8uR; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716122914; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=zJ1R31A6AQc5rz+A+GB/sVL0EWfQIV5MHE+Y3zcpwhk=; b=D+ZoIDSiRplO7oL0eP7SjyplDvgcpOTlDounV60+MaTzhQkm088sIcu7oVcIHH6MOIVlfP CsWOquKcOUO/biPGmxKQTkvZWz3AFvMkrDLjFrvEltfIa+rJhMZ3bRKIKxV0DluQASS3uA re6pHZ+cUZDQufYfbw4hfypHM/l/ne+o46x46s5eKufdhVUgnYSXheK65aajNbOrMCCtey y3lkxBpKz3n0sffFCqChCh3X0hKS62JlCEDSE4uATKvo7y1NGlPgPSSRLkt16tbDCciJHB pSv+2fTQ5r5CEiyhWKUI0mvbX2hjgem7bBhzRTbZEMabJCoSeV6GOFUuA8gK3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716122914; a=rsa-sha256; cv=none; b=MRs77LWhPMg4NqgLp110COujYWLfronoTh7dUhgfZQ+iEoDnUiKRjco1vfb+VdVAj+truU D9M9ocaLRa7JFgYJKAlZe3a0fHUNRwtao//luqpMHOLlglY0yBngyC70PCJNJ7PS/Kbmi3 LyDB3MKhVKhIqG7vg7Xzmu/6y+uqmA1GzrwCaSWWjJ/diOM8ZCY69q7q/o9GXVITr3iVSq 7O4B8kVxxLQU/jsgN66Z1vX4Gc2f6PFEKGHunov4SihHh2lI1hjInZSwaSGBrS9KsL49yA ExgWFAOgswDn4EgeRBiXk7nYw9LBb2bL1TNHwWgp5CJFmAKTDcxQOlVkkCiZgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alternativebit.fr header.s=gm1 header.b=ArPSE8uR; dmarc=none; 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" 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 52AC266831 for ; Sun, 19 May 2024 14:48:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8fxO-00019t-5m; Sun, 19 May 2024 08:48:06 -0400 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 1s8fxJ-00017E-U5 for guix-patches@gnu.org; Sun, 19 May 2024 08:48:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8fxI-0006AW-Lg for guix-patches@gnu.org; Sun, 19 May 2024 08:48:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8fxL-0008U6-KW for guix-patches@gnu.org; Sun, 19 May 2024 08:48:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71064] [PATCH 6/7] gnu: Add nsncd. Resent-From: picnoir@alternativebit.fr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 May 2024 12:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71064 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71064@debbugs.gnu.org Cc: Picnoir Received: via spool by 71064-submit@debbugs.gnu.org id=B71064.171612284632572 (code B ref 71064); Sun, 19 May 2024 12:48:03 +0000 Received: (at 71064) by debbugs.gnu.org; 19 May 2024 12:47:26 +0000 Received: from localhost ([127.0.0.1]:36242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8fwk-0008TH-5E for submit@debbugs.gnu.org; Sun, 19 May 2024 08:47:26 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:34425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <*@alternativebit.fr>) id 1s8fwh-0008Sm-5k for 71064@debbugs.gnu.org; Sun, 19 May 2024 08:47:23 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 626AD1BF205; Sun, 19 May 2024 12:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alternativebit.fr; s=gm1; t=1716122813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zJ1R31A6AQc5rz+A+GB/sVL0EWfQIV5MHE+Y3zcpwhk=; b=ArPSE8uRqj6rsI6190uNoMepamYyJk9XOzZnlD2zXVQ1bEw1Vto2etdrkykRA1/FUIEOT1 LoHozUmkoC8ZM6l0sJxyYo6V4ob5EqZYJbY6tCfrgHGIY20w3pSfhIvED0dvNitIg9fNtD Upa6UEQWNeIQtcA/oOOQeSIjyl04ENH5PQhMKb0QaD9HdlrRZhRs5URWC4Wt6J0OOr/SBr 4Lou2q7u5lwLzXXZrgmHI2f9LDYHblhNcvtb35/uB2BzGoKzsS3b/L+2Bl+iohDcoX7L/f ZVP9lfVd+wXzWlKHUvNBr6xNecn+rQTdGIiw0irR5n5h4hokd1nVZT/l1VE+cQ== From: picnoir@alternativebit.fr Date: Sun, 19 May 2024 14:46:26 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: felix@alternativebit.fr 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.96 X-Spam-Score: -0.96 X-Migadu-Queue-Id: 52AC266831 X-Migadu-Scanner: mx11.migadu.com X-TUID: Pc3OzlZVtXgP From: Picnoir * gnu/packages/nss.scm (nsncd): New variable. Introducing Nsncd, a non-caching alternative of Glibc Nscd. Change-Id: I18ba7ffbb6fb59c4928829bb98a8da4e6963e587 --- gnu/packages/nss.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index 162e748094..492b5ef3bd 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -28,6 +28,8 @@ (define-module (gnu packages nss) #:use-module (guix utils) #:use-module (guix gexp) #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system cargo) #:use-module (guix build-system gnu) #:use-module (guix build-system mozilla) #:use-module ((guix licenses) #:prefix license:) @@ -35,6 +37,7 @@ (define-module (gnu packages nss) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) + #:use-module (gnu packages crates-io) #:use-module (gnu packages compression) #:use-module (gnu packages perl) #:use-module (gnu packages sqlite)) @@ -286,3 +289,44 @@ (define-public nss/fixed ;; work around that, set the time to roughly the release date. (invoke "faketime" "2024-01-23" "./nss/tests/all.sh")) (format #t "test suite not run~%")))))))))))) + +(define-public nsncd + (package + (name "nsncd") + (version "unstable-2024-04-09") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twosigma/nsncd") + (commit "7605e330d5a313a8656e6fcaf1c10cd6b5cdd427"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hk8bh2a02nyk3rpzbjx1a2iiz15d0vx3ysa180wmr8gsc9ymph5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags + '("--" + ; These tests fail with the current builder network setup + "--skip=ffi::test_gethostbyaddr_r" + "--skip=ffi::test_gethostbyname2_r") + #:cargo-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-atoi" ,rust-atoi-2) + ("rust-slog" ,rust-slog-2) + ("rust-slog-async" ,rust-slog-async-2-8) + ("rust-slog-term" ,rust-slog-term-2) + ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5) + ("rust-nix" ,rust-nix-0.28) + ("rust-num-derive" ,rust-num-derive-0.3) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-sd-notify" ,rust-sd-notify-0.4) + ("rust-static-assertions" ,rust-static-assertions-1) + ("rust-dns-lookup" ,rust-dns-lookup-2)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.5) + ("rust-temp-env" ,rust-temp-env-0.3)))) + (home-page "https://github.com/twosigma/nsncd") + (synopsis "The name service non-caching daemon") + (description "The name service non-caching daemon") + (license (list license:asl2.0)))) -- 2.41.0