NetBSD Problem Report #47275

From www@NetBSD.org  Sun Dec  2 13:51:54 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id A811363DFC7
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  2 Dec 2012 13:51:54 +0000 (UTC)
Message-Id: <20121202135153.5B12A63DFC7@www.NetBSD.org>
Date: Sun,  2 Dec 2012 13:51:53 +0000 (UTC)
From: richard.palo@baou.fr
Reply-To: richard.palo@baou.fr
To: gnats-bugs@NetBSD.org
Subject: pkgsrc/devel/py-gobject3 has problems including gettext and PLIST
X-Send-Pr-Version: www-1.0

>Number:         47275
>Category:       pkg
>Synopsis:       pkgsrc/devel/py-gobject3 has problems including gettext and PLIST
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    prlw1
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 02 13:55:00 +0000 2012
>Closed-Date:    Fri Jan 04 10:14:12 +0000 2013
>Last-Modified:  Fri Jan 04 10:14:12 +0000 2013
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS devzoneX 5.11 oi_151a7 i86pc i386 i86pc Solaris

>Description:
when building devel/py-object3, there are numerous compile time warnings because ../work/.buildlink/includes has libintl.h directly and not in the subdirectory gettext where it should be found (as found in 
${LOCALBASE}/include/gettext/libintl.h)

gmake[3]: Entering directory `/tmp/pkgsrc/devel/py-gobject3/work/pygobject-3.4.1.1/gi/_glib'
  CC     libpyglib_gi_2_0_python2.7_la-pyglib.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CCLD   libpyglib-gi-2.0-python2.7.la
  CC     _glib_la-glibmodule.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CC     _glib_la-pygiochannel.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CC     _glib_la-pygoptioncontext.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CC     _glib_la-pygoptiongroup.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CC     _glib_la-pygmaincontext.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CC     _glib_la-pygmainloop.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CC     _glib_la-pygsource.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CC     _glib_la-pygspawn.lo
cc1: warning: /tmp/pkgsrc/devel/py-gobject3/work/.buildlink/include/gettext: No such file or directory [enabled by default]
  CCLD   _glib.la

and so on...

Also, when installing, PLIST tries to place
${PYSITELIB}/pygobject-3.4.1.1-py${PYVERSSUFFIX}-${LOWER_OPSYS}-${OS_VERSION}-${UNAME_M}.egg-info

which gives this error:
cp ./PKG-INFO /tmp/pkgsrc/devel/py-gobject3/work/.destdir/opt/pkg/lib/python2.7/site-packages/pygobject-3.4.1.1-py2.7-solaris-2.11-i86pc.64bit.egg-info
 /opt/pkg/bin/gmkdir -p '/tmp/pkgsrc/devel/py-gobject3/work/.destdir/opt/pkg/lib/pkgconfig'
 /opt/pkg/bin/install-sh -c -o richard -g staff -m 644 pygobject-3.0.pc '/tmp/pkgsrc/devel/py-gobject3/work/.destdir/opt/pkg/lib/pkgconfig'
gmake[2]: Leaving directory `/tmp/pkgsrc/devel/py-gobject3/work/pygobject-3.4.1.1'
gmake[1]: Leaving directory `/tmp/pkgsrc/devel/py-gobject3/work/pygobject-3.4.1.1'
=> Automatic manual page handling
pkg_create: can't stat `/tmp/pkgsrc/devel/py-gobject3/work/.destdir/opt/pkg/lib/python2.7/site-packages/pygobject-3.4.1.1-py2.7-solaris-5.11-i86pc.egg-info'
===> Building binary package for py27-gobject3-3.4.1.1
=> Creating binary package /home/richard/src/pkgsrc/packages/All/py27-gobject3-3.4.1.1.tgz
pkg_create: can't stat `/tmp/pkgsrc/devel/py-gobject3/work/.destdir/opt/pkg/lib/python2.7/site-packages/pygobject-3.4.1.1-py2.7-solaris-5.11-i86pc.egg-info'
pkg_create: lstat failed for file lib/python2.7/site-packages/pygobject-3.4.1.1-py2.7-solaris-5.11-i86pc.egg-info: No such file or directory
*** Error code 2

Stop.
bmake: stopped in /home/richard/src/pkgsrc/devel/py-gobject3
*** Error code 1

Stop.
bmake: stopped in /home/richard/src/pkgsrc/devel/py-gobject3


