SibrenVasse/deezer

Error building in archlinux

Closed this issue · 4 comments

Hi, i have a issue, do you have any idea where it could come from?
On Archlinux with i3 :

> git clone https://github.com/SibrenVasse/deezer
> cd deezer
> makepkg -si
==> Making package: deezer 5.30.280-1 (Mon 04 Jul 2022 05:50:10 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading deezer-5.30.280-setup.exe...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 72.5M  100 72.5M    0     0  71.6M      0  0:00:01  0:00:01 --:--:--  113M
  -> Found deezer.desktop
  -> Found deezer
  -> Found remove-kernel-version-from-user-agent.patch
  -> Found avoid-change-default-texthtml-mime-type.patch
  -> Found fix-isDev-usage.patch
  -> Found start-hidden-in-tray.patch
  -> Found quit.patch
==> Validating source files with sha256sums...
    deezer-5.30.280-setup.exe ... Passed
    deezer.desktop ... Passed
    deezer ... Passed
    remove-kernel-version-from-user-agent.patch ... Passed
    avoid-change-default-texthtml-mime-type.patch ... Passed
    fix-isDev-usage.patch ... Passed
    start-hidden-in-tray.patch ... Passed
    quit.patch ... Passed
==> Extracting sources...
  -> Extracting deezer-5.30.280-setup.exe with bsdtar
==> Starting prepare()...
build/main.js 441ms
build/preload.js 79ms
build/renderer.js 42ms
build/service-worker.js 2ms
build/titlebar.js 22ms
Applying patch remove-kernel-version-from-user-agent.patch...
patching file build/main.js
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file build/main.js.rej
patching file build/preload.js
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file build/preload.js.rej
patching file build/renderer.js
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file build/renderer.js.rej
patching file build/titlebar.js
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file build/titlebar.js.rej
==> ERROR: A failure occurred in prepare().
    Aborting...

I am unable to reproduce your build error on both my Archlinux box and the Github action.
Is your Archlinux system up-to-date? If not: what version of 'prettier' do you have installed?
Is the build directory clean with no modifications?

My Arch is up to date, and i have the same error with makepkg -C

> prettier -v
2.7.1

Can you upload the files:

src/resources/app/build/main.js
src/resources/app/build/main.js.rej

Closing due to inactivity. Please reopen if you still have this issue.