joaohf commented on issue #4448: URL: https://github.com/apache/couchdb/issues/4448#issuecomment-2024182609
Hi, The patch for src/couch_quickjs/rebar.config.script is really handy. And I think it makes sense. Most of Yocto Project work is related to fix cross compile build scripts, like the quickjs/Makefile. Sometimes the upstream is not perfect and some patches are needed. Just some yocto related details: But, for the couchdb and yocto scenario I had to use a different strategy which was to compile a native quickjs binary using the following recipe https://github.com/meta-erlang/meta-erlang/blob/e1c631d2af795f989f5dca770d8703d923950d93/recipes-extended/quickjs/quickjs_git.bb. Because when I build couchdb, it is a cross compilation for example to ARM and without the quickjs native recipe, I could not run quickjs if it was build by couchdb. That is why I had also to patch the build_js.escript in order to remove the hardcoded quickjs path. In yocto build the quickjs will be available in PATH for couchdb build. I think the build_js.escript is very yocto specific :) I'll keep you informed as soon I finish my tests. Thanks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