>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->prlw1
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 02 Dec 2012 17:56:13 +0000
Responsible-Changed-Why:
Over to maintainer.
(If you can't handle it, please assign to solaris-pkg-people)


From: RichardPALO <richard.palo@baou.fr>
To: <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: pkg/47275 (pkgsrc/devel/py-gobject3 has problems including
 gettext and PLIST)
Date: Mon, 03 Dec 2012 11:48:49 +0100

 --=_0ad5cc42c6a056c210c35b07592fd80b
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset=UTF-8



 this looks a bit suspect in pkgsrc/devel/gettext-lib/buildlink3.mk


 BUILDLINK_FNAME_TRANSFORM.gettext+= -e
 's|include/gettext/|include/|'


 --=_0ad5cc42c6a056c210c35b07592fd80b
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/html; charset=UTF-8

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
 <html><body>
 <p>this looks a bit suspect in pkgsrc/devel/gettext-lib/buildlink3.mk</p>
 <p>BUILDLINK_FNAME_TRANSFORM.gettext+=3D&nbsp;&nbsp;&nbsp; -e 's|include/ge=
 ttext/|include/|'<br /><br /><br /></p>
 <div>&nbsp;</div>
 </body></html>

 --=_0ad5cc42c6a056c210c35b07592fd80b--

From: RichardPALO <richard.palo@baou.fr>
To: <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: pkg/47275 (pkgsrc/devel/py-gobject3 has problems including
 gettext and PLIST)
Date: Tue, 04 Dec 2012 13:06:28 +0100

 --=_6bfc398912b68dc8ba9044291338c36a
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset=UTF-8



 For the PLIST issue, after looking at configure and Makefile
 scripts of the source package, this seems to work on my installation:


 richard@devzone:~/src/pkgsrc/devel/py-gobject3$ cvs diff
 Index:
 Makefile
 ===================================================================
 RCS
 file: /cvsroot/pkgsrc/devel/py-gobject3/Makefile,v
 retrieving revision
 1.9
 diff -u -p -r1.9 Makefile
 --- Makefile 26 Oct 2012 10:18:42 -0000
 1.9
 +++ Makefile 4 Dec 2012 12:02:41 -0000
 @@ -33,8 +33,8 @@
 REPLACE_PYTHON+= docs/xsl/fixxref.py.in
  TEST_TARGET= check

  # for the
 egg
 -UNAME_M!= uname -m
 -PLIST_SUBST+= UNAME_M=${UNAME_M:Q}
 +PLATFORM!=
 $(PYTHON) -c "import sys; from distutils import util;
 sys.stdout.write(util.get_platform())"
 +PLIST_SUBST+=
 PLATFORM=${PLATFORM:Q}

  .include "../../lang/python/extension.mk"

 .include "../../lang/python/application.mk"
 Index:
 PLIST
 ===================================================================
 RCS
 file: /cvsroot/pkgsrc/devel/py-gobject3/PLIST,v
 retrieving revision
 1.3
 diff -u -p -r1.3 PLIST
 --- PLIST 26 Oct 2012 10:18:42 -0000 1.3
 +++
 PLIST 4 Dec 2012 12:02:41 -0000
 @@ -66,4 +66,4 @@
 ${PYSITELIB}/gi/repository/__init__.pyo
  ${PYSITELIB}/gi/types.py

 ${PYSITELIB}/gi/types.pyc

 ${PYSITELIB}/gi/types.pyo
 -${PYSITELIB}/pygobject-3.4.1.1-py${PYVERSSUFFIX}-${LOWER_OPSYS}-${OS_VERSION}-${UNAME_M}.egg-info
 +${PYSITELIB}/pygobject-${PKGVERSION}-py${PYVERSSUFFIX}-${PLATFORM}.egg-info


 Perhaps somebody more pkgsrc knowledgeable could check out the
 PLIST_SUBST python part?


 --=_6bfc398912b68dc8ba9044291338c36a
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/html; charset=UTF-8

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
 <html><body>
 <p>For the PLIST issue, after looking at&nbsp; configure and Makefile scrip=
 ts of the source package, this seems to work on my installation:</p>
 <p>richard@devzone:~/src/pkgsrc/devel/py-gobject3$ cvs diff<br />Index: Mak=
 efile<br />=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br />RCS fi=
 le: /cvsroot/pkgsrc/devel/py-gobject3/Makefile,v<br />retrieving revision 1=
 =2E9<br />diff -u -p -r1.9 Makefile<br />--- Makefile&nbsp;&nbsp;&nbsp; 26 =
 Oct 2012 10:18:42 -0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.9<br />+++ Makefile=
 &nbsp;&nbsp;&nbsp; 4 Dec 2012 12:02:41 -0000<br />@@ -33,8 +33,8 @@ REPLACE=
 _PYTHON+=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; docs/xsl/fixxref.py.in<br />&nbsp=
 ;TEST_TARGET=3D&nbsp;&nbsp;&nbsp; check<br />&nbsp;<br />&nbsp;# for the eg=
 g<br />-UNAME_M!=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uname -m<br />-PLIST_SUBS=
 T+=3D&nbsp; UNAME_M=3D${UNAME_M:Q}<br />+PLATFORM!=3D&nbsp;&nbsp;&nbsp;&nbs=
 p; $(PYTHON) -c "import sys; from distutils import util; sys.stdout.write(u=
 til.get_platform())"<br />+PLIST_SUBST+=3D&nbsp; PLATFORM=3D${PLATFORM:Q}<b=
 r />&nbsp;<br />&nbsp;.include "../../lang/python/extension.mk"<br />&nbsp;=
 =2Einclude "../../lang/python/application.mk"<br />Index: PLIST<br />=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br />RCS file: /cvsroot/pkgsr=
 c/devel/py-gobject3/PLIST,v<br />retrieving revision 1.3<br />diff -u -p -r=
 1.3 PLIST<br />--- PLIST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 26 Oct 2012 10=
 :18:42 -0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.3<br />+++ PLIST&nbsp;&nbsp;&n=
 bsp;&nbsp;&nbsp;&nbsp; 4 Dec 2012 12:02:41 -0000<br />@@ -66,4 +66,4 @@ ${P=
 YSITELIB}/gi/repository/__init__.pyo<br />&nbsp;${PYSITELIB}/gi/types.py<br=
  />&nbsp;${PYSITELIB}/gi/types.pyc<br />&nbsp;${PYSITELIB}/gi/types.pyo<br =
 />-${PYSITELIB}/pygobject-3.4.1.1-py${PYVERSSUFFIX}-${LOWER_OPSYS}-${OS_VER=
 SION}-${UNAME_M}.egg-info<br />+${PYSITELIB}/pygobject-${PKGVERSION}-py${PY=
 VERSSUFFIX}-${PLATFORM}.egg-info</p>
 <p>&nbsp;</p>
 <p>Perhaps somebody more pkgsrc knowledgeable could check out the PLIST_SUB=
 ST python part?<br /><br /></p>
 <div>&nbsp;</div>
 </body></html>

 --=_6bfc398912b68dc8ba9044291338c36a--

