<div dir="ltr"><div dir="ltr">hi</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 10, 2022 at 6:45 PM Jérémy Lal <<a href="mailto:kapouer@melix.org">kapouer@melix.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 10, 2022 at 11:26 AM Bo YU <<a href="mailto:tsu.yubo@gmail.com" target="_blank">tsu.yubo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 10, 2022 at 4:45 PM Jérémy Lal <<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 10, 2022 at 9:20 AM vimer <<a href="mailto:tsu.yubo@gmail.com" target="_blank">tsu.yubo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
On Thu, Mar 10, 2022 at 09:00:10AM +0100, Jérémy Lal wrote:<br>
> On Thu, Mar 10, 2022 at 8:56 AM Yadd <[1]<a href="mailto:yadd@debian.org" target="_blank">yadd@debian.org</a>> wrote:<br>
><br>
> On 10/03/2022 08:19, vimer wrote:<br>
> > Hi,<br>
> > According to [2]<a href="https://github.com/nodejs/build/issues/2876" rel="noreferrer" target="_blank">https://github.com/nodejs/build/issues/2876</a>, The<br>
> nodejs<br>
> > upstream seems have supported riscv64. I want to help port it to<br>
> Debian<br>
> > riscv<br>
> > if possible.<br>
> ><br>
> > But I want to know workflow about porting.<br>
> ><br>
> > The nodejs released in Debian Bulleye sid is 12.22.9~dfsg-1, But<br>
> nodejs<br>
> > upstream version upon 16 or 17 can support riscv64. So, the<br>
> question is:<br>
> ><br>
> > Need I gpb import nodejs-16 or 17 in current<br>
> > [3]<a href="https://salsa.debian.org/js-team/nodejs.git" rel="noreferrer" target="_blank">https://salsa.debian.org/js-team/nodejs.git</a><br>
> > or gpb import nodejs latest version from upstream?<br>
> Hi,<br>
> don't do that, updating nodejs requires a lot of job and node-16<br>
> requires a newer libicu.<br>
><br>
> Indeed,<br>
> You will want to use nodejs 16 from the master-16.x branch.<br>
> (it is a gbp layout with master-16.x / upstream-16.x/pristine-tar<br>
> branches)<br>
> From that point, i suggest you setup a riscv64 vm and try to<br>
> git-buildpackage node 16 in it.<br>
> You will probably need to use the "build profiles" documented<br>
> in debian/README.source.<br>
> Also later today i'll push latest 16.x upstream release in that branch.<br>
> Feel free to ask more questions.<br>
> Jérémy<br>
Ok, will do. Thanks all,<br>
BR,<br>
vimer<br></blockquote><div><br></div><div>node 16.14.0 is available on master-16.x branch.</div><div>Doing a local build right now.</div><div>The documentation generator prints some errors, nothing to be alarmed of.</div><div>This is the command i'm using for the build:</div><div>sbuild -d experimental '--extra-repository=deb <a href="http://deb.debian.org/debian" target="_blank">http://deb.debian.org/debian</a> experimental main' --build-dep-resolver=aspcud</div></div></div></blockquote><div>I use sbuild to build it in riscv64 vm, but get error:</div><div>sudo sbuild --arch=riscv64 -d sid-riscv64-sbuild<br></div><div>```The following information may help to resolve the situation:</div><br>The following packages have unmet dependencies:<br> sbuild-build-depends-main-dummy : Depends: libicu-dev (>= 70.1~) but 67.1-7 is to be installed<br> Depends: node-acorn (>= 6.2.1~) but it is not going to be installed<br> Depends: pkg-js-tools (>= 0.8.2~) but it is not going to be installed<br> Depends: node-js-yaml (>= 4.1.0+dfsg+~4.0.5-6) but it is not going to be installed<br> Depends: node-marked (>= 4~) but it is not going to be installed<br> Depends: node-highlight.js but it is not going to be installed<br>E: Unable to correct problems, you have held broken packages.<br>apt-get failed.<br>E: Package installation failed<br><div>``` </div><div>This may be a common error on Debian riscv arch. I am thinking that I have to build from a package without node-*dependencies?<br></div><div>Below is my operations step how to build(please point to me wrong as I am newbie to gbp also):</div><div>1. git clone</div><div> git clone git@salsa.debian.org:js-team/nodejs.git</div><div>2. checkout 16.14</div><div> git checkout -b main origin/master-16.x</div><div> git checkout -b upstream origin/upstream-16.x // not need -b</div><div> git checkout -b pristine-tar origin/pristine-tar // not need -b also</div><div> git checkout main</div><div>3. gbp buildpackage --git-pbuilder --git-submodules --git-upstream-branch='upstream/16.14' --git-debian-branch=main --git-no-pristine-tar --git-upstream-tree=tag --git-ignore-new -sa // the step to generate *.orig.tar.gz file. But I do not have the base directory /var/cache/pbuilder/base.cow and it fail at last(*.orig.tzr.gz has been generated)</div></div></div></blockquote><div><br></div><div>You can do it a bit simpler because of the debian/gbp.conf file, so no need to rename any branch at all.</div><div>git checkout master-16.x</div><div>gbp buildpackage --git-pbuilder --git-ignore-new -sa<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>4. execute ` sudo sbuild --arch=riscv64 -d sid-riscv64-sbuild ` and got above errors. </div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Just as I am editing the email, Suddenly IT occurred to me, maybe the distribution sid should be experimental, right?</div></div></div></blockquote><div><br></div><div>yes, as i wrote above, those flags will need to be set (i don't know if gbp pass them along to pbuilder correctly, but that's the idea):</div><div>-d experimental '--extra-repository=deb <a href="http://deb.debian.org/debian" target="_blank">http://deb.debian.org/debian</a> experimental main' --build-dep-resolver=aspcud</div><div><br></div><div>Also you really will want to use the DEB_BUILD_PROFILES="nodoc nocheck nobuiltin"</div><div><br></div></div></div></blockquote><div>I build it(last 17+ h) with your help.</div>vimer@debian-local:~/build_test/nodejs/nodejs$ ls ../<br>libnode93_16.14.0~dfsg-1_riscv64.deb nodejs_16.14.0~dfsg-1_riscv64.buildinfo<br>libnode93-dbgsym_16.14.0~dfsg-1_riscv64.deb nodejs_16.14.0~dfsg-1_riscv64.changes<br>libnode-dev_16.14.0~dfsg-1_riscv64.deb nodejs_16.14.0~dfsg-1_riscv64.deb<br>master-16.x nodejs-16.14.0~dfsg.obsolete.1646911112.6398954<br>nodejs nodejs-16.14.0~dfsg.obsolete.1646911132.04706<br>nodejs-16.14.0~dfsg nodejs_16.14.0~dfsg.orig-node-acorn.tar.xz<br>nodejs_16.14.0~dfsg-1_amd64.build nodejs_16.14.0~dfsg.orig.tar.xz<br>nodejs_16.14.0~dfsg-1.debian.tar.xz nodejs_16.14.0~dfsg.orig-types-node.tar.xz<br>nodejs_16.14.0~dfsg-1.dsc nodejs-dbgsym_16.14.0~dfsg-1_riscv64.deb<br>nodejs_16.14.0~dfsg-1_riscv64.build nodejs-doc_16.14.0~dfsg-1_all.deb<br><div> But there are mirror error :</div><div>···</div><div>dwz: debian/libnode93/usr/lib/riscv64-linux-gnu/libnode.so.93: Too many DIEs, not optimizing<br>dh_dwz: error: dwz --max-die-limit 100000000 -- debian/libnode93/usr/lib/riscv64-linux-gnu/libnode.so.93 returned exit code 1<br>dh_dwz: error: Aborting due to earlier error<br>make[1]: [debian/rules:291: override_dh_dwz] Error 25 (ignored)<br>make[1]: Leaving directory '/<<PKGBUILDDIR>>'</div><div>···</div><div>Can we enable support riscv64 arch cross-build based on 16.14?</div><div>BR,</div><div>vimer</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div>Jérémy</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>