[Pkg-javascript-devel] Bug#973065: node-zipfile: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 4

Lucas Nussbaum lucas at debian.org
Tue Oct 27 17:07:58 GMT 2020


Source: node-zipfile
Version: 0.5.12+ds-4
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>/build'
>   CXX(target) Release/obj.target/zipfile/src/node_zipfile.o
> In file included from ../src/node_zipfile.hpp:9,
>                  from ../src/node_zipfile.cpp:1:
> ../../../../usr/lib/nodejs/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
> ../../../../usr/lib/nodejs/nan/nan.h:2298:7: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
>  2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
>       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../src/node_zipfile.cpp: In static member function ‘static void ZipFile::Initialize(v8::Local<v8::Object>)’:
> ../src/node_zipfile.cpp:45:94: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
>    45 |     target->Set(Nan::New("ZipFile").ToLocalChecked(),Nan::GetFunction(lcons).ToLocalChecked());
>       |                                                                                              ^
> In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
>                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
>                  from ../src/node_zipfile.hpp:5,
>                  from ../src/node_zipfile.cpp:1:
> /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
>  3499 |                 bool Set(Local<Value> key, Local<Value> value));
>       |                      ^~~
> /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
>   328 |   declarator __attribute__((deprecated(message)))
>       |   ^~~~~~~~~~
> ../src/node_zipfile.cpp: In static member function ‘static void ZipFile::get_prop(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’:
> ../src/node_zipfile.cpp:112:71: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
>   112 |             a->Set(i, Nan::New(zf->names_[i].c_str()).ToLocalChecked());
>       |                                                                       ^
> In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
>                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
>                  from ../src/node_zipfile.hpp:5,
>                  from ../src/node_zipfile.cpp:1:
> /usr/include/nodejs/deps/v8/include/v8.h:3508:22: note: declared here
>  3508 |                 bool Set(uint32_t index, Local<Value> value));
>       |                      ^~~
> /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
>   328 |   declarator __attribute__((deprecated(message)))
>       |   ^~~~~~~~~~
> ../src/node_zipfile.cpp: In static member function ‘static void ZipFile::copyFile(const Nan::FunctionCallbackInfo<v8::Value>&)’:
> ../src/node_zipfile.cpp:252:72: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
>   252 |     uv_queue_work(uv_default_loop(), &closure->request, Work_CopyFile, (uv_after_work_cb)Work_AfterCopyFile);
>       |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../src/node_zipfile.cpp: In static member function ‘static void ZipFile::Work_AfterCopyFile(uv_work_t*)’:
> ../src/node_zipfile.cpp:272:93: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
>   272 |         Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(closure->cb), 1, argv);
>       |                                                                                             ^
> In file included from ../src/node_zipfile.hpp:9,
>                  from ../src/node_zipfile.cpp:1:
> ../../../../usr/lib/nodejs/nan/nan.h:1024:46: note: declared here
>  1024 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
>       |                                              ^~~~~~~~~~~~
> ../src/node_zipfile.cpp:275:93: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
>   275 |         Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(closure->cb), 1, argv);
>       |                                                                                             ^
> In file included from ../src/node_zipfile.hpp:9,
>                  from ../src/node_zipfile.cpp:1:
> ../../../../usr/lib/nodejs/nan/nan.h:1024:46: note: declared here
>  1024 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
>       |                                              ^~~~~~~~~~~~
> ../src/node_zipfile.cpp: In static member function ‘static void ZipFile::readFile(const Nan::FunctionCallbackInfo<v8::Value>&)’:
> ../src/node_zipfile.cpp:414:72: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
>   414 |     uv_queue_work(uv_default_loop(), &closure->request, Work_ReadFile, (uv_after_work_cb)Work_AfterReadFile);
>       |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../src/node_zipfile.cpp: In static member function ‘static void ZipFile::Work_AfterReadFile(uv_work_t*)’:
> ../src/node_zipfile.cpp:472:93: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
>   472 |         Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(closure->cb), 1, argv);
>       |                                                                                             ^
> In file included from ../src/node_zipfile.hpp:9,
>                  from ../src/node_zipfile.cpp:1:
> ../../../../usr/lib/nodejs/nan/nan.h:1024:46: note: declared here
>  1024 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
>       |                                              ^~~~~~~~~~~~
> ../src/node_zipfile.cpp:476:93: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
>   476 |         Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(closure->cb), 2, argv);
>       |                                                                                             ^
> In file included from ../src/node_zipfile.hpp:9,
>                  from ../src/node_zipfile.cpp:1:
> ../../../../usr/lib/nodejs/nan/nan.h:1024:46: note: declared here
>  1024 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
>       |                                              ^~~~~~~~~~~~
> ../src/node_zipfile.cpp: In function ‘void init(v8::Local<v8::Object>)’:
> ../src/node_zipfile.cpp:490:93: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
>   490 |         target->Set(Nan::New("version").ToLocalChecked(), Nan::New("0.5.8").ToLocalChecked());
>       |                                                                                             ^
> In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
>                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
>                  from ../src/node_zipfile.hpp:5,
>                  from ../src/node_zipfile.cpp:1:
> /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
>  3499 |                 bool Set(Local<Value> key, Local<Value> value));
>       |                      ^~~
> /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
>   328 |   declarator __attribute__((deprecated(message)))
>       |   ^~~~~~~~~~
> ../src/node_zipfile.cpp:494:99: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
>   494 |         versions->Set(Nan::New("node").ToLocalChecked(), Nan::New(NODE_VERSION+1).ToLocalChecked());
>       |                                                                                                   ^
> In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
>                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
>                  from ../src/node_zipfile.hpp:5,
>                  from ../src/node_zipfile.cpp:1:
> /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
>  3499 |                 bool Set(Local<Value> key, Local<Value> value));
>       |                      ^~~
> /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
>   328 |   declarator __attribute__((deprecated(message)))
>       |   ^~~~~~~~~~
> ../src/node_zipfile.cpp:495:99: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
>   495 |         versions->Set(Nan::New("v8").ToLocalChecked(), Nan::New(V8::GetVersion()).ToLocalChecked());
>       |                                                                                                   ^
> In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
>                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
>                  from ../src/node_zipfile.hpp:5,
>                  from ../src/node_zipfile.cpp:1:
> /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
>  3499 |                 bool Set(Local<Value> key, Local<Value> value));
>       |                      ^~~
> /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
>   328 |   declarator __attribute__((deprecated(message)))
>       |   ^~~~~~~~~~
> ../src/node_zipfile.cpp:496:68: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
>   496 |         target->Set(Nan::New("versions").ToLocalChecked(), versions);
>       |                                                                    ^
> In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
>                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
>                  from ../src/node_zipfile.hpp:5,
>                  from ../src/node_zipfile.cpp:1:
> /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
>  3499 |                 bool Set(Local<Value> key, Local<Value> value));
>       |                      ^~~
> /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
>   328 |   declarator __attribute__((deprecated(message)))
>       |   ^~~~~~~~~~
> In file included from ../src/node_zipfile.hpp:8,
>                  from ../src/node_zipfile.cpp:1:
> ../src/node_zipfile.cpp: At global scope:
> /usr/include/nodejs/src/node.h:727:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
>   727 |       (node::addon_register_func) (regfunc),                          \
>       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/nodejs/src/node.h:761:3: note: in expansion of macro ‘NODE_MODULE_X’
>   761 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
>       |   ^~~~~~~~~~~~~
> ../src/node_zipfile.cpp:498:35: note: in expansion of macro ‘NODE_MODULE’
>   498 |     #define MAKE_MODULE(_modname) NODE_MODULE( _modname, init)
>       |                                   ^~~~~~~~~~~
> ../src/node_zipfile.cpp:499:5: note: in expansion of macro ‘MAKE_MODULE’
>   499 |     MAKE_MODULE(MODULE_NAME)
>       |     ^~~~~~~~~~~
> In file included from ../src/node_zipfile.hpp:5,
>                  from ../src/node_zipfile.cpp:1:
> /usr/include/nodejs/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
> /usr/include/nodejs/src/node_object_wrap.h:85:78:   required from here
> /usr/include/nodejs/deps/v8/include/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
> 10226 |                reinterpret_cast<Callback>(callback), type);
>       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/nodejs/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
> /usr/include/nan_object_wrap.h:65:61:   required from here
> /usr/include/nodejs/deps/v8/include/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
>   SOLINK_MODULE(target) Release/obj.target/zipfile.node
>   COPY Release/zipfile.node
>   COPY /<<PKGBUILDDIR>>/lib/binding/zipfile.node
>   TOUCH Release/obj.target/action_after_build.stamp
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
> gyp info ok 
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules
> 	ln -s ../. node_modules/zipfile
> 	/bin/sh -ex debian/tests/pkg-js/test
> + mocha
> 
> 
>   Exceptions
>     ✓ should throw as archive does not exit
>     ✓ should throw as the file is invalid
>     ✓ should throw as the file in the archive does not exit
>     ✓ should not crash if we read invalid filename
> 
>   Opening
>     ✓ folder based archive should open
>     ✓ opening unix zip created archive
>     ✓ test opening mac created archive
>     ✓ test opening invalid archive
> 
>   Handling unicode paths, filenames, and data
>     ✓ open zip with folder with unicode
>     ✓ open zip with folder and file with unicode
>     ✓ open zip with unicode paths and unicode filenames in archive
>     ✓ open zip with ansi path but unicode filename in archive
> 
>   Writes
>     Async Writes
>       1) async write world_merc.dbf
>       2) async write world_merc.prj
>       3) async write world_merc.shp
>       4) async write world_merc.shx
>     Sync Writes
>       ✓ sync write world_merc.dbf
>       ✓ sync write world_merc.prj
>       ✓ sync write world_merc.shp
>       ✓ sync write world_merc.shx
> 
> 
>   16 passing (32ms)
>   4 failing
> 
>   1) Writes
>        Async Writes
>          async write world_merc.dbf:
>      TypeError: invalid options argument
>       at optsArg (/usr/share/nodejs/mkdirp/lib/opts-arg.js:13:11)
>       at mkdirp (/usr/share/nodejs/mkdirp/index.js:11:10)
>       at Context.<anonymous> (test/write.test.js:28:13)
>       at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:423:21)
>       at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:363:7)
>       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:541:10)
>       at /usr/share/nodejs/mocha/lib/runner.js:667:12
>       at next (/usr/share/nodejs/mocha/lib/runner.js:450:14)
>       at /usr/share/nodejs/mocha/lib/runner.js:460:7
>       at next (/usr/share/nodejs/mocha/lib/runner.js:362:14)
>       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:428:5)
>       at processImmediate (internal/timers.js:461:21)
> 
>   2) Writes
>        Async Writes
>          async write world_merc.prj:
>      TypeError: invalid options argument
>       at optsArg (/usr/share/nodejs/mkdirp/lib/opts-arg.js:13:11)
>       at mkdirp (/usr/share/nodejs/mkdirp/index.js:11:10)
>       at Context.<anonymous> (test/write.test.js:28:13)
>       at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:423:21)
>       at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:363:7)
>       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:541:10)
>       at /usr/share/nodejs/mocha/lib/runner.js:667:12
>       at next (/usr/share/nodejs/mocha/lib/runner.js:450:14)
>       at /usr/share/nodejs/mocha/lib/runner.js:460:7
>       at next (/usr/share/nodejs/mocha/lib/runner.js:362:14)
>       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:428:5)
>       at processImmediate (internal/timers.js:461:21)
> 
>   3) Writes
>        Async Writes
>          async write world_merc.shp:
>      TypeError: invalid options argument
>       at optsArg (/usr/share/nodejs/mkdirp/lib/opts-arg.js:13:11)
>       at mkdirp (/usr/share/nodejs/mkdirp/index.js:11:10)
>       at Context.<anonymous> (test/write.test.js:28:13)
>       at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:423:21)
>       at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:363:7)
>       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:541:10)
>       at /usr/share/nodejs/mocha/lib/runner.js:667:12
>       at next (/usr/share/nodejs/mocha/lib/runner.js:450:14)
>       at /usr/share/nodejs/mocha/lib/runner.js:460:7
>       at next (/usr/share/nodejs/mocha/lib/runner.js:362:14)
>       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:428:5)
>       at processImmediate (internal/timers.js:461:21)
> 
>   4) Writes
>        Async Writes
>          async write world_merc.shx:
>      TypeError: invalid options argument
>       at optsArg (/usr/share/nodejs/mkdirp/lib/opts-arg.js:13:11)
>       at mkdirp (/usr/share/nodejs/mkdirp/index.js:11:10)
>       at Context.<anonymous> (test/write.test.js:28:13)
>       at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:423:21)
>       at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:363:7)
>       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:541:10)
>       at /usr/share/nodejs/mocha/lib/runner.js:667:12
>       at next (/usr/share/nodejs/mocha/lib/runner.js:450:14)
>       at /usr/share/nodejs/mocha/lib/runner.js:460:7
>       at next (/usr/share/nodejs/mocha/lib/runner.js:362:14)
>       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:428:5)
>       at processImmediate (internal/timers.js:461:21)
> 
> 
> 
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 4

The full build log is available from:
   http://qa-logs.debian.net/2020/10/27/node-zipfile_0.5.12+ds-4_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-javascript-devel mailing list