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) ✆ +54 9351 3513384 GPG: B2F3C15F
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@lists.koha-community.org> On Behalf Of Tomas Cohen Arazi Sent: Wednesday, 26 April 2023 11:25 PM To: koha-devel <koha-devel@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
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/bfdbbd326e9e1e59fb... [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... [2/4] Fetching packages... <https://github.com/bywatersolutions/bywater-koha-future/actions/runs/4688302412/jobs/8398838574#step:7:4400> error An unexpected error occurred: " https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz: getaddrinfo EAI_AGAIN registry.yarnpkg.com registry.yarnpkg.com:443". El mié, 26 abr 2023 a las 20:08, David Cook (<dcook@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@lists.koha-community.org> *On Behalf Of *Tomas Cohen Arazi *Sent:* Wednesday, 26 April 2023 11:25 PM *To:* koha-devel <koha-devel@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) ✆ +54 9351 3513384 GPG: B2F3C15F
-- Tomás Cohen Arazi Theke Solutions (http://theke.io) ✆ +54 9351 3513384 GPG: B2F3C15F
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@gmail.com> Sent: Thursday, 27 April 2023 9:19 AM To: David Cook <dcook@prosentient.com.au> Cc: koha-devel <koha-devel@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/bfdbbd326e9e1e59fb... [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@prosentient.com.au <mailto:dcook@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@lists.koha-community.org <mailto:koha-devel-bounces@lists.koha-community.org> > On Behalf Of Tomas Cohen Arazi Sent: Wednesday, 26 April 2023 11:25 PM To: koha-devel <koha-devel@lists.koha-community.org <mailto:koha-devel@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
On 27/04/23 11:18 am, Tomas Cohen Arazi wrote:
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/bfdbbd326e9e1e59fb... <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.
hi, the following patch should fix this error https://gitlab.com/koha-community/koha-dpkg-docker/-/merge_requests/7
Thanks Mason! It looks like you were working from an out of date version of koha-dpkg-docker. Luckily I was working on a similar solution! Kyle --- http://www.kylehall.info ByWater Solutions ( http://bywatersolutions.com ) Meadville Public Library ( http://www.meadvillelibrary.org ) Crawford County Federated Library System ( http://www.ccfls.org ) On Thu, Apr 27, 2023 at 9:14 AM Mason James <mtj@kohaaloha.com> wrote:
On 27/04/23 11:18 am, Tomas Cohen Arazi wrote:
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/bfdbbd326e9e1e59fb... < https://gitlab.com/koha-community/koha-dpkg-docker/-/blob/bfdbbd326e9e1e59fb...
[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.
hi, the following patch should fix this error
https://gitlab.com/koha-community/koha-dpkg-docker/-/merge_requests/7
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/
the other required patch is here... https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33629 which saves poeple from having to use the following system-wide fix echo "USENETWORK=yes" >> /etc/pbuilderrc On 28/04/23 1:45 am, Kyle Hall wrote:
Thanks Mason! It looks like you were working from an out of date version of koha-dpkg-docker. Luckily I was working on a similar solution!
Kyle --- http://www.kylehall.info <http://www.kylehall.info> ByWater Solutions ( http://bywatersolutions.com <http://bywatersolutions.com> ) Meadville Public Library ( http://www.meadvillelibrary.org <http://www.meadvillelibrary.org> ) Crawford County Federated Library System ( http://www.ccfls.org <http://www.ccfls.org> )
On Thu, Apr 27, 2023 at 9:14 AM Mason James <mtj@kohaaloha.com <mailto:mtj@kohaaloha.com>> wrote:
On 27/04/23 11:18 am, Tomas Cohen Arazi wrote: > 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/bfdbbd326e9e1e59fb... <https://gitlab.com/koha-community/koha-dpkg-docker/-/blob/bfdbbd326e9e1e59fb903953205c8fe122f596d4/pbuilder.sh#L47> <https://gitlab.com/koha-community/koha-dpkg-docker/-/blob/bfdbbd326e9e1e59fb... <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.
hi, the following patch should fix this error
https://gitlab.com/koha-community/koha-dpkg-docker/-/merge_requests/7 <https://gitlab.com/koha-community/koha-dpkg-docker/-/merge_requests/7>
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org <mailto:Koha-devel@lists.koha-community.org> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel <https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel> website : https://www.koha-community.org/ <https://www.koha-community.org/> git : https://git.koha-community.org/ <https://git.koha-community.org/> bugs : https://bugs.koha-community.org/ <https://bugs.koha-community.org/>
participants (4)
-
David Cook -
Kyle Hall -
Mason James -
Tomas Cohen Arazi