Simple py27-ujson-1.33 port breakage
Alfred Perlstein
alfred at freebsd.org
Wed Oct 30 18:15:05 UTC 2013
Hey folks, I'm trying to move us to a newer version of ports tree in our
project FreeNAS.
The problem is that python ports seem to break not only in our build
system, but also in FreeBSD in general:
I keep getting the following problem with this port we depend on:
===> Building package for py27-ujson-1.33
tar: lib/python2.7/site-packages/ujson.so: Cannot stat: No such file or
directory
tar: lib/python2.7/site-packages/ujson-1.33-py2.7.egg-info: Cannot stat:
No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1
Stop in /usr/ports_dir/devel/py-ujson.
Also on a -current box:
===> Registering installation for py27-ujson-1.33
pkg-static: lstat(/usr/local/lib/python2.7/site-packages/ujson.so): No
such file or directory
pkg-static:
lstat(/usr/local/lib/python2.7/site-packages/ujson-1.33-py2.7.egg-info):
No such file or directory
Installing py27-ujson-1.33... done
===> Building package for py27-ujson-1.33
Creating package for py27-ujson-1.33
Service unavailable# .(03:48:55)(root at spigot)
/usr/home/alfred/git/freebsd-ports/devel/py-ujson #
It seems like the problem is that the port is actually installing a file:
Copying ujson-1.33-py2.7-freebsd-9.2-RELEASE-amd64.egg to
/usr/local/lib/python2.7/site-packages
versus what the packing system expects:
lib/python2.7/site-packages/ujson-1.33-py2.7.egg-info
Note: ujson-1.33-py2.7-freebsd-9.2-RELEASE-amd64.egg VS
ujson-1.33-py2.7-freebsd-9.2-RELEASE-amd64.egg
Any idea why this is happening?
===> Installing for py27-ujson-1.33
===> py27-ujson-1.33 depends on file: /usr/local/bin/python2.7 - found
===> py27-ujson-1.33 depends on executable: python - found
===> Generating temporary packing list
===> Checking if devel/py-ujson already installed
running install
running bdist_egg
running egg_info
writing ujson.egg-info/PKG-INFO
writing top-level names to ujson.egg-info/top_level.txt
writing dependency_links to ujson.egg-info/dependency_links.txt
reading manifest file 'ujson.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'ujson.egg-info/SOURCES.txt'
installing library code to build/bdist.freebsd-11.0-CURRENT-amd64/egg
running install_lib
running build_ext
building 'ujson' extension
creating build
creating build/temp.freebsd-11.0-CURRENT-amd64-2.7
creating build/temp.freebsd-11.0-CURRENT-amd64-2.7/python
creating build/temp.freebsd-11.0-CURRENT-amd64-2.7/lib
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe
-fno-strict-aliasing -fPIC -I./python -I./lib
-I/usr/local/include/python2.7 -c ./python/ujson.c -o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./python/ujson.o -D_GNU_SOURCE
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe
-fno-strict-aliasing -fPIC -I./python -I./lib
-I/usr/local/include/python2.7 -c ./python/objToJSON.c -o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./python/objToJSON.o -D_GNU_SOURCE
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe
-fno-strict-aliasing -fPIC -I./python -I./lib
-I/usr/local/include/python2.7 -c ./python/JSONtoObj.c -o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./python/JSONtoObj.o -D_GNU_SOURCE
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe
-fno-strict-aliasing -fPIC -I./python -I./lib
-I/usr/local/include/python2.7 -c ./lib/ultrajsonenc.c -o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./lib/ultrajsonenc.o -D_GNU_SOURCE
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe
-fno-strict-aliasing -fPIC -I./python -I./lib
-I/usr/local/include/python2.7 -c ./lib/ultrajsondec.c -o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./lib/ultrajsondec.o -D_GNU_SOURCE
creating build/lib.freebsd-11.0-CURRENT-amd64-2.7
cc -shared -O2 -pipe -fno-strict-aliasing
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./python/ujson.o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./python/objToJSON.o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./python/JSONtoObj.o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./lib/ultrajsonenc.o
build/temp.freebsd-11.0-CURRENT-amd64-2.7/./lib/ultrajsondec.o -o
build/lib.freebsd-11.0-CURRENT-amd64-2.7/ujson.so
creating build/bdist.freebsd-11.0-CURRENT-amd64
creating build/bdist.freebsd-11.0-CURRENT-amd64/egg
copying build/lib.freebsd-11.0-CURRENT-amd64-2.7/ujson.so ->
build/bdist.freebsd-11.0-CURRENT-amd64/egg
writing byte-compilation script '/tmp/tmpOazmFu.py'
/usr/local/bin/python2.7 -O /tmp/tmpOazmFu.py
removing /tmp/tmpOazmFu.py
creating stub loader for ujson.so
byte-compiling build/bdist.freebsd-11.0-CURRENT-amd64/egg/ujson.py to
ujson.pyc
writing byte-compilation script '/tmp/tmpyTDjwm.py'
/usr/local/bin/python2.7 -O /tmp/tmpyTDjwm.py
removing /tmp/tmpyTDjwm.py
creating build/bdist.freebsd-11.0-CURRENT-amd64/egg/EGG-INFO
copying ujson.egg-info/PKG-INFO ->
build/bdist.freebsd-11.0-CURRENT-amd64/egg/EGG-INFO
copying ujson.egg-info/SOURCES.txt ->
build/bdist.freebsd-11.0-CURRENT-amd64/egg/EGG-INFO
copying ujson.egg-info/dependency_links.txt ->
build/bdist.freebsd-11.0-CURRENT-amd64/egg/EGG-INFO
copying ujson.egg-info/top_level.txt ->
build/bdist.freebsd-11.0-CURRENT-amd64/egg/EGG-INFO
writing build/bdist.freebsd-11.0-CURRENT-amd64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/ujson-1.33-py2.7-freebsd-11.0-CURRENT-amd64.egg' and
adding 'build/bdist.freebsd-11.0-CURRENT-amd64/egg' to it
removing 'build/bdist.freebsd-11.0-CURRENT-amd64/egg' (and everything
under it)
Processing ujson-1.33-py2.7-freebsd-11.0-CURRENT-amd64.egg
Removing
/usr/local/lib/python2.7/site-packages/ujson-1.33-py2.7-freebsd-11.0-CURRENT-amd64.egg
Copying ujson-1.33-py2.7-freebsd-11.0-CURRENT-amd64.egg to
/usr/local/lib/python2.7/site-packages
ujson 1.33 is already the active version in easy-install.pth
Installed
/usr/local/lib/python2.7/site-packages/ujson-1.33-py2.7-freebsd-11.0-CURRENT-amd64.egg
Processing dependencies for ujson==1.33
Finished processing dependencies for ujson==1.33
===> Registering installation for py27-ujson-1.33
pkg-static: lstat(/usr/local/lib/python2.7/site-packages/ujson.so): No
such file or directory
pkg-static:
lstat(/usr/local/lib/python2.7/site-packages/ujson-1.33-py2.7.egg-info):
No such file or directory
Installing py27-ujson-1.33... done
===> Building package for py27-ujson-1.33
Creating package for py27-ujson-1.33
Service unavailable# .(03:48:55)(root at spigot)
/usr/home/alfred/git/freebsd-ports/devel/py-ujson #
More information about the freebsd-python
mailing list