all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / Atom feed
* bug#48213: offlineimap build fails
@ 2021-05-04  1:11 Bone Baboon via Bug reports for GNU Guix
  2021-05-04  9:08 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2021-05-04 20:39 ` Mark H Weaver
  0 siblings, 2 replies; 5+ messages in thread
From: Bone Baboon via Bug reports for GNU Guix @ 2021-05-04  1:11 UTC (permalink / raw)
  To: 48213

On a x86_64 computer when I run `guix build --no-substitutes
offlineimap` the build fails because the "test_ipv6_available" test
fails.

In the system configuration ipv6 is disabled:

```
(kernel-arguments
 (append
  (list "nomodeset" "ipv6.disable=1")
  %default-kernel-arguments))
```

Taking the failing test's name "test_ipv6_available" literally I would
like to ask if having this test required to build this offlineimap
dependency is necessary?  Could this test be allowed to fail or be
skipped without failing the build?  This would accommodate Guix users
who have disabled ipv6.

`guix describe` outputs:

```
Generation 18   May 03 2021 13:15:55    (current)
  guix 065d2cd
    repository URL: https://git.savannah.gnu.org/git/guix.git
    commit: 065d2cd6ced96ddb38c15a46f798488f61660a33
```

Build error:

```
starting phase `check'
============================= test session starts ==============================
platform linux2 -- Python 2.7.17, pytest-4.6.11, py-1.8.1, pluggy-0.13.1
rootdir: /tmp/guix-build-python2-rfc6555-0.0.0-1.1a181b4.drv-0/source
plugins: hypothesis-4.57.1
collected 5 items

tests/test_ipv6.py F....                                                 [100%]

=================================== FAILURES ===================================
_____________________________ test_ipv6_available ______________________________

    def test_ipv6_available():
>       assert rfc6555._detect_ipv6()
E       assert False
E        +  where False = <function _detect_ipv6 at 0xf6c2887c>()
E        +    where <function _detect_ipv6 at 0xf6c2887c> = rfc6555._detect_ipv6

tests/test_ipv6.py:11: AssertionError
====================== 1 failed, 4 passed in 0.19 seconds ======================
command "pytest" "tests/test_ipv6.py" failed with status 1
builder for `/gnu/store/4clr8jgvlbhp9qvyx2izdl5dmb8b0xsd-python2-rfc6555-0.0.0-1.1a181b4.drv' failed with exit code 1
build of /gnu/store/4clr8jgvlbhp9qvyx2izdl5dmb8b0xsd-python2-rfc6555-0.0.0-1.1a181b4.drv failed
View build log at '/var/log/guix/drvs/4c/lr8jgvlbhp9qvyx2izdl5dmb8b0xsd-python2-rfc6555-0.0.0-1.1a181b4.drv.bz2'.
cannot build derivation `/gnu/store/pxqzkh8b6266qdrrxhfc74j6bjnb1567-offlineimap-7.3.3.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/pxqzkh8b6266qdrrxhfc74j6bjnb1567-offlineimap-7.3.3.drv' failed
```




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#48213: offlineimap build fails
  2021-05-04  1:11 bug#48213: offlineimap build fails Bone Baboon via Bug reports for GNU Guix
@ 2021-05-04  9:08 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2021-05-05  1:35   ` Bone Baboon via Bug reports for GNU Guix
  2021-05-06  3:32   ` Bone Baboon via Bug reports for GNU Guix
  2021-05-04 20:39 ` Mark H Weaver
  1 sibling, 2 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-05-04  9:08 UTC (permalink / raw)
  To: Bone Baboon; +Cc: 48213

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

Babs,

Bone Baboon via Bug reports for GNU Guix 写道:
> Taking the failing test's name "test_ipv6_available" literally I 
> would
> like to ask if having this test required to build this 
> offlineimap
> dependency

I think not, but you should report this upstream first.  They look 
asleep but I didn't hold a mirror under their nose.  If they don't 
respond we might hack around it in Guix.

I suggest that you enable IPv6 support in the meantime.

> This would accommodate Guix users who have disabled ipv6.

Guix doesn't virtualise the kernel and expects it to provide all 
that is needful.  Linux offers knobs for *everything*; that 
doesn't mean everything is supported.  Disabling kernel support 
for basic things (namespaces, UNIX domain sockets, IPv6) *will* 
break certain software.

We shouldn't feel obligated to accommodate strange configurations 
out of the box, but we try to do so when the maintenance cost is 
very low.  In this case, you'd need to ensure the test still runs 
on the vast majority of systems with IPv6.

Kind regards,

T G-R

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#48213: offlineimap build fails
  2021-05-04  1:11 bug#48213: offlineimap build fails Bone Baboon via Bug reports for GNU Guix
  2021-05-04  9:08 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2021-05-04 20:39 ` Mark H Weaver
  1 sibling, 0 replies; 5+ messages in thread
