From: Tomas Volf <~@wolfsden.cz>
To: 45mg <45mg.writes@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: handling package tests requiring root?
Date: Thu, 02 Jan 2025 00:18:16 +0100 [thread overview]
Message-ID: <875xmy2kef.fsf@wolfsden.cz> (raw)
In-Reply-To: <878qru6dvb.fsf@gmail.com> (45mg.writes@gmail.com's message of "Wed, 01 Jan 2025 05:13:28 -0500")
[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]
45mg <45mg.writes@gmail.com> writes:
> The only approach I'm aware of is to just ignore such tests. Examples of
> this I've seen:
>
> mdadm:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/linux.scm#n5943
> borg:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/backup.scm#n739
> rdiff-backup:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/backup.scm#n540
> maradns:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/dns.scm#n1197
> hostscope:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/monitoring.scm#n698
> python-path:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/python-xyz.scm#n17458
> python-executing:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/python-xyz.scm#n11112
>
> I haven't been able to find a single instance of tests requiring root
> that we /don't/ skip. (But then, I don't really know how to look,
> either...)
>
> Surely there must be a way to do this?
Sure there is. The one I found is horrific though. In my channel I
packaged acme-client (Let's Encrypt client ported from OpenBSD), and
root is required for the tests. I resolved to using bubblewrap to
pretend I am a root. You can see all the eye-cancer causing details
here[0].
Tomas
0: https://git.wolfsden.cz/wolfsden/tree/wolfsden/packages/tls.scm#n76
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]
next prev parent reply other threads:[~2025-01-01 23:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-01 10:13 handling package tests requiring root? 45mg
2025-01-01 23:18 ` Tomas Volf [this message]
2025-01-04 5:14 ` 45mg
2025-01-04 17:18 ` Leo Famulari
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=875xmy2kef.fsf@wolfsden.cz \
--to=~@wolfsden.cz \
--cc=45mg.writes@gmail.com \
--cc=guix-devel@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.