ceph / calamari-clients

Ceph Manager API Client Code
Other
101 stars 59 forks source link

vagrant build fails for precise-build #45

Closed nereocystis closed 10 years ago

nereocystis commented 10 years ago

When I run "make dpkg" under vagrant in precise-build, I receive the following error message. Increasing bower to 1.3.8 allows a successful build.

vagrant@precise64:~/clients$ make dpkg DEBEMAIL=dan.mick@inktank.com dch \ --newversion 1.2-rc2-49-g3e3686d"" \ -D unstable --force-bad-version --force-distribution "built on Wed Aug 6 22:06:55 UTC 2014" dch warning: Recognised distributions are: {hardy,lucid,maverick,natty,oneiric,precise,quantal}{,-updates,-security,-proposed,-backports} and UNRELEASED. Using your request anyway.

don't require Build-Depends if not Ubuntu

if [ y = y ] ; then \ dpkg-buildpackage -b -us -uc ; \ else \ dpkg-buildpackage -d -b -us -uc ; \ fi dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro dpkg-buildpackage: source package calamari-clients dpkg-buildpackage: source version 1.2-rc2-49-g3e3686d dpkg-buildpackage: source changed by vagrant dan.mick@inktank.com dpkg-buildpackage: host architecture amd64 dpkg-source --before-build clients fakeroot debian/rules clean make[1]: Entering directory `/home/vagrant/clients'

keep your *(# hands off my venvs

dh clean --without python2 --without python3 --without pycentral --without pysupport dh_testdir dh_auto_clean make -j1 clean make[2]: Entering directory /home/vagrant/clients' if [ y = y ] ; then \ make clean-real; \ fi make[3]: Entering directory/home/vagrant/clients' for d in manage admin login dashboard; do \ echo $d; cd $d; make clean; cd .. ; \ done ; manage make[4]: Entering directory `/home/vagrant/clients/manage' if [ -d node_modules ] ; then grunt --no-color clean; fi Running "clean:dist" (clean) task

Running "clean:server" (clean) task

Done, without errors.

Execution Time (2014-08-06 22:07:08 UTC) loading tasks 22ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 50% clean:dist 15ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 34% clean:server 5ms ▇▇▇▇▇▇ 11% Total 44ms rm -f build-stamp make[4]: Leaving directory /home/vagrant/clients/manage' admin make[4]: Entering directory/home/vagrant/clients/admin' if [ -d node_modules ] ; then grunt --no-color clean; fi rm -f build-stamp make[4]: Leaving directory /home/vagrant/clients/admin' login make[4]: Entering directory/home/vagrant/clients/login' if [ -d node_modules ] ; then grunt --no-color clean; fi rm -f build-stamp make[4]: Leaving directory /home/vagrant/clients/login' dashboard make[4]: Entering directory/home/vagrant/clients/dashboard' if [ -d node_modules ] ; then grunt --no-color clean; fi rm -f build-stamp make[4]: Leaving directory /home/vagrant/clients/dashboard' rm -f /home/vagrant/clients/calamari-clients-build-output.tar.gz make[3]: Leaving directory/home/vagrant/clients' make[2]: Leaving directory /home/vagrant/clients' dh_clean rm -f debian/calamari-clients.substvars rm -f debian/calamari-clients.*.debhelper rm -rf debian/calamari-clients/ rm -f debian/*.debhelper.log rm -f debian/files find . \( \( -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} \; \) -o \ \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) \) rm -f *-stamp make[1]: Leaving directory/home/vagrant/clients' debian/rules build make[1]: Entering directory `/home/vagrant/clients'

keep your *(# hands off my venvs

dh build --without python2 --without python3 --without pycentral --without pysupport dh_testdir dh_auto_configure dh_auto_build make -j1 make[2]: Entering directory /home/vagrant/clients' if [ y = y ] ; then \ make build-real; \ fi make[3]: Entering directory/home/vagrant/clients' building ui set -e ;\ for d in manage admin login dashboard; do \ echo $d; cd $d; make build; cd .. ; \ done manage make[4]: Entering directory `/home/vagrant/clients/manage' npm install --loglevel warn npm WARN package.json manage@0.0.0 No repository field. npm WARN package.json grunt-contrib-htmlmin@0.1.3 No README data npm WARN package.json karma-chrome-launcher@0.1.4 No README data npm WARN package.json karma-phantomjs-launcher@0.1.4 No README data

bower --allow-root install

Update available: 1.3.9 (current: 1.2.8)

Run npm update -g bower to update

bower not-cached git://github.com/jrburke/requirejs-bower.git#~2.1.10 bower resolve git://github.com/jrburke/requirejs-bower.git#~2.1.10 bower not-cached git://github.com/mgcrea/angular-motion.git#~0.3.1 bower resolve git://github.com/mgcrea/angular-motion.git#~0.3.1 bower error Arguments to path.join must be strings

Stack trace: TypeError: Arguments to path.join must be strings at path.js:360:15 at Array.filter (native) at Object.exports.join (path.js:358:36) at GitHubResolver._checkout (/usr/lib/node_modules/bower/lib/core/resolvers/GitHubResolver.js:54:21) at /usr/lib/node_modules/bower/lib/core/resolvers/GitResolver.js:69:21 at _fulfilled (/usr/lib/node_modules/bower/node_modules/q/q.js:798:54) at self.promiseDispatch.done (/usr/lib/node_modules/bower/node_modules/q/q.js:827:30) at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/node_modules/q/q.js:760:13) at /usr/lib/node_modules/bower/node_modules/q/q.js:574:44 at flush (/usr/lib/node_modules/bower/node_modules/q/q.js:108:17)

Console trace: Trace at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17) at Logger.updateNotifier.packageName (/usr/lib/node_modules/bower/bin/bower:109:18) at Logger.emit (events.js:95:17) at Logger.emit (/usr/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39) at /usr/lib/node_modules/bower/lib/commands/install.js:27:16 at _rejected (/usr/lib/node_modules/bower/node_modules/q/q.js:808:24) at /usr/lib/node_modules/bower/node_modules/q/q.js:834:30 at Promise.when (/usr/lib/node_modules/bower/node_modules/q/q.js:1079:31) at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/node_modules/q/q.js:752:41) at /usr/lib/node_modules/bower/node_modules/q/q.js:574:44

System info: Bower version: 1.2.8 Node version: 0.10.30 OS: Linux 3.2.0-23-generic x64 make[4]: * [build-stamp] Error 1 make[4]: Leaving directory `/home/vagrant/clients/manage' make[3]: * [build-ui] Error 2 make[3]: Leaving directory/home/vagrant/clients' make[2]: **\* [build] Error 2 make[2]: Leaving directory/home/vagrant/clients' dh_auto_build: make -j1 returned exit code 2 make[1]: [build] Error 2 make[1]: Leaving directory`/home/vagrant/clients' dpkg-buildpackage: error: debian/rules build gave error exit status 2 make: \ [dpkg] Error 2 vagrant@precise64:~/clients$ Connection to 127.0.0.1 closed by remote host. Connection to 127.0.0.1 closed. kevin@nereocystis:~/src/calamari-clients/vagrant/precise-build$

nereocystis commented 10 years ago

I have made a pull request to handle this problem:

https://github.com/ceph/calamari-clients/pull/46

dmick commented 10 years ago

I already have a fix for this in commit a1f076ae872a41915c0455a5e965df1007fb78fb which should be on master and 1.2 branches....

tolbkni commented 10 years ago

This issue also can be closed as it is already fixed