NetBSD Problem Report #42070
From www@NetBSD.org Tue Sep 15 21:46:41 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 3787D63C2E4
for <gnats-bugs@gnats.netbsd.org>; Tue, 15 Sep 2009 21:46:41 +0000 (UTC)
Message-Id: <20090915214618.EE30A63B877@www.NetBSD.org>
Date: Tue, 15 Sep 2009 21:46:18 +0000 (UTC)
From: briandealwis@gmail.com
Reply-To: briandealwis@gmail.com
To: gnats-bugs@NetBSD.org
Subject: lang/python26 fails to prevent _sqlite3.so from being installed
X-Send-Pr-Version: www-1.0
>Number: 42070
>Category: pkg
>Synopsis: lang/python26 fails to prevent _sqlite3.so from being installed
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: obache
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 15 21:50:00 +0000 2009
>Closed-Date: Sat Jan 16 02:26:54 +0000 2010
>Last-Modified: Sat Jan 16 02:26:54 +0000 2010
>Originator: Brian de Alwis
>Release: pkgsrc-current, MacOSX 10.5.8
>Organization:
>Environment:
Darwin chiclet.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
>Description:
lang/python2[56] patch the setup.py script to add a series of modules to the disabled list to prevent their installation. These modules are installed by separate packages such as textproc/py-expat.
Python 2.6 apparently now includes sqlite3 module. As the setup.py patch is missing _sqlite3 from the disabled list, the _sqlite3.so module is built and installed, which could conflict with databases/py-sqlite3.
>How-To-Repeat:
$ cd .../pkgsrc/lang/python26
$ make install >/dev/null
$ ls /usr/pkg/lib/python2.6/lib-dynload/_sqlite3.so
/usr/pkg/lib/python2.6/lib-dynload/_sqlite3.so*
>Fix:
Add _sqlite3 to the disabled modules list.
=== modified file 'lang/python26/patches/patch-am'
--- lang/python26/patches/patch-am 2009-08-19 21:09:46 +0000
+++ lang/python26/patches/patch-am 2009-09-15 21:33:49 +0000
@@ -7,7 +7,7 @@
# This global variable is used to hold the list of modules to be disabled.
-disabled_module_list = []
-+disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", "_sqlite", "_tkinter", "bsddb", "cjkcodecs" "gdbm", "mpz", "expat", "readline"]
++disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", "_sqlite", "_sqlite3", "_tkinter", "bsddb", "cjkcodecs" "gdbm", "mpz", "expat", "readline"]
def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (at the front) if
=== modified file 'lang/python26/distinfo'
--- lang/python26/distinfo 2009-08-19 21:09:46 +0000
+++ lang/python26/distinfo 2009-09-15 21:33:49 +0000
@@ -13,7 +13,7 @@
SHA1 (patch-aj) = a75d680a6b8b1ad3c9222dcb841f4fb10db6d16d
SHA1 (patch-ak) = 948362c15ad59abeef46971f9b870b70655a62c7
SHA1 (patch-al) = c39144cfa4a540900fac879b5faa990628fcee3e
-SHA1 (patch-am) = 591bca1e2b5c7fb612f07354cb18e0bcd2b08549
+SHA1 (patch-am) = 1a008add276b56ef3c3fc4274466a918b00c465f
SHA1 (patch-an) = 17b4e17b3b562c29a050e9bb20447084ce82b8ab
SHA1 (patch-ao) = 9bbd5561c010e0a1ab8e0a70d27a5f77fd2089d2
SHA1 (patch-ap) = 39d81b01fa9e1b894be9ae0922881337bb4d17da
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->obache
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sat, 19 Sep 2009 09:09:24 +0000
Responsible-Changed-Why:
I've commited the fix.
State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 19 Sep 2009 09:09:24 +0000
State-Changed-Why:
It should be fixed.
Could you update your pkgsrc tree (patch-am, rev1.6) and confirm on your
environment?
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42070 CVS commit: pkgsrc/lang/python26
Date: Sat, 19 Sep 2009 09:06:58 +0000
Module Name: pkgsrc
Committed By: obache
Date: Sat Sep 19 09:06:58 UTC 2009
Modified Files:
pkgsrc/lang/python26: distinfo
pkgsrc/lang/python26/patches: patch-am
Log Message:
Fixes modules in disable_module_list
* not "_sqlite", but "_sqlite3", fixes PR#42070.
* "bsddb" does not exists. (I can find it in Python21, not in Python23)
* "cjkcodecs" should not be disabled.
It is expected to exists in all Python variants and py-cjkcodecs was removed.
Although, the module name is "_multibytecodec" and "_codecs_*".
and missing "," after it kill subsecuent "gdbm".
* "mpz" was removed in Python24.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/python26/distinfo
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/python26/patches/patch-am
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 16 Jan 2010 02:26:54 +0000
State-Changed-Why:
No negative feedback for a quater year should be good news.
>Unformatted:
(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.