pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/48602: devel/py-cython has PLIST issues



The following reply was made to PR pkg/48602; it has been noted by GNATS.

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/48602: devel/py-cython has PLIST issues
Date: Tue, 18 Feb 2014 15:36:40 +0100

 On Tue, Feb 18, 2014 at 02:30:01PM +0000, Hauke Fath wrote:
 >      py-cython does not build because of PLIST problems:
 > 
 > [...]
 > => Generating post-install file lists
 > pkg_create: can't stat 
 > `/var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/bin/cygdb2.7'
 > pkg_create: can't stat 
 > `/var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/bin/cython2.7'
 > => Checking file-check results for py27-cython-0.20
 > ERROR: ************************************************************
 > ERROR: The following files are in the PLIST but not in 
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg:
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/bin/cygdb2.7
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/bin/cython2.7
 > ERROR: ************************************************************
 > ERROR: The following files are in 
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg but not in the PLIST:
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/bin/cygdb
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/bin/cython
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/lib/python2.7/site-packages/Cython-0.20-py2.7.egg-info/PKG-INFO
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/lib/python2.7/site-packages/Cython-0.20-py2.7.egg-info/SOURCES.txt
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/lib/python2.7/site-packages/Cython-0.20-py2.7.egg-info/dependency_links.txt
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/lib/python2.7/site-packages/Cython-0.20-py2.7.egg-info/entry_points.txt
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/lib/python2.7/site-packages/Cython-0.20-py2.7.egg-info/not-zip-safe
 > ERROR:         
 > /var/obj/pkgsrc/devel/py-cython/work/.destdir/usr/pkg/lib/python2.7/site-packages/Cython-0.20-py2.7.egg-info/top_level.txt
 > *** Error code 1
 > 
 > >How-To-Repeat:
 >      Build package on netbsd-6.
 > 
 > >Fix:
 >      Update the PLIST?
 
 Works for me and in joerg's latest bulk build.
 http://ftp.netbsd.org/pub/pkgsrc/misc/joerg/20140217.1020/meta/report.html
 
 The versioned files should be installed because of patch-aa:
 $NetBSD: patch-aa,v 1.3 2013/10/20 22:04:31 wiz Exp $
 
 Avoid conflicts between different python package versions.
 
 --- setup.py.orig       2013-10-13 08:38:32.000000000 +0000
 +++ setup.py
 @@ -76,7 +76,7 @@ if 'setuptools' in sys.modules:
      scripts = []
  else:
      if os.name == "posix":
 -        scripts = ["bin/cython"]
 +        scripts = ["bin/cython" + sys.version[0:3]]
      else:
          scripts = ["cython.py"]
  
 @@ -86,7 +86,7 @@ if include_debugger:
              'cygdb = Cython.Debugger.Cygdb:main')
      else:
          if os.name == "posix":
 -            scripts.append('bin/cygdb')
 +            scripts.append('bin/cygdb' + sys.version[0:3])
          else:
              scripts.append('cygdb.py')
  
 
 and in the Makefile:
 
 PLIST_SUBST+=   PYVERSSUFFIX=${PYVERSSUFFIX}
 ...
 post-extract:
         cd ${WRKSRC}/bin && ${MV} cython cython${PYVERSSUFFIX}
         cd ${WRKSRC}/bin && ${MV} cygdb cygdb${PYVERSSUFFIX}
 ...
 and in the PLIST:
 bin/cygdb${PYVERSSUFFIX}
 bin/cython${PYVERSSUFFIX}
 
 I'm not sure how you can get to the failure you see.
 
 About the egg file: The package only includes extension.mk and sets
 PYDISTUTILSPKG=yes, so it usually doesn't create an egg.
 
 Something's weird in your setup :)
 
 Please check you have the latest CVS version including all files (cvs
 update -d -P -A) start over from 'make clean' and send the output.
  Thomas
 


Home | Main Index | Thread Index | Old Index