NetBSD Problem Report #39954

From www@NetBSD.org  Tue Nov 18 21:28:45 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id C2A0963B8BD
	for <gnats-bugs@gnats.netbsd.org>; Tue, 18 Nov 2008 21:28:45 +0000 (UTC)
Message-Id: <20081118212845.611DF63B874@narn.NetBSD.org>
Date: Tue, 18 Nov 2008 21:28:45 +0000 (UTC)
From: lloyd@must-have-coffee.gen.nz
Reply-To: lloyd@must-have-coffee.gen.nz
To: gnats-bugs@NetBSD.org
Subject: databases/py-sqlite3 and www/ap2-python
X-Send-Pr-Version: www-1.0

>Number:         39954
>Category:       pkg
>Synopsis:       databases/py-sqlite3 and www/ap2-python
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 18 21:30:00 +0000 2008
>Closed-Date:    Fri Mar 08 12:47:50 +0000 2013
>Last-Modified:  Fri Mar 08 12:47:50 +0000 2013
>Originator:     Lloyd Parkes
>Release:        4.0.1
>Organization:
Must Have Coffee
>Environment:
NetBSD netbsd.... 4.0.1 NetBSD 4.0.1 (GENERIC) #0: Tue Oct  7 22:58:48 PDT 2008  builds@wb30:/home/builds/ab/netbsd-4-0-1-RELEASE/i386/200810080053Z-obj/home/builds/ab/netbsd-4-0-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
databases/py-sqlite3 and www/ap2-python define the symbols in their respective shared libraries with names that conflict with one another (or with Apache itself). The end result Apache dumps core with SIGSEGV after one initialisation function gets called twice and another doesn't get called at all.

>How-To-Repeat:
Install www/trac to use mod_python and watch Apache dump core.


>Fix:
Whitespace in the following patch may be munged, but it's only three lines added to each package's Makefile.

NetBSD-4.0.1@netbsd$ pkgdiff www/ap2-python/Makefile
$NetBSD$

--- www/ap2-python/Makefile.orig        2008-09-16 09:20:23.000000000 +1200
+++ www/ap2-python/Makefile
@@ -26,6 +26,10 @@ PY_PATCHPLIST=       YES

 PKG_APACHE_ACCEPTED=   apache2 apache22

+# mod_python and the python 2.5.2 builtin sqlite define conflicting
+# shared library symbols. Fixed in Python 2.6. py-sqlite2 works fine.
+CONFLICTS=     py25-sqlite3-[0-9]*
+
 .include "../../lang/python/extension.mk"
 .include "../../mk/apache.mk"
 .include "../../mk/bsd.pkg.mk"
NetBSD-4.0.1@netbsd$ pkgdiff databases/py-sqlite3/Makefile
$NetBSD$

--- databases/py-sqlite3/Makefile.orig  2008-08-27 12:28:57.000000000 +1200
+++ databases/py-sqlite3/Makefile
@@ -18,6 +18,10 @@ PYDISTUTILSPKG=              yes
 PYTHON_VERSIONS_ACCEPTED=25
 PY_SETUP_SUBST+=       SQLITE_PREFIX=${BUILDLINK_PREFIX.sqlite3}

+# mod_python and the python 2.5.2 builtin sqlite define conflicting
+# shared library symbols. Fixed in Python 2.6. py-sqlite2 works fine.
+CONFLICTS=             ap*-py25-python-[0-9]*
+
 # ignore errors due to missing files (EXTRACT_ELEMENTS!)
 do-patch:
        set -e;                                                         \

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Fri, 08 Mar 2013 12:47:50 +0000
State-Changed-Why:
python25 had been removed from pkgsrc.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.