NetBSD Problem Report #54588

From triaxx@netbsd.org  Tue Oct  1 11:22:05 2019
Return-Path: <triaxx@netbsd.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 373367A18E
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  1 Oct 2019 11:22:05 +0000 (UTC)
Message-Id: <20191001112203.E40CC7A21F@mollari.NetBSD.org>
Date: Tue,  1 Oct 2019 11:22:03 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: security/py-certbot-0.38 fails due to missing distribution
X-Send-Pr-Version: 3.95

>Number:         54588
>Category:       pkg
>Synopsis:       security/py-certbot-0.38 fails due to missing distribution
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    triaxx
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 01 11:25:00 +0000 2019
>Closed-Date:    Tue Oct 01 13:31:25 +0000 2019
>Last-Modified:  Fri Oct 18 14:35:00 +0000 2019
>Originator:     Frédéric Fauberteau
>Release:        NetBSD 8.0
>Organization:
>Environment:
System: NetBSD dns.triaxx.org 8.0 NetBSD 8.0 (XEN3_DOMU) #0: Wed Jul 25 09:42:47 UTC 2018  root@defiler.triaxx.org:/usr/obj/sys/arch/amd64/compile/XEN3_DOMU amd64
Architecture: x86_64
Machine: amd64
>Description:
Certbot seems now to need py-distro as a dependency.

$ /usr/pkg/bin/certbot-3.7
Traceback (most recent call last):
  File "/usr/pkg/bin/certbot-3.7", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module>
    @_call_aside
  File "/usr/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/usr/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'distro>=1.0.1' distribution was not found and is required by certbot
>How-To-Repeat:
$ /usr/pkg/bin/certbot-3.7
>Fix:
I see 'import distro' in the code. I think we should add py-distro as dependency but it is in wip.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->triaxx
Responsible-Changed-By: triaxx@NetBSD.org
Responsible-Changed-When: Tue, 01 Oct 2019 11:31:18 +0000
Responsible-Changed-Why:
triaxx@ needs certbot working to renew his certificates.


From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: adam@NetBSD.org
Subject: Re: pkg/54588 (security/py-certbot-0.38 fails due to missing
 distribution)
Date: Tue, 01 Oct 2019 13:39:05 +0200

 $ grep MAINTAINER security/py-certbot/Makefile
 MAINTAINER=     fhajny@NetBSD.org

 But I do not see it at https://www.netbsd.org/people/developers.html

 Adam, I seen you frequently update this package. Would you take the 
 maintainership?

From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54588 (security/py-certbot-0.38 fails due to missing
 distribution)
Date: Tue, 01 Oct 2019 13:53:53 +0200

 >  But I do not see it at https://www.netbsd.org/people/developers.html
 s/it/this respectable developer/

 Sorry, I wrote too fast, but I do not want impolite.

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54588 (security/py-certbot-0.38 fails due to missing distribution)
Date: Tue, 01 Oct 2019 14:26:31 +0200

 Hello Frédéric, 

 Frédéric Fauberteau writes:
 >  >  But I do not see it at https://www.netbsd.org/people/developers.html
 >  s/it/this respectable developer/
 >  
 >  Sorry, I wrote too fast, but I do not want impolite.
 >  

 Maybe a bit OT regarding the PR, but only for the record: adding an
 entry to developerdb is optional and there are developers that prefer
 to not add themself there or don't do that step when not prodded by
 sponsors/www@.

From: =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= <triaxx@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54588 CVS commit: pkgsrc/security/py-certbot
Date: Tue, 1 Oct 2019 13:29:58 +0000

 Module Name:	pkgsrc
 Committed By:	triaxx
 Date:		Tue Oct  1 13:29:58 UTC 2019

 Modified Files:
 	pkgsrc/security/py-certbot: Makefile

 Log Message:
 py-certbot: fix PR pkg/54588

 pkgsrc changes:
 ---------------
 * Add devel/py-distro as a runtime dependency. Certbot claims >=1.0.1 but
   non-linux distribution are supported only from 1.2.0.


 To generate a diff of this commit:
 cvs rdiff -u -r1.16 -r1.17 pkgsrc/security/py-certbot/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Tue, 01 Oct 2019 13:31:25 +0000
State-Changed-Why:
devel/py-distro has been added as a runtime dependency and it is now fixed.


From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54588 (security/py-certbot-0.38 fails due to missing
 distribution)
Date: Tue, 01 Oct 2019 13:59:17 +0200

 I test to add py-distro as DEPENDS but I have now the following error. I 
 will inspect wip/py-distro (that is outdated 1.1.0->1.4.0) to know if it 
 is it or certbot that does not support netbsd8.

 Traceback (most recent call last):
    File "/mnt/ccd0/pkg/bin/certbot-3.7", line 11, in <module>
      load_entry_point('certbot==0.38.0', 'console_scripts', 'certbot')()
    File 
 "/mnt/ccd0/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", 
 line 489, in load_entry_point
      return get_distribution(dist).load_entry_point(group, name)
    File 
 "/mnt/ccd0/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", 
 line 2852, in load_entry_point
      return ep.load()
    File 
 "/mnt/ccd0/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", 
 line 2443, in load
      return self.resolve()
    File 
 "/mnt/ccd0/pkg/lib/python3.7/site-packages/pkg_resources/__init__.py", 
 line 2449, in resolve
      module = __import__(self.module_name, fromlist=['__name__'], 
 level=0)
    File "/mnt/ccd0/pkg/lib/python3.7/site-packages/certbot/main.py", line 
 17, in <module>
      from certbot import account
    File "/mnt/ccd0/pkg/lib/python3.7/site-packages/certbot/account.py", 
 line 22, in <module>
      from certbot import util
    File "/mnt/ccd0/pkg/lib/python3.7/site-packages/certbot/util.py", line 
 17, in <module>
      import distro
    File "/mnt/ccd0/pkg/lib/python3.7/site-packages/distro.py", line 42, 
 in <module>
      raise ImportError('Unsupported platform: {0}'.format(sys.platform))
 ImportError: Unsupported platform: netbsd8

