NetBSD Problem Report #54530
From gson@gson.org Sat Sep 7 17:16:49 2019
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id A78027A179
for <gnats-bugs@gnats.NetBSD.org>; Sat, 7 Sep 2019 17:16:49 +0000 (UTC)
Message-Id: <20190907171643.DD88798964E@guava.gson.org>
Date: Sat, 7 Sep 2019 20:16:43 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: devel/py-sysctl does not work with Python 3
X-Send-Pr-Version: 3.95
>Number: 54530
>Category: pkg
>Synopsis: devel/py-sysctl does not work with Python 3
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: cherry
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 07 17:20:00 +0000 2019
>Last-Modified: Mon Jul 19 07:15:01 +0000 2021
>Originator: Andreas Gustafsson
>Release: NetBSD-8.1, -9 branch, or -current
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:
The devel/py-sysctl module builds with Python 3, but importing
it fails. It works with Python 2.
$ pkg_info -a|grep sysctl
py37-sysctl-0.1nb1 Python interface to sysctl(3)
py27-sysctl-0.1nb1 Python interface to sysctl(3)
$ python2.7 -c 'import sysctl'
$ python3.7 -c 'import sysctl'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'sysctl'
$
>How-To-Repeat:
cd /usr/pkgsrc/devel/py-sysctl
make install
python3.7 -c 'import sysctl'
>Fix:
>Release-Note:
>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/54530: devel/py-sysctl does not work with Python 3
Date: Sun, 8 Sep 2019 19:53:31 +0000
I took a stab at it.
There's undefined behaviour somewhere causing a remaining failure.
http://coypu.sdf.org/py-sysctl2.diff
I give up for now.
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/54530 CVS commit: pkgsrc/devel/py-sysctl
Date: Mon, 9 Sep 2019 07:09:47 +0000
Module Name: pkgsrc
Committed By: maya
Date: Mon Sep 9 07:09:47 UTC 2019
Modified Files:
pkgsrc/devel/py-sysctl: Makefile PLIST distinfo
Added Files:
pkgsrc/devel/py-sysctl/patches: patch-setup.py patch-sysctlmodule.c
patch-test.py
Log Message:
py-sysctl: port to python 3.
One remaining test fails, but it seems it failed before.
PR pkg/54530
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-sysctl/Makefile
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/devel/py-sysctl/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-sysctl/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-sysctl/patches/patch-setup.py \
pkgsrc/devel/py-sysctl/patches/patch-sysctlmodule.c \
pkgsrc/devel/py-sysctl/patches/patch-test.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: pkg-manager->cherry
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Mon, 09 Sep 2019 07:19:18 +0000
Responsible-Changed-Why:
Hi cherry, care to take the changes for a version 0.2?
From: "Cherry G. Mathew" <cherry@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/54530 (devel/py-sysctl does not work with Python 3)
Date: Mon, 09 Sep 2019 10:22:10 +0200
On September 9, 2019 9:19:19 AM CEST, maya@NetBSD=2Eorg wrote:
>Synopsis: devel/py-sysctl does not work with Python 3
>
>Responsible-Changed-From-To: pkg-manager->cherry
>Responsible-Changed-By: maya@NetBSD=2Eorg
>Responsible-Changed-When: Mon, 09 Sep 2019 07:19:18 +0000
>Responsible-Changed-Why:
>Hi cherry, care to take the changes for a version 0=2E2?
Hi - yeah I've seen this - it's an API change issue=2E
I'll look at it later in the week - thanks!
Cherry
From: Andreas Gustafsson <gson@gson.org>
To: "Maya Rashish" <maya@netbsd.org>, gnats-bugs@netbsd.org
Cc: cherry@NetBSD.org
Subject: Re: PR/54530 CVS commit: pkgsrc/devel/py-sysctl
Date: Tue, 10 Sep 2019 14:33:24 +0300
Maya Rashish wrote:
> py-sysctl: port to python 3.
Thank you! I can confirm that the package now works for my purposes.
I will leave the PR open until Cherry has integrated the patches upstream.
--
Andreas Gustafsson, gson@gson.org
From: "Santhosh Raju" <fox@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/54530 CVS commit: pkgsrc/devel/py-sysctl
Date: Sun, 15 Sep 2019 15:17:06 +0000
Module Name: pkgsrc
Committed By: fox
Date: Sun Sep 15 15:17:06 UTC 2019
Modified Files:
pkgsrc/devel/py-sysctl: Makefile distinfo
pkgsrc/devel/py-sysctl/patches: patch-sysctlmodule.c
Log Message:
py-sysctl: Fixes broken tests.
- Fixes the broken test for creating and destroying integer nodes via py-sysctl.
- Bumps PKGREVISION due to the fix.
This addresses the issue mentioned by maya@ in PR pkg/54530
Thanks to christos@ for helping with the fix.
Reveiwed by: maya
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-sysctl/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-sysctl/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-sysctl/patches/patch-sysctlmodule.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Cherry G. Mathew <cherry@zyx.in>
To: "Santhosh Raju" <fox@netbsd.org>
Cc: gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, gson@gson.org (Andreas Gustafsson), gnats-bugs@netbsd.org
Subject: Re: PR/54530 CVS commit: pkgsrc/devel/py-sysctl
Date: Sun, 15 Sep 2019 19:46:44 +0000
"Santhosh Raju" <fox@netbsd.org> writes:
> The following reply was made to PR pkg/54530; it has been noted by GNATS.
>
> From: "Santhosh Raju" <fox@netbsd.org>
> To: gnats-bugs@gnats.NetBSD.org
> Cc:
> Subject: PR/54530 CVS commit: pkgsrc/devel/py-sysctl
> Date: Sun, 15 Sep 2019 15:17:06 +0000
>
> Module Name: pkgsrc
> Committed By: fox
> Date: Sun Sep 15 15:17:06 UTC 2019
>
> Modified Files:
> pkgsrc/devel/py-sysctl: Makefile distinfo
> pkgsrc/devel/py-sysctl/patches: patch-sysctlmodule.c
>
> Log Message:
> py-sysctl: Fixes broken tests.
>
> - Fixes the broken test for creating and destroying integer nodes via py-sysctl.
> - Bumps PKGREVISION due to the fix.
>
> This addresses the issue mentioned by maya@ in PR pkg/54530
>
> Thanks to christos@ for helping with the fix.
>
> Reveiwed by: maya
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-sysctl/Makefile
> cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-sysctl/distinfo
> cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-sysctl/patches/patch-sysctlmodule.c
>
Thanks for this - I'll update 'upstream' later this week.
Cherry.
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: cherry@netbsd.org
Subject: Re: PR/54530 CVS commit: pkgsrc/devel/py-sysctl
Date: Mon, 19 Jul 2021 04:33:10 +0000
On Sun, Sep 15, 2019 at 07:50:01PM +0000, Cherry G. Mathew wrote:
> > Log Message:
> > py-sysctl: Fixes broken tests.
> >
> > :
>
> Thanks for this - I'll update 'upstream' later this week.
...ping? :-)
(not that I should talk, I just found a place where I said "I'll do it
this weekend" in 2011)
--
David A. Holland
dholland@netbsd.org
From: "Mathew, Cherry G." <c@bow.st>
To: gnats-bugs@netbsd.org,David Holland <dholland-pbugs@netbsd.org>,cherry@netbsd.org,gnats-admin@netbsd.org,pkgsrc-bugs@netbsd.org,gson@gson.org
Cc:
Subject: Re: PR/54530 CVS commit: pkgsrc/devel/py-sysctl
Date: Mon, 19 Jul 2021 12:39:13 +0530
------E8TQFWIJYD8FVUYGMSBIXE563OVS71
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
thanks for the ping=2E fox has been pinging me about this for over a year=
=2E=2E=2E I will have a look at this this weekend=2E=20
many thanks,
~cherry=20
--=20
Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E
------E8TQFWIJYD8FVUYGMSBIXE563OVS71
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
thanks for the ping=2E fox has been pinging me about this for over a year=
=2E=2E=2E I will have a look at this this weekend=2E <br><br>many thanks,<b=
r><br>~cherry <br>-- <br>Sent from my Android device with K-9 Mail=2E Pleas=
e excuse my brevity=2E
------E8TQFWIJYD8FVUYGMSBIXE563OVS71--
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.