Summary: | dev-python/twisted-22.4.0: RealDeviceWithProtocolInformationTests and RealDeviceWithoutProtocolInformationTests fail | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rolf Eike Beer <eike> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | jstein, mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://twistedmatrix.com/trac/ticket/10339 https://github.com/twisted/twisted/pull/1728 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
test logs |
Description
Rolf Eike Beer
2022-04-30 06:43:23 UTC
Created attachment 775596 [details]
test logs
Could you try the following test script, as a regular user and then as root? ``` import fcntl import os import struct fd = os.open("/dev/net/tun", os.O_RDWR | os.O_NONBLOCK) fcntl.ioctl(fd, 0x400454CA, struct.pack("16sH", b"tap-twtest", 0x0002)) ``` (In reply to Michał Górny from comment #2) > Could you try the following test script, as a regular user and then as root? > > ``` > import fcntl > import os > import struct > > fd = os.open("/dev/net/tun", os.O_RDWR | os.O_NONBLOCK) > fcntl.ioctl(fd, 0x400454CA, struct.pack("16sH", b"tap-twtest", 0x0002)) > ``` Nevermind, I tried it myself on muta... and it seems that TUNSETIFF is 0x800454ca on hppa rather than 0x400454ca as on amd64 -- so twisted is hardcoding the wrong constant. Could you test with the following patch applied: https://github.com/twisted/twisted/pull/1728.patch ? I see no changes. |