[Koha-bugs] [Bug 32609] Remove compiled files from src

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 1 23:50:13 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32609

--- Comment #43 from David Cook <dcook at prosentient.com.au> ---
(In reply to Martin Renvoize from comment #41)
> I had to sort out all sorts of dependencies to get the 'perl Makefile.PL'
> step happy.. then upon running 'make' it complained about yarn not being
> found.. so I installed yarn but then it complained with
> yarn: error: no such option: --frozen-lockfile
> 
> So I tried replacing --frozen-lockfile with --immutable and that complained
> too.

Which kind of dependencies did you need to sort out? Was it stuff like
"build-essential gcc gettext" or something else? 

Which OS and OS version were you using? Was this in or outside of Docker?

Which version of yarn were you using? Was it Yarn v1, v2, or v3? What was the
--immutable complaint? 

It looks like Debian/Ubuntu provide Yarn 1.x, and npm looks like it uses 1.x
(although it provides 2.x too). 

> In short.. I can run `build-resources.PL` perfectly from inside ktd.. though
> of course in that case we don't need the `yarn install` step at all as we
> have our our node_modules all there and waiting for us.. but trying to run
> it outside of ktd we end up stuck in dependancies hell.

I needed the `yarn install` in my ktd as I didn't have node_modules already
there. After a bit of reading, it sounds like running some type of `yarn
install` invocation is a common step (although I suppose we could debate about
when to run it).

I used to run Koha in OpenSuse and getting the dependencies right was always a
pain, which is why we switched over to Debian/Ubuntu (and ktd for dev/test). 

> I'm not sure where that leaves us.. we're not really actually expecting
> people to be running dev installs now.. and we don't really document it
> anywhere anymore as far as I can see on googling..  So maybe this is OK as I
> believe this should all work for packaging as it stands.
> 
> We need Mason to weight in really.

Yeah, it would be good to hear from Mason. Perhaps I should have a go with my
local package building as well and see if I bump into any gotchas...

Both single and dev installs are a bit fraught because of dependencies (which
is a big reason I stopped doing them heh). Overall, I don't think the community
directly supports anything except Debian package installs on Debian/Ubuntu,
although we could always document better.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list