From: Marius Bakke <mbakke@fastmail.com>
To: Mike Gerwitz <mtg@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/1] gnu: Add ccid.
Date: Tue, 21 Nov 2017 02:05:26 +0100 [thread overview]
Message-ID: <877euktp9l.fsf@fastmail.com> (raw)
In-Reply-To: <873759zj0i.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2674 bytes --]
Mike Gerwitz <mtg@gnu.org> writes:
> Hey, Marius:
>
> I'm resurrecting this thread. :)
Hello Mike, long time no see! :-)
> On Mon, Oct 31, 2016 at 10:09:14 +0000, Marius Bakke wrote:
>> Mike Gerwitz <mtg@gnu.org> writes:
>>> On Fri, Oct 28, 2016 at 12:27:29 +0100, Marius Bakke wrote:
>>>> Packages are not allowed to write to /var, so to run pcscd on Guix you
>>>> will have to symlink ~/.guix-profile/pcsc/drivers to
>>>> /var/lib/pcsc/drivers manually, until we have a system service for
>>>> pcscd. Can you try that?
>>>
>>> That does indeed work. Thanks.
>>
>> Thanks a lot for testing! :)
>>
>>> Part of this for me is being unfamiliar with how everything in Guix
>>> works, so I'm sure it'll make a lot more sense once I see what service
>>> you come up with and observe its conventions.
>>
>> I haven't started working on this yet, but the idea is to provide a list
>> of drivers in the service definition (with ccid as default), and then
>> symlink each of them to the driver directory before starting pcscd.
>
> I'm getting GuixSD set up on an X200 now, and this is something that I'm
> interested in getting resolved. For the time being, I'm using the
> symlink workaround that you suggested.
Cool, welcome to GuixSD land!
> If you're still interested in doing this---great! Otherwise, I'm
> tight on time and am already deep in a GuixSD crash-course, so I'd
> appreciate any sort of mentoring/direction to get this working properly
> and in a manner consistent with Guix/GuixSD's philosophy. If there are
> existing service examples that demonstrate the same core concept, I'd be
> happy to play around with that.
Unfortunately I lost(!) my key token (luckily nothing important on it),
but I'm happy to lend a hand (or take donations! :P).
> But I'd need to know what approach you'd like to take to solving
> this. Could you provide some more detail?
I'd start by copying an existing (simple) service as "boilerplate", and
then write a "system test" that simply (attempts to) start the daemon.
You'll find these under "gnu/tests" and "gnu/services".
Once you have that, you can run "make check-system TESTS=pcscd"
(typically in a `guix environment guix`) to try out the service using a
single command instead of reconfiguring a "real" system/VM.
Then gradually add the bits needed to successfully start the service.
Grepping around, "cups.scm" deals with some symlinks to "cups-filters"
which may be useful, and there are also plenty examples of creating
"/var/lib/foo" and other directories as required.
The #guix channel on Freenode should be able to help out with most
obstacles, in addition to this list for the tricky parts.
Good luck! :-)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-11-21 1:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-27 9:46 [PATCH 1/1] gnu: Add ccid Marius Bakke
2016-10-28 4:18 ` Mike Gerwitz
2016-10-28 11:27 ` Marius Bakke
2016-10-31 2:53 ` Mike Gerwitz
2016-10-31 10:09 ` Marius Bakke
2017-11-20 4:11 ` Mike Gerwitz
2017-11-21 1:05 ` Marius Bakke [this message]
2017-11-21 2:11 ` Mike Gerwitz
2016-10-28 12:46 ` Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877euktp9l.fsf@fastmail.com \
--to=mbakke@fastmail.com \
--cc=guix-devel@gnu.org \
--cc=mtg@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.