Bug#817810: emscripten: FTBFS when built with dpkg-buildpackage -A (ln: failed to create symbolic link)
Santiago Vila
sanvila at debian.org
Thu Mar 10 15:23:33 UTC 2016
Package: src:emscripten
Version: 1.22.1-1
User: sanvila at debian.org
Usertags: binary-indep
Severity: important
Dear maintainer:
I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep --with python2
dh_testdir -i
dh_update_autotools_config -i
dh_auto_configure -i
dh_auto_build -i
dh_auto_test -i
fakeroot debian/rules binary-indep
dh binary-indep --with python2
dh_testroot -i
dh_prep -i
dh_auto_install -i
debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f system/include/libcxx/LICENSE.txt system/lib/compiler-rt/LICENSE.TXT system/lib/libcxx/LICENSE.txt system/lib/libcxxabi/LICENSE.TXT tests/bullet/LICENSE tests/enet/LICENSE tests/freetype/LiberationSansBoldLICENSE.txt tests/freetype/docs/LICENSE.TXT tests/openjpeg/LICENSE tests/python/LICENSE tests/sounds/LICENSE.txt tests/poppler/COPYING tests/freetype/LiberationSansBoldLICENSE.txt tests/freealut/COPYING tests/bullet/COPYING system/lib/libcxx/LICENSE.txt system/lib/libcxxabi/LICENSE.TXT tests/bullet/BulletLicense.txt system/include/SDL/COPYING tests/enet/docs/license.dox tests/box2d/License.txt tests/box2d/freeglut/COPYING tools/node_modules/source-map/LICENSE tools/node_modules/source-map/node_modules/amdefine/LICENSE tests/freetype/docs/GPL.TXT
rm -f tools/eliminator/node_modules/uglify-js/.gitignore
rm -f `find . -iname '*.vcproj' -o -iname '*.sln' -o -iname '*.dsp' -o -iname '*.dsw'`
chmod +x tests/embind/build_benchmark
dh_install
mkdir -p /<<PKGBUILDDIR>>/debian/emscripten/usr/bin
cd /<<PKGBUILDDIR>>/debian/emscripten/usr/bin; \
for f in em++ emar emcc emcc.py em-config emconfigure emmake emranlib emscripten.py emscons; do \
ln -s ../share/emscripten/$f; \
done
cd /<<PKGBUILDDIR>>/debian/emscripten/usr/share/emscripten/tools/eliminator/node_modules/uglify-js/; \
rm -rf lib/* bin/uglifyjs; \
ln -s /usr/bin/uglifyjs bin/; \
cd lib; for f in /usr/lib/nodejs/uglify-js/*; do ln -s $f .; done
/bin/sh: 1: cd: can't cd to /<<PKGBUILDDIR>>/debian/emscripten/usr/share/emscripten/tools/eliminator/node_modules/uglify-js/
ln: target 'bin/' is not a directory: No such file or directory
/bin/sh: 4: cd: can't cd to lib
ln: failed to create symbolic link './package.json': File exists
ln: failed to create symbolic link './tools': File exists
debian/rules:15: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:11: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2
--------------------------------------------------------------------------------
Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:
* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.
* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").
Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.
Thanks.
More information about the Pkg-llvm-team
mailing list