vixalien / muzika

Elegant music streaming app
GNU General Public License v3.0
238 stars 14 forks source link

Arch Linux package issue #171

Closed nebulosa2007 closed 3 weeks ago

nebulosa2007 commented 3 weeks ago

I'm trying to write PKGBUILD for mizuka-git, but I can't package the already compiled files into a package, the command in PKGBUILD - meson install -C build --destdir "$pkgdir" gets an error:

ninja: Entering directory `/build/muzika-git/src/build'
[1/3] Generating src/yarn-deps with a custom command
FAILED: src/node_modules 
/usr/bin/yarn --cwd /build/muzika-git/src/muzika install
Error: EACCES: permission denied, open '/root/.config/yarn'
    at Object.openSync (node:fs:573:18)
    at readFileSync (node:fs:452:35)
    at /usr/lib/node_modules/yarn/lib/util/rc.js:89:58
    at Array.map (<anonymous>)
    at parseRcPaths (/usr/lib/node_modules/yarn/lib/util/rc.js:87:37)
    at Object.findRc (/usr/lib/node_modules/yarn/lib/util/rc.js:101:10)
    at getRcConfigForCwd (/usr/lib/node_modules/yarn/lib/rc.js:54:47)
    at Object.<anonymous> (/usr/lib/node_modules/yarn/lib/cli/index.js:569:58)
    at Generator.next (<anonymous>)
    at step (/usr/lib/node_modules/yarn/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
ninja: build stopped: subcommand failed.
Could not rebuild /build/muzika-git/src/build

How I can fix it?

vixalien commented 3 weeks ago

sorry, I don't use arch linux anymore. let me disown the package and you can probably be the new maintainer if you end up fixing the issue.

nebulosa2007 commented 3 weeks ago

My point is not in Arch Linux but in command meson install -C build --destdir "$pkgdir" only. It doesn't matter what distributive are you using: Fedora, Arch or whatever.

The yarn somehow trying get /root/.config/yarn file, which does not exist.

I could be maintainer for your app in AUR (package not exists for now), but need a little help with issue.

I already tried to set yarnrc- It works, but got another error - empty yarn file

vixalien commented 3 weeks ago

Your original error means that you're trying to run yarn as root (which is why it's looking for the config in /root). Did you try running yarn as a non-root user?