Bug 261581 - multimedia/navidrome: sh: react-scripts: not found
Summary: multimedia/navidrome: sh: react-scripts: not found
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kevin Bowling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-30 21:43 UTC by Dan Kotowski
Modified: 2024-01-18 21:29 UTC (History)
7 users (show)

See Also:
kbowling: maintainer-feedback-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Kotowski 2022-01-30 21:43:00 UTC
Probably should just update to the latest tag `v0.47.5`
Comment 1 kaltheat 2022-02-11 09:45:52 UTC
Hi,

I had a look at this port and it's not that simple to me. As far as I understand, navidrome consists of (at least) two components (the core and the UI). The core can be compiled using go-stuff (and it seemed to work for me with an adapted Makefile for version 0.47.5). But I stuck with the UI, which is a node-application. The problem there is that it should be build with npm, but needs several node-packages for that. Normally, they will be downloaded by npm, but in the FreeBSD ports system and with poudriere, npm seems not to have access to internet. So the port-maintainer made a workaround: he put the needed npm-packages in a seperate archive (npm-cache) that can be downloaded during port building and put npm in offline mode. My problem is, that I don't understand how to create this npm-cache-file. Can someone (preferable the maintainer) provide a documentation for this approach?

Kind regards,
kaltheat
Comment 2 kaltheat 2022-03-10 10:01:15 UTC
Any news?

I mailed Mr. Morante at the beginning of March and sadly got no response. Even "no time" would be a better response than nothing ...
Comment 4 Mikael Urankar freebsd_committer freebsd_triage 2022-04-01 11:06:59 UTC
There is a target to create the npm cache:
make make-npm-cache
Comment 5 Daniel Morante 2022-05-17 05:46:23 UTC
The issue here is that the default version of NodeJS changed and therefor the build cache is no longer valid.  I will try to find some time in the next few days to fix/upate the port.
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-07-17 20:24:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=36a789c6fc4fa0257005f21d08d8b2f9bbee27ba

commit 36a789c6fc4fa0257005f21d08d8b2f9bbee27ba
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-07-17 20:17:58 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-07-17 20:23:43 +0000

    multimedia/navidrome: Mark BROKEN

    > navidrome-ui@0.1.0 build
    > react-scripts build

    /tmp/build658888734.sh: react-scripts: not found
    *** Error code 127

    PR:             261581
    Reported by:    fallout

 multimedia/navidrome/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 7 commit-hook freebsd_committer freebsd_triage 2022-07-17 20:27:13 UTC
A commit in branch 2022Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d348a1465538c60a4f77a3c9def586743d5703fe

commit d348a1465538c60a4f77a3c9def586743d5703fe
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-07-17 20:17:58 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-07-17 20:25:19 +0000

    multimedia/navidrome: Mark BROKEN

    > navidrome-ui@0.1.0 build
    > react-scripts build

    /tmp/build658888734.sh: react-scripts: not found
    *** Error code 127

    PR:             261581
    Reported by:    fallout

    (cherry picked from commit 36a789c6fc4fa0257005f21d08d8b2f9bbee27ba)

 multimedia/navidrome/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 8 kaltheat 2022-11-03 09:45:47 UTC
Any news on this?
Comment 9 commit-hook freebsd_committer freebsd_triage 2024-01-18 21:28:22 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c5c60df1e8868a1622f49a71bb817ca2db049dd

commit 2c5c60df1e8868a1622f49a71bb817ca2db049dd
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-01-18 21:26:19 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-01-18 21:28:08 +0000

    multimedia/navidrome: Update to 0.50.2.

    Take port due to pending expiry.

    PR:             261581

 multimedia/navidrome/Makefile | 310 ++++++++++----------------
 multimedia/navidrome/distinfo | 490 ++++++++++++++++--------------------------
 2 files changed, 302 insertions(+), 498 deletions(-)