NetBSD Problem Report #42598

From www@NetBSD.org  Sat Jan  9 16:03:15 2010
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 04CAD63C504
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  9 Jan 2010 16:03:15 +0000 (UTC)
Message-Id: <20100109160314.C486F63C503@www.NetBSD.org>
Date: Sat,  9 Jan 2010 16:03:14 +0000 (UTC)
From: saw@online.de
Reply-To: saw@online.de
To: gnats-bugs@NetBSD.org
Subject: fix py-gstreamer0.10 build breakage
X-Send-Pr-Version: www-1.0

>Number:         42598
>Category:       pkg
>Synopsis:       fix py-gstreamer0.10 build breakage
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    dfly-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 09 16:05:00 +0000 2010
>Closed-Date:    Mon Feb 07 19:36:46 +0000 2011
>Last-Modified:  Mon Feb 07 19:36:46 +0000 2011
>Originator:     Sascha Wildner
>Release:        pkgsrc-current
>Organization:
DragonFly BSD
>Environment:
DragonFly dim 2.5.1-DEVELOPMENT DragonFly v2.5.1.540.g05ee71-DEVELOPMENT #27: Fri Jan  8 01:36:26 CET 2010     s@dim:/usr/obj/home/s/projects/dragonfly/src/sys/DIM  i386
>Description:
pkgsrc/multimedia/py-gstreamer0.10 fails to build on DragonFly due to a configure test ("checking for libraries required to embed python...") linking against libpython but not -pthread. libpython, however, uses pthread_create().

pkgsrc/multimedia/py-gstreamer0.10 is the #4 package breaking other packages on DragonFly (our LiveDVD build requires it so it's kinda cruical to us). :)

>How-To-Repeat:
Try to build py-gstreamer0.10 on DragonFly.
>Fix:
Add -pthread for linking said configure test:

http://www.rumko.net/pkgsrc/py-gstreamer.patch

FreeBSD does something similar but instead they chose to change CONFIGURE_ENV:

http://www.freebsd.org/cgi/cvsweb.cgi/ports/multimedia/py-gstreamer/Makefile?rev=1.38

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/42598: fix py-gstreamer0.10 build breakage
Date: Sun, 10 Jan 2010 12:04:45 +0900

 How about results of python2.5-config --ldflags (or --libs) on DragonFly?

From: Sascha Wildner <saw@online.de>
To: gnats-bugs@NetBSD.org
Cc: OBATA Akio <obache@netbsd.org>, pkg-manager@netbsd.org, 
 gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/42598: fix py-gstreamer0.10 build breakage
Date: Sun, 10 Jan 2010 16:19:05 +0100

 Am 10.01.2010 04:05, schrieb OBATA Akio:
 > The following reply was made to PR pkg/42598; it has been noted by GNATS.
 >
 > From: "OBATA Akio"<obache@netbsd.org>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: pkg/42598: fix py-gstreamer0.10 build breakage
 > Date: Sun, 10 Jan 2010 12:04:45 +0900
 >
 >   How about results of python2.5-config --ldflags (or --libs) on DragonFly?

 zoot# python2.5-config --ldflags
 -lutil -lm -lpython2.5
 zoot# python2.5-config --libs
 -lutil -lm -lpython2.5

 Regards,
 Sascha

 -- 
 http://yoyodyne.ath.cx

From: Sascha Wildner <saw@online.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, 
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/42598: fix py-gstreamer0.10 build breakage
Date: Wed, 13 Jan 2010 05:23:25 +0100

 Am 10.01.2010 17:40, schrieb Sascha Wildner:
 > The following reply was made to PR pkg/42598; it has been noted by GNATS.
 >
 > From: Sascha Wildner<saw@online.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: OBATA Akio<obache@netbsd.org>, pkg-manager@netbsd.org,
 >   gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
 > Subject: Re: pkg/42598: fix py-gstreamer0.10 build breakage
 > Date: Sun, 10 Jan 2010 16:19:05 +0100
 >
 >   Am 10.01.2010 04:05, schrieb OBATA Akio:
 >   >  The following reply was made to PR pkg/42598; it has been noted by GNATS.
 >   >
 >   >  From: "OBATA Akio"<obache@netbsd.org>
 >   >  To: gnats-bugs@netbsd.org
 >   >  Cc:
 >   >  Subject: Re: pkg/42598: fix py-gstreamer0.10 build breakage
 >   >  Date: Sun, 10 Jan 2010 12:04:45 +0900
 >   >
 >   >    How about results of python2.5-config --ldflags (or --libs) on DragonFly?
 >
 >   zoot# python2.5-config --ldflags
 >   -lutil -lm -lpython2.5
 >   zoot# python2.5-config --libs
 >   -lutil -lm -lpython2.5
 >
 >   Regards,
 >   Sascha
 >
 >   --
 >   http://yoyodyne.ath.cx

 Hi,

 are there any plans to commit the fix 
 (http://www.rumko.net/pkgsrc/py-gstreamer.patch) or are there other 
 things I need to check out?

 Regards,
 Sascha

 -- 
 http://yoyodyne.ath.cx

Responsible-Changed-From-To: pkg-manager->dfly-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 13 Jan 2010 05:41:52 +0000
Responsible-Changed-Why:
Problem on DragonFly BSD.
maybe general issue at linked against libpython.


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/42598 (fix py-gstreamer0.10 build breakage)
Date: Wed, 01 Dec 2010 21:45:47 +0900

 On Wed, 13 Jan 2010 14:41:52 +0900, <obache@netbsd.org> wrote:

 > Synopsis: fix py-gstreamer0.10 build breakage
 >
 > Responsible-Changed-From-To: pkg-manager->dfly-pkg-people
 > Responsible-Changed-By: obache@NetBSD.org
 > Responsible-Changed-When: Wed, 13 Jan 2010 05:41:52 +0000
 > Responsible-Changed-Why:
 > Problem on DragonFly BSD.
 > maybe general issue at linked against libpython.

 At least on Python-2.6,
 1. configure
   1) check whether '-pthread' is accepted, then "CC= cc -pthread".
   2) also check '-lphread' is required for sem_init(3) (not using -pthread).
      then add -lpthead to ${LIBS}.

 On DragonFly, -pthread is accepted, but -lpthread is not required for sem_init(3)

 2. make
   1) phtyon26 executable is linked with ${CC} with ${LIBS}.
   2) libpython26.so will be linked with "cc -shared" with ${LIBS}.

 On DragonFly, executable is linked with libpthread, but libpython is not.

 -- 
 OBATA Akio / obache@NetBSD.org

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42598 CVS commit: pkgsrc/lang/python26
Date: Sat, 25 Dec 2010 05:45:15 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sat Dec 25 05:45:15 UTC 2010

 Modified Files:
 	pkgsrc/lang/python26: Makefile distinfo
 	pkgsrc/lang/python26/patches: patch-al

 Log Message:
 * Remove a redundant hunk for Darwin,
 * Use $(CC) for LDSHARED on NetBSD and DragonFly like any other.
   Fixes PR#42598 for that libpython will be linked with sufficient flags.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -u -r1.31 -r1.32 pkgsrc/lang/python26/Makefile
 cvs rdiff -u -r1.29 -r1.30 pkgsrc/lang/python26/distinfo
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/python26/patches/patch-al

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

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 28 Dec 2010 23:38:40 +0000
State-Changed-Why:
Did the python26 fix solve this problem?


State-Changed-From-To: feedback->closed
State-Changed-By: rumko@NetBSD.org
State-Changed-When: Mon, 07 Feb 2011 19:36:46 +0000
State-Changed-Why:
The python fix solved the problem.

>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.