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:  Sun Sep 15 19:50:01 +0000 2019
>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.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.