From 093c1ac7da737897deae3fbfb200406b6b64f197 Mon Sep 17 00:00:00 2001 From: zhouganqing Date: Wed, 15 Feb 2023 10:59:56 +0800 Subject: [PATCH] Import Debian changes 3.1.6+~cs8.7.18-ok1 node-minipass (3.1.6+~cs8.7.18-ok1) yangtze; urgency=medium * Build for openKylin. --- debian/changelog | 5 ++ debian/control | 31 ++++++++ debian/copyright | 72 +++++++++++++++++++ debian/docs | 1 + debian/gbp.conf | 4 ++ debian/nodejs/minipass-flush/test | 1 + debian/nodejs/minipass-sized/test | 1 + debian/nodejs/minizlib/test | 1 + debian/nodejs/root_modules | 1 + debian/patches/series | 1 + .../skip-test-that-require-tap-14.patch | 30 ++++++++ debian/rules | 8 +++ debian/source/format | 1 + debian/source/lintian-overrides | 7 ++ debian/tests/pkg-js/test | 1 + debian/watch | 49 +++++++++++++ 16 files changed, 214 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/gbp.conf create mode 100644 debian/nodejs/minipass-flush/test create mode 100644 debian/nodejs/minipass-sized/test create mode 100644 debian/nodejs/minizlib/test create mode 100644 debian/nodejs/root_modules create mode 100644 debian/patches/series create mode 100644 debian/patches/skip-test-that-require-tap-14.patch create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 debian/tests/pkg-js/test create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0b5bf3f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +node-minipass (3.1.6+~cs8.7.18-ok1) yangtze; urgency=medium + + * Build for openKylin. + + -- zhouganqing Wed, 15 Feb 2023 10:59:56 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a1fc2e7 --- /dev/null +++ b/debian/control @@ -0,0 +1,31 @@ +Source: node-minipass +Section: javascript +Priority: optional +Maintainer: OpenKylin Developers +Testsuite: autopkgtest-pkg-nodejs +Build-Depends: + debhelper-compat (= 13) + , dh-sequence-nodejs + , node-encoding + , node-end-of-stream + , node-jsonparse + , node-yallist (>= 4.0.0) + , node-tap + , node-through2 +Standards-Version: 4.6.0 +Homepage: https://github.com/isaacs/minipass#readme +Vcs-Git: https://gitee.com/openkylin/node-minipass.git +Vcs-Browser: https://gitee.com/openkylin/node-minipass +Rules-Requires-Root: no + +Package: node-minipass +Architecture: all +Depends: + ${misc:Depends} + , node-encoding + , node-jsonparse + , node-yallist (>= 4.0.0) +Provides: ${nodejs:Provides} +Description: Minimal implementation of a PassThrough for Node.js + minipass supports pipe/multi-pipe buffering data until either a "data" + event handler or "pipe()" is added (so firsk chunk not loose). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..21500fe --- /dev/null +++ b/debian/copyright @@ -0,0 +1,72 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: minipass +Upstream-Contact: https://github.com/isaacs/minipass/issues +Source: https://github.com/isaacs/minipass#readme + https://github.com/isaacs/minipass-flush/tags + https://registry.npmjs.org/minipass-collect + https://registry.npmjs.org/minipass-pipeline + https://registry.npmjs.org/minipass-json-stream + https://github.com/isaacs/minipass-sized/tags + https://github.com/npm/minipass-fetch/tags + https://github.com/isaacs/minizlib/tags +Files-Excluded-minizlib: npm-* + +Files: * +Copyright: npm, Inc. and Contributors +License: ISC + +Files: debian/* +Copyright: 2021-2022, Yadd +License: ISC + +Files: minipass-*/* +Copyright: Isaac Z. Schlueter and Contributors +License: ISC + +Files: minipass-fetch/* +Copyright: Isaac Z. Schlueter and Contributors + 2016 David Frank +License: Expat + +Files: minipass-json-stream/* +Copyright: Isaac Z. Schlueter and Contributors + 2011 Dominic Tarr +License: Expat + +Files: minizlib/* +Copyright: Isaac Z. Schlueter and Contributors + Node.js contributors + Joyent, Inc. and other Node contributors +License: Expat + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +License: ISC + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + . + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..c8e133f --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +pristine-tar=True +filter=[ '.gitignore', '.travis.yml', '.git*' ] +component=['minipass-flush', 'minipass-collect', 'minipass-fetch', 'minipass-json-stream', 'minipass-pipeline', 'minipass-sized', 'minizlib'] diff --git a/debian/nodejs/minipass-flush/test b/debian/nodejs/minipass-flush/test new file mode 100644 index 0000000..43eb18b --- /dev/null +++ b/debian/nodejs/minipass-flush/test @@ -0,0 +1 @@ +tap -J test diff --git a/debian/nodejs/minipass-sized/test b/debian/nodejs/minipass-sized/test new file mode 100644 index 0000000..43eb18b --- /dev/null +++ b/debian/nodejs/minipass-sized/test @@ -0,0 +1 @@ +tap -J test diff --git a/debian/nodejs/minizlib/test b/debian/nodejs/minizlib/test new file mode 100644 index 0000000..43eb18b --- /dev/null +++ b/debian/nodejs/minizlib/test @@ -0,0 +1 @@ +tap -J test diff --git a/debian/nodejs/root_modules b/debian/nodejs/root_modules new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/debian/nodejs/root_modules @@ -0,0 +1 @@ +* diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ba56769 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +skip-test-that-require-tap-14.patch diff --git a/debian/patches/skip-test-that-require-tap-14.patch b/debian/patches/skip-test-that-require-tap-14.patch new file mode 100644 index 0000000..4cb76ee --- /dev/null +++ b/debian/patches/skip-test-that-require-tap-14.patch @@ -0,0 +1,30 @@ +Description: this subtest requires tap ≥ 14 +Author: Yadd +Forwarded: not-needed +Last-Update: 2021-08-18 + +--- a/test/collect.js ++++ b/test/collect.js +@@ -2,22 +2,6 @@ + const t = require('tap') + const MP = require('../index.js') + +-t.test('basic', async t => { +- const mp = new MP() +- let i = 5 +- const interval = setInterval(() => { +- if (i --> 0) +- mp.write('foo\n') +- else { +- clearInterval(interval) +- mp.end() +- } +- }) +- mp.setEncoding('utf8') +- const all = await mp.collect() +- t.same(all, ['foo\n','foo\n','foo\n','foo\n','foo\n']) +-}) +- + t.test('error', async t => { + const mp = new MP() + const poop = new Error('poop') diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..218df65 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..a48bc5a --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,7 @@ +# Matches minipass-*/* +add-component-copyright minipass-collect * +add-component-copyright minipass-flush * +add-component-copyright minipass-pipeline * +add-component-copyright minipass-sized * +# Test data +very-long-line-length-in-source-file minizlib/test/fixtures* diff --git a/debian/tests/pkg-js/test b/debian/tests/pkg-js/test new file mode 100644 index 0000000..43eb18b --- /dev/null +++ b/debian/tests/pkg-js/test @@ -0,0 +1 @@ +tap -J test diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..0cdb492 --- /dev/null +++ b/debian/watch @@ -0,0 +1,49 @@ +version=4 +opts=\ +dversionmangle=auto,\ +repacksuffix=+ds,\ +filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-minipass-$1/ \ + https://github.com/isaacs/minipass/tags .*/archive.*/v?([\d\.]+).tar.gz group + +# It is not recommended use npmregistry. Please investigate more. +# Take a look at https://wiki.debian.org/debian/watch/ +opts="searchmode=plain,component=minipass-collect,ctype=nodejs,pgpmode=none" \ + https://registry.npmjs.org/minipass-collect https://registry.npmjs.org/minipass-collect/-/minipass-collect-([\d\.]+)@ARCHIVE_EXT@ checksum + +opts=\ +component=minipass-fetch,\ +ctype=nodejs,\ +dversionmangle=auto,\ +filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-minipass-fetch-$1/ \ + https://github.com/npm/minipass-fetch/tags .*/archive.*/v?([\d\.]+).tar.gz checksum + +opts=\ +component=minipass-flush,\ +ctype=nodejs,\ +dversionmangle=auto,\ +filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-minipass-flush-$1/ \ + https://github.com/isaacs/minipass-flush/tags .*/archive.*/v?([\d\.]+).tar.gz checksum + +# It is not recommended use npmregistry. Please investigate more. +# Take a look at https://wiki.debian.org/debian/watch/ +opts="searchmode=plain,component=minipass-json-stream,ctype=nodejs,pgpmode=none" \ + https://registry.npmjs.org/minipass-json-stream https://registry.npmjs.org/minipass-json-stream/-/minipass-json-stream-([\d\.]+)@ARCHIVE_EXT@ checksum + +# It is not recommended use npmregistry. Please investigate more. +# Take a look at https://wiki.debian.org/debian/watch/ +opts="searchmode=plain,component=minipass-pipeline,ctype=nodejs,pgpmode=none" \ + https://registry.npmjs.org/minipass-pipeline https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-([\d\.]+)@ARCHIVE_EXT@ checksum + +opts=\ +component=minipass-sized,\ +ctype=nodejs,\ +dversionmangle=auto,\ +filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-minipass-sized-$1/ \ + https://github.com/isaacs/minipass-sized/tags .*/archive.*/v?([\d\.]+).tar.gz checksum + +opts=\ +component=minizlib,\ +ctype=nodejs,\ +dversionmangle=auto,\ +filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-minizlib-$1/ \ + https://github.com/isaacs/minizlib/tags .*/archive.*/v?([\d\.]+).tar.gz checksum