From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eIjIBMrlLGGdFQAAgWs5BA (envelope-from ) for ; Mon, 30 Aug 2021 16:06:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aPkgAMrlLGFSLgAAbx9fmQ (envelope-from ) for ; Mon, 30 Aug 2021 14:06:02 +0000 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 C00411C8F0 for ; Mon, 30 Aug 2021 16:06:01 +0200 (CEST) Received: from localhost ([::1]:57594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKhvE-0001nY-Pe for larch@yhetil.org; Mon, 30 Aug 2021 10:06:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKhtK-0008KC-Hz for guix-patches@gnu.org; Mon, 30 Aug 2021 10:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48391) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKhtK-0000gs-7n for guix-patches@gnu.org; Mon, 30 Aug 2021 10:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKhtK-0005gT-4I for guix-patches@gnu.org; Mon, 30 Aug 2021 10:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42106] [PATCH 1/4] gnu: Add r-r2d3. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Aug 2021 14:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42106 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Peter Lo Cc: 42106@debbugs.gnu.org Received: via spool by 42106-submit@debbugs.gnu.org id=B42106.163033221521810 (code B ref 42106); Mon, 30 Aug 2021 14:04:02 +0000 Received: (at 42106) by debbugs.gnu.org; 30 Aug 2021 14:03:35 +0000 Received: from localhost ([127.0.0.1]:59937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKhst-0005fh-5p for submit@debbugs.gnu.org; Mon, 30 Aug 2021 10:03:35 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKhso-0005fS-Mh for 42106@debbugs.gnu.org; Mon, 30 Aug 2021 10:03:34 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1630332207; cv=none; d=zohomail.com; s=zohoarc; b=a48+VWUhmgr93EBXEWWIFQs9MoInlMnwkw74sdgIKvOIcCJ7pqkVvE1x3ksUaWdM7Lcu4eN5bqJflyOgOMyi1w+BNWCBkXSDv17lRhttIqHk2ySgcq6gVKOeRGz+UKDYu6fIp6gNvO83UGIeJS6PMCVVGpQctv1T4leaqF6XrTk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630332207; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=V2t6PFog8g9rAX9Y89C7vldk9iaDl+xIlJBU8KuxKUM=; b=e9Zxj759o/n8qWYTdUx36dT51qOTOtfZnGdcsn1PTTcdvyLw6MNrmr2QMWcB6h8olazdCTk8+0EKUUNN/RJOgKtda9i+2ri/SnA7W/l0wJtVfbMLlLiLW0rGiDMgDh7piuoVlyoyLUh71BXPlSTC/x4RJXqTFVZWj0cHiVK6oU4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1630332207; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=V2t6PFog8g9rAX9Y89C7vldk9iaDl+xIlJBU8KuxKUM=; b=G3w3LntL5jLNj10/qshXSold9K2RzWywokgsj5HiFrfeiOWqmrKJ1IS0SrTk7tZd ++COSjJLCzVfUgD4rELjfB84e2WW685ORyaAfbrdAnAAqwx01X4z1IS9KGqBD/ZiNzi rUrQv1yMWLsME5iAKf1xX/ZBttyb6j4ZfCwA4WHM= Received: from localhost (p54ad488d.dip0.t-ipconnect.de [84.173.72.141]) by mx.zohomail.com with SMTPS id 163033220600121.207807412487455; Mon, 30 Aug 2021 07:03:26 -0700 (PDT) References: <20200628085745.15796-1-peterloleungyau@gmail.com> <875z8k3c3e.fsf@elephly.net> User-agent: mu4e 1.4.15; emacs 27.2 From: Ricardo Wurmus In-reply-to: <875z8k3c3e.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Mon, 30 Aug 2021 16:03:22 +0200 Message-ID: <875yvn9gid.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630332361; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=V2t6PFog8g9rAX9Y89C7vldk9iaDl+xIlJBU8KuxKUM=; b=vAChAMOt7hpbRXuaYkud/usw+FzAQm7o3d/sOF6YHbkQcfdDKF3Sxyeuejj6Graxd20Aon W4cnEbymfzEwt5qZEmYEESepOR2SbP9WolV9tw3/N4kvZJBHHieJq7mIp2FAdjajlzI+vH 27fMNmZJX0qcymOmVjelsR7RUV9ILGp5SGgPEkr9oNI8x93Q4B1pgdB+el+K/frtiqvPMB BkJip6gNATr+9MKCmSVUudQbYlqjXWu+Cszr7mbemUuB9B+wzwA2E/mHR6APz3LpVbVsxI V6/tMvRmfP1UAKDOxxpcB3XVGciyygXmYG3RsnEAqXONvLu5ydgilREhlfidHw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1630332361; a=rsa-sha256; cv=fail; b=Uh6fZlLPwRpy5HViJaYjftzy35tZ6vVJgxLckB8ZRwQ2ouih20H2hU6PsnaH2ECKEhN/xM QjylmFIQSZwB551ccbgHFVX0U+vz5VSxk6JX4yN1sNiz7AljbCz25f5PvbUHP1ZGhJK2I7 h5YjlfPKWE7qhE6waZfxDY6hQU4I6zjh51Og+KTbD2BARLL9NgindiNC3GmoA/QCAOoCM8 /HkXrFCjPC6712uZ60blzsuIAL8qUsK9ifTXP6eoZsZkTg/H07uU1fayCzdn5xaNPk6+2V RkuoEM+apub4tAtds0IxN8axYDUYPdaKAPS1z/xmTqkWKZ9AtbYSs4zUreXfNw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=G3w3LntL; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=G3w3LntL; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C00411C8F0 X-Spam-Score: 0.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: k41brIkPyY0L Ricardo Wurmus writes: > Hi Peter, > >> * gnu/packages/cran.scm (r-r2d3): New variable. > > Unfortunately, I cannot merge this as is. This package contains=20 > a bunch > of minified JavaScript files without the corresponding source=20 > code: > > --8<---------------cut=20 > here---------------start------------->8--- > r2d3/inst/www/d3/4.13.0/d3.min.js > r2d3/inst/www/d3/3.5.17/d3.min.js > r2d3/inst/www/d3/5.0.0/d3.min.js > r2d3/inst/htmlwidgets/lib/webcomponents/webcomponents.js > --8<---------------cut=20 > here---------------end--------------->8--- > > While we can easily replace the different d3 versions with=20 > non-minified > source code that we then minify in a build phase, we cannot do=20 > this for > webcomponents.js, which is compiled from TypeScript. The source=20 > code is > here: > > https://github.com/webcomponents/polyfills/tree/master/packages/webco= mponentsjs webcomponents.js looks very similar to this blob: https://github.com/webcomponents/webcomponentsjs/blob/v2.0.1/webcomponents-= bundle.js > Arun is currently working on packaging swc, a transpiler that=20 > supports > TypeScript, so with some luck we might then be able to transpile=20 > these > TypeScript source files to webcomponents.js. It=E2=80=99s a bit more complicated than that. The source files import=20 code from files in node_modules, which is supposed to be=20 downloaded with npm. If we can identify these actual source files=20 we could include them explicitly. --=20 Ricardo