From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +AZSHU/Wc2It0QAAbAwnHQ (envelope-from ) for ; Thu, 05 May 2022 15:51:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KG5+HU/Wc2ICtgAAauVa8A (envelope-from ) for ; Thu, 05 May 2022 15:51:11 +0200 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 B7A25AB16 for ; Thu, 5 May 2022 15:51:10 +0200 (CEST) Received: from localhost ([::1]:60824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmbsr-0007Dn-Sh for larch@yhetil.org; Thu, 05 May 2022 09:51:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmbsf-0007DX-4o for help-guix@gnu.org; Thu, 05 May 2022 09:50:57 -0400 Received: from mout02.posteo.de ([185.67.36.66]:39273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmbsc-0007nc-9L for help-guix@gnu.org; Thu, 05 May 2022 09:50:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F0E63240107 for ; Thu, 5 May 2022 15:50:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1651758651; bh=hagazjPwca0/HAYW2bXZp1ySAsRaaL3anr6EYYUI7YY=; h=From:To:Subject:Date:From; b=gUSalndKs0v6wHFs7nmYlPJPNlndbDowjQK26BAG+Kx9eX8qpzcQK6swW3MQyoVAH qSaUde5Omt4xX/rtP0zuTjeqyv3Ydkshsk6ZTlAw3FsxXzNKnYx28r5Hc4jRTv2wdh VSGGB6FXusmi1dLm8+YQzvoyfai2PNzjSmcGrmIpcor9wJRfuApve6eT/kZTUyeNAe mnO1mLbkjNKAcOTbZhCVQnPfXIf/1SGDQokL9kvWd9p7cFLy7BEC68C0ioU/GDlG2o RAGs85Hb1Box+jmZjPri6M5weDJAeiBgXIXnFMG0IKojQlvv7AZySnRfit5x6aAy9J lxCGqzdVS/f/w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KvFTP5QJdz6tm9 for ; Thu, 5 May 2022 15:50:49 +0200 (CEST) From: Kyle Andrews To: help-guix@gnu.org Subject: Seeking suggestions for fixing the R gpg package Date: Thu, 05 May 2022 13:37:54 +0000 Message-ID: <874k24cclm.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=kyle@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651758671; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZDxRcCZox6oyuTs5ya9gm5F94TKMJxtG+Wb76rooMLg=; b=WBIL8QPj4BU+4qUplBmCuaMoFSyaqc8E79gKswHyCRyrmFoDpRWXczffxFZMolqk2DEU4f 7QQK80kG857iUfXmx4QwsMq98ctb1bk3fNB3Rd4ST/6O9egLhCxI8sJ5HMj/UftAoc7ReG tUfhX8vkK6CHvN7XW5iXeVs96r2kLdW+P2OvSUf0C4YwFGkaMsi2oMWt6Z56lrDVdThkju b91ofwrWxOskRbK8TtBOrHtgFB0gARYljiErxLzipht8gEa8w5SgjJjdCkB4fd0RfbQ6nw HsLeZLqxjqyU0namY5fa0d5XywHklgieUvrDSYOYuVrYY0zjRNrZlZbNkKcFAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651758671; a=rsa-sha256; cv=none; b=Yz2KJfe8O96TXszMkloe7S7HQIgCFiqJgxOtNA9et1BHF0U6HN2u2s7SEGgZjoeYGM9PWl GbcKswtyGguUXNnY9WxxJDdKIwEq1vh8RK12u/zU0vpGSYZFYPwwMpKMaNDmIhHDp35FUI 8hoSOiJraN4LEP3PC58hiVYWKjiKACiLTMX9Xpj9d0Q7GxD3tEvcOeLehu87v2gszSh0/w D1qotBvHZ8KjTmQqn3sRY1dqdtYSz2tZRboU/ovs8Sswlq8BaBxKnaBEUEt9AuNzz7gdDN dYiqQUjKPK4jydzkr4hN8exXSppiGsqfZ0CIpe+BgMUaCM1g73OBvLZykg96hA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gUSalndK; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -7.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gUSalndK; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: B7A25AB16 X-Spam-Score: -7.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2boSFeLt0Oe/ Hi, I want to use the R package gpg which provides bindings to GPGME from within Guix. Most of the time packaging R things is really easy thanks to the handy `guix import cran' command. Unfortunately, something is breaking with GPGME which is making this not work as I expected. Unfortunately, I don't really have any experience with dealing with this problem. Can anyone suggest how they would go about debugging this?=20 I opened a bug report on the R gpg, but I don't really know if that's the appropriate place. There I included the Guix build error report. The key problem seems to be that > error: GPGME setting OpenPGP path/home error: Invalid crypto engine https://github.com/jeroen/gpg/issues/14 My non-working package code is below: 8<-------------------------------------------------------------------------= -------- (use-modules (guix packages) (guix download) (guix build-system r) (guix git-download) ((guix licenses) #:prefix license:) (gnu packages pkg-config) (gnu packages compression) (gnu packages gnupg) (gnu packages maths) (gnu packages cran) (gnu packages statistics) (gnu packages gcc)) (define-public r-gpg (package (name "r-gpg") (version "1.2.6") (source (origin (method url-fetch) (uri (cran-uri "gpg" version)) (sha256 (base32 "17rvi3qff2kanqr3g20dzhn48bfh5sv57g0wsamndzcif7rhjhby")))) (properties `((upstream-name . "gpg"))) (build-system r-build-system) (propagated-inputs (list r-askpass r-curl)) (native-inputs (list pkg-config r-knitr gpgme)) (home-page "https://github.com/jeroen/gpg") (synopsis "GNU Privacy Guard for R") (description "Bindings to GnuPG for working with OpenGPG (RFC4880) cryptographic me= thods. Includes utilities for public key encryption, creating and verifying digital signatures, and managing your local keyring. Some functionality depends on= the version of GnuPG that is installed on the system. On Windows this package = can be used together with 'GPG4Win' which provides a GUI for managing keys and entering passphrases.") (license license:expat))) ---------------------------------------------------------------------------= ------>8 The build of the R package seemed to go fine. It only fails when it tries to test that the package can be loaded into an R session. 8<-------------------------------------------------------------------------= -------- Using PKG_CFLAGS=3D-I/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15= .1/include -I/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/in= clude -I/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.42/inclu= de Using PKG_LIBS=3D-L/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15.1= /lib -lgpgme -L/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/= lib -lassuan -L/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.4= 2/lib -lgpg-error ** libs gcc -I"/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-minimal-4.1.3/lib/R/in= clude" -DNDEBUG -I/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15.1/= include -I/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/inclu= de -I/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.42/include = -I/usr/local/include -fpic -g -O2 -c encrypt.c -o encrypt.o gcc -I"/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-minimal-4.1.3/lib/R/in= clude" -DNDEBUG -I/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15.1/= include -I/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/inclu= de -I/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.42/include = -I/usr/local/include -fpic -g -O2 -c engine.c -o engine.o gcc -I"/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-minimal-4.1.3/lib/R/in= clude" -DNDEBUG -I/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15.1/= include -I/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/inclu= de -I/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.42/include = -I/usr/local/include -fpic -g -O2 -c keys.c -o keys.o gcc -I"/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-minimal-4.1.3/lib/R/in= clude" -DNDEBUG -I/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15.1/= include -I/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/inclu= de -I/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.42/include = -I/usr/local/include -fpic -g -O2 -c keysig.c -o keysig.o gcc -I"/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-minimal-4.1.3/lib/R/in= clude" -DNDEBUG -I/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15.1/= include -I/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/inclu= de -I/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.42/include = -I/usr/local/include -fpic -g -O2 -c options.c -o options.o gcc -I"/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-minimal-4.1.3/lib/R/in= clude" -DNDEBUG -I/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15.1/= include -I/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/inclu= de -I/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.42/include = -I/usr/local/include -fpic -g -O2 -c register.c -o register.o gcc -I"/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-minimal-4.1.3/lib/R/in= clude" -DNDEBUG -I/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme-1.15.1/= include -I/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan-2.5.5/inclu= de -I/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-error-1.42/include = -I/usr/local/include -fpic -g -O2 -c sign.c -o sign.o gcc -shared -L/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-minimal-4.1.3/l= ib/R/lib -L/usr/local/lib -o gpg.so encrypt.o engine.o keys.o keysig.o opti= ons.o register.o sign.o -L/gnu/store/33x095pip87pxcn23cz8k96jq6bka51s-gpgme= -1.15.1/lib -lgpgme -L/gnu/store/imh6q627pj1jpcxdzjpvdwmlwh8kl5kw-libassuan= -2.5.5/lib -lassuan -L/gnu/store/pilv2s68v4xamxwk1ahfy7q32j6wnf7l-libgpg-er= ror-1.42/lib -lgpg-error -L/gnu/store/fm6grlr7rvb176ls6kkamadim64w3jli-r-mi= nimal-4.1.3/lib/R/lib -lR ---------------------------------------------------------------------------= ------>8 After that comes the error: 8<-------------------------------------------------------------------------= -------- Error: package or namespace load failed for =E2=80=98gpg=E2=80=99: .onLoad failed in loadNamespace() for 'gpg', details: call: NULL error: GPGME setting OpenPGP path/home error: Invalid crypto engine Error: loading failed Execution halted ERROR: loading failed * removing =E2=80=98/gnu/store/zrsgwmxcqd7dxinsj477lm2rw9mnyhi1-r-gpg-1.2.6= /site-library/gpg=E2=80=99 error: in phase 'install': uncaught exception: %exception #<&invoke-error program: "R" arguments: ("CMD" "INSTALL" "--inst= all-tests" "--library=3D/gnu/store/zrsgwmxcqd7dxinsj477lm2rw9mnyhi1-r-gpg-1= .2.6/site-library/" "--built-timestamp=3D1970-01-01" ".") exit-status: 1 te= rm-signal: #f stop-signal: #f>=20 phase `install' failed after 2.2 seconds command "R" "CMD" "INSTALL" "--install-tests" "--library=3D/gnu/store/zrsgwmxcqd7dxinsj477lm2rw9mnyhi1-r-gpg-1.2.6/site-= library/" "--built-timestamp=3D1970-01-01" "." failed with status 1 ---------------------------------------------------------------------------= ------>8 I would to see this package in guix and mainly want to use it myself in leu of the menu interface in the command line app. Thanks in advance for any suggestions.