[Pkg-javascript-devel] RFC: javascript bundle of small packages

Xavier yadd at debian.org
Tue Oct 30 21:57:45 GMT 2018


Le 30/10/2018 à 11:14, Xavier a écrit :
> Le 30/10/2018 à 10:51, Bastien ROUCARIES a écrit :
>> Hi,
>>
>> I have just pushed a new version of acorn and associated small package
>> to salsa (https://salsa.debian.org/js-team/acorn)
>>
>> It group small package using dpkg module and for now fakeupstream redirector.
>>
>> We plan to modify uscan (yadd?) in order to get this feature upstream.
>>
>> We also plan to improve debhelper in order to get the version parsing
>> of control automatic, and to ease build.
>>
>> But we believe it is a first step in the good direction.
>>
>> Dear ftpmaster could you review before I upload to experimental,
>> particularly breaks/replace line.
>>
>> Package that bundle a few package will be called node-debbundle-foo. I
>> plan to update policy
>>
>> Bastien
> 
> Cc: devscripts at packages.debian.org
> 
> It's now ~easy to modify uscan to do this. We must fix some policy points:
>  - a grouped package version is the join of component versions separate
>    by "+~"
> 
> If this way suits you, debian/watch file will look like this:
> 
> version=4
> 
> # Main component
> http://website /regexp/ group
> # optional pgp check
> opts=pgpmode=previous,.. \
>  http://website /regexpSig/
> 
> # 2nd component
> opts=component=node-foo \
>  http://website2 /regexp/ group
> # optional pgp check
> opts=pgpmode=previous,.. \
>  http://website /regexpSig/
> 
> # and so on
> 
> "group" replaces "debian"+"same". uscan calculates new version looking
> at all "group" lines

I wrote this feature (doc to do). Works fine:

 * Modified uscan:
   https://salsa.debian.org/yadd/devscripts/commits/uscan-899073
 * Test with node-mongodb:
   https://salsa.debian.org/js-team/node-mongodb/tree/test-uscan

node-mongodb debian/watch:
version=4

opts="searchmode=plain,pgpmode=none" \
 https://registry.npmjs.org/mongodb
https://registry.npmjs.org/mongodb/-/mongodb-(\d[\d\.]*)@ARCHIVE_EXT@ group

opts="searchmode=plain,pgpmode=none,component=bson" \
 https://registry.npmjs.org/bson
https://registry.npmjs.org/bson/-/bson-(\d[\d\.]*)@ARCHIVE_EXT@ group

opts="searchmode=plain,pgpmode=none,component=mongodb-core" \
 https://registry.npmjs.org/mongodb-core
https://registry.npmjs.org/mongodb-core/-/mongodb-core-(\d[\d\.]*)@ARCHIVE_EXT@
group

opts="searchmode=plain,pgpmode=none,component=requireoptional" \
 https://registry.npmjs.org/require_optional
https://registry.npmjs.org/require_optional/-/require_optional-(\d[\d\.]*)@ARCHIVE_EXT@
group



More information about the Pkg-javascript-devel mailing list