NetBSD Problem Report #44580

From cheusov@tut.by  Tue Feb 15 19:16:38 2011
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 5DCB063B100
	for <gnats-bugs@gnats.netbsd.org>; Tue, 15 Feb 2011 19:16:38 +0000 (UTC)
Message-Id: <87wrl15cry.fsf@asrock.chizhovka.net>
Date: Tue, 15 Feb 2011 21:16:33 +0200
From: cheusov@tut.by
To: gnats-bugs@gnats.NetBSD.org
Subject: python26: PLIST issue on OpenSolaris
X-Send-Pr-Version: 3.95

>Number:         44580
>Category:       pkg
>Synopsis:       python26: PLIST issue on OpenSolaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 19:20:01 +0000 2011
>Last-Modified:  Fri Feb 18 08:04:05 +0000 2011
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.1
>Organization:
>Environment:
System: SunOS sunos 5.11 oi_148 i86pc i386 i86pc Solaris
Architecture: x86_64
Machine: amd64
>Description:
Building lang/python26 ends like the following.

   => Creating binary package /srv/pkgsrc_bin/SunOS/All/python26-2.6.6nb5.tgz
   pkg_create: can't stat `/tmp/obj-pkgsrc/lang/python26/work/.destdir/usr/pkg/lib/python2.6/lib-dynload/_ctypes.so'
   pkg_create: can't stat `/tmp/obj-pkgsrc/lang/python26/work/.destdir/usr/pkg/lib/python2.6/lib-dynload/_socket.so'
   pkg_create: can't stat `/tmp/obj-pkgsrc/lang/python26/work/.destdir/usr/pkg/lib/python2.6/lib-dynload/_ssl.so'
   pkg_create: lstat failed for file lib/python2.6/lib-dynload/_ctypes.so: No such file or directory
   *** Error code 2
>How-To-Repeat:
ABI=                    64
PKGSRC_COMPILER=        sunpro
CC=                     /opt/sunstudio12.1/bin/cc -m64
CXX=                    /opt/sunstudio12.1/bin/CC -m64
CPP=                    /opt/sunstudio12.1/bin/cc -m64 -E

Linker is Sun's /usr/ccs/bin/ld

>Fix:

Unknown
>Release-Note:

>Audit-Trail:
From: "Filip Hajny" <filip@joyent.com>
To: <gnats-bugs@NetBSD.org>
Cc: <pkg-manager@netbsd.org>,
	<gnats-admin@netbsd.org>,
	<pkgsrc-bugs@netbsd.org>
Subject: Re: pkg/44580: python26: PLIST issue on OpenSolaris
Date: Tue, 15 Feb 2011 23:50:08 +0100

 On 15.2.2011, at 20:20, cheusov@tut.by wrote:

 > Building lang/python26 ends like the following.
 >=20
 >   =3D> Creating binary package /srv/pkgsrc_bin/SunOS/All/python26-2.6.6nb=
 5.tgz
 >   pkg_create: can't stat `/tmp/obj-pkgsrc/lang/python26/work/.destdir/usr=
 /pkg/lib/python2.6/lib-dynload/_ctypes.so'
 >   pkg_create: can't stat `/tmp/obj-pkgsrc/lang/python26/work/.destdir/usr=
 /pkg/lib/python2.6/lib-dynload/_socket.so'
 >   pkg_create: can't stat `/tmp/obj-pkgsrc/lang/python26/work/.destdir/usr=
 /pkg/lib/python2.6/lib-dynload/_ssl.so'
 >   pkg_create: lstat failed for file lib/python2.6/lib-dynload/_ctypes.so:=
  No such file or directory
 >   *** Error code 2

 This is not a PLIST issue, well at least unless you're fine with having a c=
 type-less Python installation.

 The problem is not in lang/python26, but in devel/libffi (which ctypes requ=
 ires). I have been able to build lang/python26 with Studio and ABI=3D64, pr=
 ovided I use a GCC-compiled devel/libffi package. The general consensus see=
 ms to be that libffi simply requires GCC.

 However even with GCC, libffi fails with ABI=3D64 on Solaris in a nasty way=
  - it builds a valid 64bit shared lib that doesn't include the source requi=
 red to make it anything useful on x86_64 (something that ctypes will be hap=
 py with). I have yet to turn this into a proper patch (not sure when I'll h=
 ave time for that), and it's a case for upstream fixing for sure.

 -F=

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 18 Feb 2011 08:04:05 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.
Perhaps try contacting libffi upstream?


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