From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54588 (security/py-certbot-0.38 fails due to missing
 distribution)
Date: Tue, 01 Oct 2019 14:47:42 +0200

 Hello Leonardo,

 Le 2019-10-01 14:30, Leonardo Taccari a écrit :
 >  Maybe a bit OT regarding the PR, but only for the record: adding an
 >  entry to developerdb is optional and there are developers that prefer
 >  to not add themself there or don't do that step when not prodded by
 >  sponsors/www@.

 Thanks for your clarification!

 I just updated wip/py-distro to 1.4.0 and it works now. The next step is 
 to import it to pkgsrc.

From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/54588 CVS commit: pkgsrc/security/py-certbot
Date: Thu, 3 Oct 2019 23:58:18 +0000

 If this is broken in pkgsrc-stable, can the fix be backported? thanks!

From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54588 CVS commit: [pkgsrc-2019Q3] pkgsrc
Date: Fri, 18 Oct 2019 14:31:38 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Fri Oct 18 14:31:38 UTC 2019

 Modified Files:
 	pkgsrc/devel [pkgsrc-2019Q3]: Makefile
 	pkgsrc/security/py-certbot [pkgsrc-2019Q3]: Makefile
 Added Files:
 	pkgsrc/devel/py-distro [pkgsrc-2019Q3]: ALTERNATIVES DESCR Makefile
 	    PLIST distinfo

 Log Message:
 Pullup ticket #6071 - requested by taca
 devel/py-distro: dependent addition
 security/py-certbot: bugfix

 Revisions pulled up:
 - devel/Makefile                                                1.2921
 - devel/py-distro/ALTERNATIVES                                  1.1
 - devel/py-distro/DESCR                                         1.1
 - devel/py-distro/Makefile                                      1.1-1.2
 - devel/py-distro/PLIST                                         1.1
 - devel/py-distro/distinfo                                      1.1
 - security/py-certbot/Makefile                                  1.17-1.20

 ---
    Module Name:	pkgsrc
    Committed By:	triaxx
    Date:		Tue Oct  1 13:22:55 UTC 2019

    Added Files:
    	pkgsrc/devel/py-distro: DESCR Makefile PLIST distinfo

    Log Message:
    py-distro: import to version 1.4.0

    Thanks to Aleksej for importing 1.1.0 in wip.

 ---
    Module Name:	pkgsrc
    Committed By:	triaxx
    Date:		Tue Oct  1 13:24:35 UTC 2019

    Modified Files:
    	pkgsrc/devel: Makefile

    Log Message:
    Import py-distro to version 1.4.0

 ---
    Module Name:	pkgsrc
    Committed By:	triaxx
    Date:		Tue Oct  1 13:29:58 UTC 2019

    Modified Files:
    	pkgsrc/security/py-certbot: Makefile

    Log Message:
    py-certbot: fix PR pkg/54588

    pkgsrc changes:
    ---------------
    * Add devel/py-distro as a runtime dependency. Certbot claims >=3D1.0.1=
     but
      non-linux distribution are supported only from 1.2.0.

 ---
    Module Name:	pkgsrc
    Committed By:	adam
    Date:		Wed Oct  2 10:04:59 UTC 2019

    Modified Files:
    	pkgsrc/devel/py-distro: Makefile
    Added Files:
    	pkgsrc/devel/py-distro: ALTERNATIVES

    Log Message:
    py-distro: cleanup

 ---
    Module Name:	pkgsrc
    Committed By:	wiz
    Date:		Tue Oct  1 13:53:45 UTC 2019

    Modified Files:
    	pkgsrc/security/py-certbot: Makefile

    Log Message:
    py-certbot: bump PKGREVISION for added dependency

 ---
    Module Name:	pkgsrc
    Committed By:	wiz
    Date:		Wed Oct  2 08:38:42 UTC 2019

    Modified Files:
    	pkgsrc/security/py-certbot: Makefile

    Log Message:
    py-certbot: wip dependencies are not allowed in main pkgsrc

 ---
    Module Name:	pkgsrc
    Committed By:	triaxx
    Date:		Wed Oct  2 10:40:56 UTC 2019

    Modified Files:
    	pkgsrc/security/py-certbot: Makefile

    Log Message:
    py-certbot: update to 0.38nb3

    pkgsrc changes
    --------------
    * s/wip/devel/ for py-distro dependency (wip was for test only but
      committed by inattention)


 To generate a diff of this commit:
 cvs rdiff -u -r1.2920 -r1.2920.2.1 pkgsrc/devel/Makefile
 cvs rdiff -u -r0 -r1.1.2.2 pkgsrc/devel/py-distro/ALTERNATIVES \
     pkgsrc/devel/py-distro/DESCR pkgsrc/devel/py-distro/PLIST \
     pkgsrc/devel/py-distro/distinfo
 cvs rdiff -u -r0 -r1.2.2.2 pkgsrc/devel/py-distro/Makefile
 cvs rdiff -u -r1.16 -r1.16.4.1 pkgsrc/security/py-certbot/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.