[Koha-devel] Bug 32609 and package building

David Cook dcook at prosentient.com.au
Thu Apr 27 01:36:58 CEST 2023


I don’t use pbuilder to build Debian packages but Mason does. Have you talked to him about it?

 

Are you sure that it’s a yarn/nodejs bug and not a pbuilder configuration issue?

 

It seems like not having network access when building with pbuilder is the norm:

https://github.com/spotify/dh-virtualenv/issues/77

https://manpages.ubuntu.com/manpages/bionic/man5/pbuilderrc.5.html

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823408

 

Alternatively, perhaps a yarn cache could be embedded in the basetgz if we don’t want to have network access in pbuilder. 

 

David Cook

Senior Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

From: Tomas Cohen Arazi <tomascohen at gmail.com> 
Sent: Thursday, 27 April 2023 9:19 AM
To: David Cook <dcook at prosentient.com.au>
Cc: koha-devel <koha-devel at lists.koha-community.org>
Subject: Re: [Koha-devel] Bug 32609 and package building

 

The original implementation installed yarn inside the pdebuilder image [1]. But THERE'S a yarn/nodejs BUG [2] that prevents it from detecting networking is available and thus cannot be run.

 

Looking forward for enhancing pull requests :-D

 

[1] https://gitlab.com/koha-community/koha-dpkg-docker/-/blob/bfdbbd326e9e1e59fb903953205c8fe122f596d4/pbuilder.sh#L47

[2] The error we got:

 

"/usr/bin/perl" build-resources.PL 


yarn install v1.22.19 


warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries. 


warning Skipping preferred cache folder "/nonexistent/.cache/yarn" because it is not writable.

warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1234".

[1/4] Resolving packages... 

 <https://github.com/bywatersolutions/bywater-koha-future/actions/runs/4688302412/jobs/8398838574#step:7:4400> [2/4] Fetching packages...

error An unexpected error occurred: "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz: getaddrinfo EAI_AGAIN registry.yarnpkg.com <http://registry.yarnpkg.com>  registry.yarnpkg.com:443 <http://registry.yarnpkg.com:443> ". 

 

 

 

El mié, 26 abr 2023 a las 20:08, David Cook (<dcook at prosentient.com.au <mailto:dcook at prosentient.com.au> >) escribió:

This looks like a weird hack to me. When the package is built, build-resources.PL should be invoked via the Makefile.

 

What’s the problem that’s leading to this workaround?

 

David Cook

Senior Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

From: Koha-devel <koha-devel-bounces at lists.koha-community.org <mailto:koha-devel-bounces at lists.koha-community.org> > On Behalf Of Tomas Cohen Arazi
Sent: Wednesday, 26 April 2023 11:25 PM
To: koha-devel <koha-devel at lists.koha-community.org <mailto:koha-devel at lists.koha-community.org> >
Subject: [Koha-devel] Bug 32609 and package building

 

There's a conversation going on on the bug, about how that change made the build process a bit more complicated (i.e. more steps).


 

Kyle and I have been working on this:

 

https://gitlab.com/koha-community/koha-dpkg-docker#usage

 

which is a simple way to build packages, and considers that required step.

 

Hope it helps.

 

-- 

Tomás Cohen Arazi

Theke Solutions (http://theke.io <http://theke.io/> )
✆ +54 9351 3513384
GPG: B2F3C15F




 

-- 

Tomás Cohen Arazi

Theke Solutions (http://theke.io <http://theke.io/> )
✆ +54 9351 3513384
GPG: B2F3C15F

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20230427/ebe5e067/attachment-0001.htm>


More information about the Koha-devel mailing list