From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iGkJChsmAGbRaQEAqHPOHw:P1 (envelope-from ) for ; Sun, 24 Mar 2024 14:09:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iGkJChsmAGbRaQEAqHPOHw (envelope-from ) for ; Sun, 24 Mar 2024 14:09:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=landt.email header.s=MBO0001 header.b="Q/CWvXJ2"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=landt.email ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711285786; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LnCTL5ruPuMx55Bsy0v/TKZTv9ipxJ0NJ4abcq+cmYE=; b=tFjwgSg2aKDPLVgDVXm5ySx/SOv2iv+T7U090OMn3XJbJAXz6hYLWoFXZq0xXNnJnT4Jz0 nWUZhWXV7m4nEExw9K7a5QEJcPv74sl8grAS33cdxK/kD/YoXCR3yGs/Z5H40EZWi8ng3q TL0fJYZQNuWI4CEqsIM5iC/tfMRje9N1jb8TyCZY0+m9PRiyD3ZXovS/3qhN3yaYll9+Kf 6q8qkvtZwlxoOl3EpM60+0VZdNlY8lDYHRR1dnViY28hnviBBkyjaW+Zl0LdWcFpdiDo1i UZud5M6FgvWYS5zvQAQ92Ou2ItpRXO02S4FhrmvkHKNRdFSJiFLa5EcYdo94oA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=landt.email header.s=MBO0001 header.b="Q/CWvXJ2"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=landt.email ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711285786; a=rsa-sha256; cv=none; b=M2pTSsPBFeLjn4Bbw0bmA+inwv6S9ej5Nc55YeO7BDEFAv+UYbC5AnR4ddBKtNkTdGdg3o 8Y02yyYJZwSJjT1qfSvlYLiiHA+7o6cO+sCm9v2QW5blvZ7qy16h4utDC6EF/h4Nw2qhWX CN+SgGxmpDejZtK11IUVtZlNx35w9VGeU3J1GnP5ziGh5L1gI5Y2FCuJJBRx8OeHxTOmwu l7A8VHrN3Au+gNrbw9fUbtYMP4vQZr8pWOrQj6ibo4MksJzX2DjeBi8HLTJz5Td9iJJykb ivhU2p3TUpbs1Lj6ysOGSA8nj6/JLA34siLELkJESRXtmQOwUX4TD2aBAiKVNA== 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 4EACFEEF1 for ; Sun, 24 Mar 2024 14:09:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1roNbL-0004ZZ-Vm; Sun, 24 Mar 2024 09:09:28 -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 1roNbK-0004ZQ-E5 for help-guix@gnu.org; Sun, 24 Mar 2024 09:09:26 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1roNbF-0000xZ-45 for help-guix@gnu.org; Sun, 24 Mar 2024 09:09:26 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4V2bxQ45Y9z9sWy; Sun, 24 Mar 2024 14:09:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landt.email; s=MBO0001; t=1711285754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LnCTL5ruPuMx55Bsy0v/TKZTv9ipxJ0NJ4abcq+cmYE=; b=Q/CWvXJ2szLQXICDNkKvRpLNMo4sFC847Qu40cmFm8rLE8P/ZSi6DgCq9VMqklfAi+07Js LNgiZObufKxC2IMR1/i5d8H0yuIxN/iBROQOoHg7ZQWdb8GKSlaH3R5gQULCjYMwS806BU ZZmoaW2rXOPgFsSgpslLiKBrQ01R1/cBzC6mmwhzi+d+NeoBGA55reMxlPuiOqADtxaBnd U2MFKC9X7+PoYu5hwhjGXlo4tmGHkEe+n9iOQQ2Q7xbLxModC6t1wOZDvSvqk2Zc3csBwg SBbnroXx3+BjcfiZUbpXg0MRa3FsGYpoMU2SU3g353teI/g4DZDaHdrxOOt+Mg== Date: Sun, 24 Mar 2024 14:09:13 +0100 (CET) From: Nils Landt To: Pablo Zamora , "help-guix@gnu.org" Message-ID: <2140861557.89252.1711285753894@office.mailbox.org> In-Reply-To: References: Subject: Re: Bitwarden build with "npm-build-system" : Fails to install dependencies : "npm ERR! code ENOTCACHED" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal Received-SPF: pass client-ip=80.241.56.151; envelope-from=nils@landt.email; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 4EACFEEF1 X-Spam-Score: -7.63 X-Migadu-Spam-Score: -7.63 X-Migadu-Scanner: mx10.migadu.com X-TUID: JnXbDCmZJydl > Pablo Zamora hat am 23.03.2024 12:38 CET geschrieben: > > It seems that npm tries to download package dependencies but has no network during the build and fails. I printed dummy network connnexion (or no connexion) messages before and after the 'unpack' phases as well as before the 'configure' phase to debug and the result is that no network is available at those steps. I tried it with 'curl' and it says no network at all during the build. So far, I understood that this is normal but I would like to download the dependencies - HOW ? > > I checked the 'gnu/packages/node-xyz.scm' to see whether other packages have a workaround and could not find a general pattern. It seems that every node package add 0,1 or 2 specific dependencies in the 'inputs' field but nothing huge compared to the bitwarden dependencies list. Here is the 'package.json' file pretty printed : https://paste.debian.net/1311744 In Guix you need to define all dependencies in terms of Guix packages. This is helped by the guix import subcommand. Sadly, there is no importer for npm. Your biggest chance of success might be to either write an importer, or find a way to convert the package.json to something that works with guix import json. On the other hand, your biggest chance of happiness might be to not package npm packages in Guix.