Package Details: betaflight-configurator 10.9.0-1

Git Clone URL: https://aur.archlinux.org/betaflight-configurator.git (read-only, click to copy)
Package Base: betaflight-configurator
Description: Crossplatform configuration tool for the Betaflight flight control system
Upstream URL: https://github.com/betaflight/betaflight-configurator
Licenses: GPL3
Submitter: FryDay
Maintainer: Jake
Last Packager: Jake
Votes: 18
Popularity: 0.052144
First Submitted: 2018-01-24 18:06 (UTC)
Last Updated: 2023-07-23 09:43 (UTC)

Latest Comments

1 2 3 4 Next › Last »

Rivabanks commented on 2023-07-23 13:34 (UTC)

thank you Jake, that fixed it!

Jake commented on 2023-07-23 09:45 (UTC)

Hey Rivabanks and konstantinos.k, I just added a patch that should fix this, it's based on https://github.com/betaflight/betaflight-configurator/pull/3462

konstantinos.k commented on 2023-07-22 22:10 (UTC)

Any info regarding Rivabanks comment? I'm getting the same error and haven't found a solution so far.

Switched to a new branch 'makepkg' ==> Starting prepare()... ==> Starting build()... yarn install v1.22.19 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... error An unexpected error occurred: "https://registry.yarnpkg.com/nw-install/-/nw-install-0.3.4.tgz: Request failed \"404 Not Found\"".

Rivabanks commented on 2023-07-04 14:01 (UTC)

makepkg is failing with the following:

[3/5] Fetching packages... error An unexpected error occurred: "https://registry.yarnpkg.com/nw-install/-/nw-install-0.3.4.tgz: Request failed \"404 Not Found\"".

kleinph commented on 2022-01-12 00:03 (UTC)

Yes it worked. Thank you very much for the really quick fix!

Jake commented on 2022-01-11 22:52 (UTC)

@kleinph: I can reproduce it with latest nodejs v17. In my tests it builds/works fine on node v12-v16 though, so with community/nodejs-lts-erbium up to lts-gallium. But I also checked now why this XML parser is even a dev dependency, turns out it's used for a gulp plugin, that is only relevant to load a config for the Android/Cordova build option. So we are compiling here an native C++ module that is not even used. Also it was not updated since 2019, that explains the incompatibility with current nodejs. Welcome to the wonderful world of node modules...

Long story short: I just removed libxmljs dependency with a patch now, so it can't cause issues anymore. Let me know if it works for you too.

kleinph commented on 2022-01-11 21:00 (UTC)

I cannot build this package. I get a warning that pre-built binaries for lbxmljs could not be downladed and it falls back to compiling. Then I get an error in Make:

error /home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build --loglevel http
Arguments: 
Directory: /home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs
Output:
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v102-linux-x64.tar.gz
node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v102-linux-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v102-linux-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for libxmljs@0.19.7 and node@17.3.0 (node-v102 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v102-linux-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@17.3.0 | linux | x64
gyp info ok 
make: Verzeichnis „/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build“ wird betreten
  CXX(target) Release/obj.target/xmljs/src/libxmljs.o
In Datei, eingebunden von ../src/libxmljs.h:7,
                 von ../src/libxmljs.cc:7:
../../nan/nan.h: In Funktion »void Nan::AsyncQueueWorker(Nan::AsyncWorker*)«:
../../nan/nan.h:2298:7: Warnung: Umwandlung zwischen inkompatiblen Funktionstypen von »void (*)(uv_work_t*)« {aka »void (*)(uv_work_s*)«} nach »uv_after_work_cb« {aka »void (*)(uv_work_s*, int)«} [-Wcast-function-type]
 2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In Datei, eingebunden von ../../nan/nan.h:2884,
                 von ../src/libxmljs.h:7,
                 von ../src/libxmljs.cc:7:
../../nan/nan_typedarray_contents.h: In Konstruktor »Nan::TypedArrayContents<T>::TypedArrayContents(v8::Local<v8::Value>)«:
../../nan/nan_typedarray_contents.h:34:43: Fehler: »class v8::ArrayBuffer« hat kein Element namens »GetContents«
   34 |       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
      |                                           ^~~~~~~~~~~
make: *** [xmljs.target.mk:163: Release/obj.target/xmljs/src/libxmljs.o] Fehler 1
make: Verzeichnis „/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build“ wird verlassen
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 5.15.13-arch1-1
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--loglevel=http" "--module=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release/xmljs.node" "--module_name=xmljs" "--module_path=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v102"
gyp ERR! cwd /home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs
gyp ERR! node -v v17.3.0
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --loglevel=http --module=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1062:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Linux 5.15.13-arch1-1
node-pre-gyp ERR! command "/usr/bin/node" "/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http"
node-pre-gyp ERR! cwd /home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs
node-pre-gyp ERR! node -v v17.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok 
Failed to execute 'node-gyp build --fallback-to-build --loglevel=http --module=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1)

Jake commented on 2020-06-22 17:44 (UTC)

@Svenstaro: It was a thought as temporary workaround, because stable versions usually build from the archives and don't require downloading all the history. But it is somewhat different here and git is anyway a makedepend, so cloning the repo is probably a better solution. I will change it.

svenstaro commented on 2020-06-17 13:56 (UTC)

If you need the git hash, why not just get the actual git hash from upstream by cloning the git repo instead of using the zip? Then you don't need to workaround and also you'll get the proper hash in the binary.

andrej commented on 2020-03-13 23:27 (UTC)

At the moment this can’t be installed due to issues with nwjs-bin.