From: Mark H Weaver @ 2021-05-04 20:39 UTC (permalink / raw)
  To: Bone Baboon, 48213

Hi,

Bone Baboon via Bug reports for GNU Guix <bug-guix@gnu.org> writes:
> On a x86_64 computer when I run `guix build --no-substitutes
> offlineimap` the build fails because the "test_ipv6_available" test
> fails.
>
> In the system configuration ipv6 is disabled:
[...]
> Taking the failing test's name "test_ipv6_available" literally I would
> like to ask if having this test required to build this offlineimap
> dependency is necessary?  Could this test be allowed to fail or be
> skipped without failing the build?  This would accommodate Guix users
> who have disabled ipv6.

I will defer to the Guix maintainers on this question, but I just wanted
to point out that since 'offlineimap' is the _only_ package in Guix that
depends on the 'python2-rfc6555' package, it's quite painless to work
around this particular issue using Guix's "--without-tests" package
transformation option.

From the command line, you can simply do this:

  guix build offlineimap --without-tests=python2-rfc6555

Within an OS configuration, or within a profile "manifest" file (if you
use "guix package --manifest", which is highly recommended), you can use
the following Scheme expression in place of 'offlineimap':

--8<---------------cut here---------------start------------->8---
  (let ((transform (options->transformation
                    '((without-tests . "python2-rfc6555")))))
    (transform offlineimap))
--8<---------------cut here---------------end--------------->8---

Note that you'll also need to put "(use-modules (guix transformations))"
at the top of the file, to import the 'options->transformation'
procedure.

Please let us know if this works for you.

     Thanks,
       Mark

-- 
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#48213: offlineimap build fails
  2021-05-04  9:08 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2021-05-05  1:35   ` Bone Baboon via Bug reports for GNU Guix
  2021-05-06  3:32   ` Bone Baboon via Bug reports for GNU Guix
  1 sibling, 0 replies; 5+ messages in thread
From: Bone Baboon via Bug reports for GNU Guix @ 2021-05-05  1:35 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 48213

>> This would accommodate Guix users who have disabled ipv6.
>
> Guix doesn't virtualise the kernel and expects it to provide all that
> is needful.  Linux offers knobs for *everything*; that doesn't mean
> everything is supported.  Disabling kernel support for basic things
> (namespaces, UNIX domain sockets, IPv6) *will* break certain software.
>
> We shouldn't feel obligated to accommodate strange configurations out
> of the box, but we try to do so when the maintenance cost is very low.
> In this case, you'd need to ensure the test still runs on the vast
> majority of systems with IPv6.

Sorry I should have explained the rationale for this in my initial
message.

For privacy conscious individuals one tool for improving online privacy
is a VPN service. Many VPN service providers recommend disabling
ipv6. This is because of ipv6 leaks. 

https://ipv6leak.com/ is a ipv6 leak testing site.  It is the first
result when searching for "ipv6 leak" with searx.ir.  Using this website
I can see that the privacy provided by my VPN service provider is
compromised by an ipv6 leak when I enable ipv6.  This is why I have ipv6
disabled.

I am open to suggestions on free software alternatives to using a VPN
service that do not require ipv6 to be disabled. The current VPN service
I am using allows the use of a openvpn client so I do not need to
install any proprietary software on my computer to use their service.  I
am aware of Tor or I2P but have not yet looked into how I could to send
my network traffic over those networks.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#48213: offlineimap build fails
  2021-05-04  9:08 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2021-05-05  1:35   ` Bone Baboon via Bug reports for GNU Guix
@ 2021-05-06  3:32   ` Bone Baboon via Bug reports for GNU Guix
  1 sibling, 0 replies; 5+ messages in thread
From: Bone Baboon via Bug reports for GNU Guix @ 2021-05-06  3:32 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 48213

Tobias Geerinckx-Rice writes:
> you should report this upstream first

I have reported this to Seth Michael Larson the maintainer of rfc6555.
https://pypi.org/project/rfc6555/

I also asked Seth Michael Larson if the rfc6555 test suite could be
modified so that test_ipv6_available does not fail if IPv6 is disabled.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-06  3:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04  1:11 bug#48213: offlineimap build fails Bone Baboon via Bug reports for GNU Guix
2021-05-04  9:08 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-05-05  1:35   ` Bone Baboon via Bug reports for GNU Guix
2021-05-06  3:32   ` Bone Baboon via Bug reports for GNU Guix
2021-05-04 20:39 ` Mark H Weaver

all messages for Guix-related lists mirrored at yhetil.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix

Example config snippet for mirrors.


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git