<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-04-26 13:40 GMT+02:00 Paolo Greppi <span dir="ltr"><<a href="mailto:paolo.greppi@libpf.com" target="_blank">paolo.greppi@libpf.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">Il 23/04/2018 14:16, Jérémy Lal ha scritto:<br>
> After years of hesitation... i started to experiment bundling node modules as components,<br>
> thanks to the experiment led by pkg-components.<br>
> <br>
> I just uploaded to experimental node-tar-4.4.1+ds-2, please look into it if you're interested.<br>
> Some docs are written in changelog and README.source.<br>
> <br>
> I call here "solitary modules" a subset of modules that are mostly only used by a single software,<br>
> and have all the same author, more or less, up to the point their distribution as independent modules is not interesting for debian.<br>
> <br>
> (Caveats: not pristine-tar friendly. The git-buildpackage layout is useless in that situation).<br>
> <br>
> Jérémy.<br>
<br>
</div></div>Hi I am trying to see if this technique can be applied to node-gulp-sourcemaps, which I need to update to v2.6.4.<br>
It requires @gulp-sourcemaps/map-sources and @gulp-sourcemaps/identity-map which clearly match the description of solitary modules.<br>
<br>
Trying to grasp what you did, I found this useful piece of documentation:<br>
<a href="https://lists.debian.org/debian-devel/2010/09/msg00208.html" rel="noreferrer" target="_blank">https://lists.debian.org/<wbr>debian-devel/2010/09/msg00208.<wbr>html</a><br>
but I am not sure that it is up to date.<br>
<br>
A few questions for you:<br>
<br>
- I see your patch to pkg-components has been merged in 0.10 which is accepted in unstable since 2018-04-23 so you could depend on pkg-component (>= 0.10) ?<br></blockquote><div><br></div><div>indeed i knew i cut some corners hence the experimental thing. Fixed in vcs.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
- Is repeating the names of the components in debian/rules, autopkgtest target unavoidable ?<br></blockquote><div><br></div><div>If you look closer at node-tar, you'll see it's not the case at all.</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
- I run dpkg-buildpackage and it bails out with:<br></blockquote><div><br></div><div>Read again debian/README.source:</div><div><div>1. debcheckout <package></div><div>2. uscan-components</div></div><div><br></div><div>Of course, this implies</div><div>cd ../node-tar-4.4.1/</div><div>dpkg-buildpackage</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
make[2]: Entering directory '/root/node-tar'<br>
mkdir -p COMPONENTS<br>
make[2]: *** No rule to make target 'chownr', needed by 'COMPONENTS/chownr'. Stop.<br>
make[2]: Leaving directory '/root/node-tar'<br>
dh_components: CURDIR=/root/node-tar PACKAGE=node-tar DH_COMPONENT=chownr /usr/share/pkg-components/<wbr>build_stages/copy returned exit code 2<br>
make[1]: *** [debian/rules:11: override_dh_install] Error 2<br>
make[1]: Leaving directory '/root/node-tar'<br>
make: *** [debian/rules:8: binary] Error 2<br>
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2<br>
<br>
what did I do wrong ?<br>
<br>
- could this technique be integrated in npm2deb (<a href="https://github.com/LeoIannacone/npm2deb/issues/15" rel="noreferrer" target="_blank">https://github.com/<wbr>LeoIannacone/npm2deb/issues/15</a><wbr>) ?<br></blockquote><div><br></div><div>Not sure it is easy to streamline, anyway i added a link there.</div><div><br></div><div>Thank you for your intererest.</div><div></div></div><br></div><div class="gmail_extra">Jérémy</div></div>