From: "Patrick Welche" <prlw1@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47275 CVS commit: pkgsrc/devel/py-gobject3
Date: Tue, 4 Dec 2012 14:54:34 +0000

 Module Name:	pkgsrc
 Committed By:	prlw1
 Date:		Tue Dec  4 14:54:34 UTC 2012

 Modified Files:
 	pkgsrc/devel/py-gobject3: Makefile PLIST

 Log Message:
 Fix solaris build from Richard Palo in PR47275.

 Although neither our egg.mk nor distutils.mk files use PLATFORM in
 EGG_NAME, egg{,-info} filenames are of the form

   name ["-" version ["-py" pyver ["-" required_platform]]] "." ext

 As pygobject is C based, they chose to include required_platform in the
 egg name. As per the patch, PLATFORM is the output of python's
 get_platform() function, which is not just uname() output, but a
 modified version of it on solaris. (Stricly, get_build_platform() might
 be even more correct, but would require a depency on setuputils.)


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/py-gobject3/Makefile
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-gobject3/PLIST

 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: Fri, 04 Jan 2013 05:33:20 +0000
State-Changed-Why:
Is this fixed?


From: Richard PALO <richard.palo@baou.fr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47275 (pkgsrc/devel/py-gobject3 has problems including gettext
 and PLIST)
Date: Fri, 04 Jan 2013 09:51:39 +0100

 Le 04/01/13 06:33, dholland@NetBSD.org a écrit :
 > Synopsis: pkgsrc/devel/py-gobject3 has problems including gettext and PLIST
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Fri, 04 Jan 2013 05:33:20 +0000
 > State-Changed-Why:
 > Is this fixed?
 >
 >
 >
 >
 >
 The fixes from 4/12/12 work for me. FWIW.

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 04 Jan 2013 10:14:12 +0000
State-Changed-Why:
Confirmed fixed, thanks.


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