unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Pierre Neidhardt <ambrevar@gmail.com>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Missing pinentry-emacs for gpg-agent?
Date: Thu, 29 Mar 2018 14:14:44 +0530	[thread overview]
Message-ID: <87tvsz46f7.fsf@gmail.com> (raw)
In-Reply-To: <87y3ibbb0x.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2819 bytes --]


Oleg Pykhalov <go.wigust@gmail.com> writes:

>> 	> cp ~/.config/guix/latest/gnu/packages/gnupg.scm ~/.guix-packages/
>> 	> chmod +w ~/.guix-packages/gnupg.scm
>> [...]
>> Then add the above the the file
>
> Sorry, I don't understand what do you mean.

I meant adding the ~(define-public ... (package...))~ I quoted to the
new gnupg.scm file.

> Do you mean ‘#:use-module (gnu packages gnupg)’?

No. For now I just wanted to do some out-of-tree hacking, as a first
step towards contributing to Guix.

What I had in mind:

1. Copy gnupg.scm.
2. Modify it to add the new recipe plus the new use-module requirements.
3. Build.

I understand it's not how Guix is meant to be patched, I'll go on with a
proper checkout next.

That said, the new ~define-module~ is as follows:


	(define-module (gnu packages gnupg)
 	  #:use-module ((guix licenses) #:prefix license:)
	  #:use-module (gnu packages)
	  #:use-module (gnu packages emacs) ; NEW
    ...

>> Now if I do
>>
>> 	> guix package -s pinentry-emacs
>> 	guix package: warning: failed to load '(gnupg)':
>> 	no code for module (gnupg)
>> 	name: pinentry-emacs
>> 	version: 1.1.0
>> 	outputs: out
>> 	systems: x86_64-linux i686-linux armhf-linux aarch64-linux mips64el-linux
>> 	dependencies: emacs-25.3 libassuan-2.5.1 libsecret-0.18.5 ncurses-6.0-20170930
>> 	+ pkg-config-0.29.2
>> 	location: /home/ambrevar/.guix-packages/gnupg.scm:991:2
>> 	homepage: https://gnupg.org/aegypten2/
>> 	license: GPL 2+
>> 	synopsis: GnuPG's interface to passphrase input
>> 	description: Pinentry provides a console and an Emacs interface that allows users to enter a
>> 	+ passphrase when required by `gpg' or other software.
>> 	relevance: 4
>>
>> Notive the error at th beginning:
>>
>> 	guix package: warning: failed to load '(gnupg)':
>> 	no code for module (gnupg)
>>
>> I don't understand this.
>
> You want to name your Guile module properly [2].  In case of
> ‘GUIX_PACKAGE_PATH=$HOME/.guix-packages’:
>
>     (define-module (gnupg) …)

So ~(define-module (gnu packages gnupg)...)~ means the package must lie
in a "gnu/packages/gnupg.scm" file.  Did not know that, I assumed the
namespace was detached from

> [2]  https://www.gnu.org/software/guile/manual/html_node/Using-the-Guile-Module-System.html

The manual you linked shows examples of paths linked to the namespaces.
But I can't seem to find where it states that it is a requirement.

I always thought this requirement on path-linked namespaces (that we
find in many languages) to be redundant.

> Local checkout allows you prepare patches and use ‘guix’ without ‘guix
> pull’.  If you plan to contribute more it's definitely worth to have it.

Will do just now.
Thanks a lot for your help.

--
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

      reply	other threads:[~2018-03-29  8:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27  6:17 Missing pinentry-emacs for gpg-agent? Pierre Neidhardt
2018-03-27  9:53 ` Ludovic Courtès
2018-03-27 15:45   ` Alex Kost
2018-03-27 15:50   ` Oleg Pykhalov
2018-03-27 18:28     ` Pierre Neidhardt
2018-03-27 20:22     ` Vladimir Sedach
2018-03-28  4:49       ` Pierre Neidhardt
2018-03-28  7:04         ` Oleg Pykhalov
2018-03-28  7:17           ` Pierre Neidhardt
2018-03-28  8:29             ` Pierre Neidhardt
2018-03-29  7:30               ` Oleg Pykhalov
2018-03-29  7:23             ` Oleg Pykhalov
2018-03-29  8:44               ` Pierre Neidhardt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tvsz46f7.fsf@gmail.com \
    --to=ambrevar@gmail.com \
    --cc=go.wigust@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).