From 375d594ea3eabb362c2400fdd6e5d8031c3a02a7 Mon Sep 17 00:00:00 2001 From: zhouganqing Date: Mon, 20 Feb 2023 16:09:22 +0800 Subject: [PATCH] Import Debian changes 0.1.4-ok1 node-duplexer3 (0.1.4-ok1) yangtze; urgency=medium * Build for openKylin. --- debian/changelog | 5 +++++ debian/control | 29 ++++++++++++++++++++++++ debian/copyright | 37 +++++++++++++++++++++++++++++++ debian/docs | 1 + debian/install | 1 + debian/maintscript | 1 + debian/nodejs/links | 1 + debian/patches/fix-bad-test.patch | 24 ++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 12 ++++++++++ debian/source/format | 1 + debian/tests/pkg-js/test | 6 +++++ debian/watch | 5 +++++ 13 files changed, 124 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/install create mode 100644 debian/maintscript create mode 100644 debian/nodejs/links create mode 100644 debian/patches/fix-bad-test.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format 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..b57ad2e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +node-duplexer3 (0.1.4-ok1) yangtze; urgency=medium + + * Build for openKylin. + + -- zhouganqing Mon, 20 Feb 2023 16:09:22 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e5d7a73 --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: node-duplexer3 +Maintainer: OpenKylin Developers +Section: javascript +Testsuite: autopkgtest-pkg-nodejs +Priority: optional +Build-Depends: debhelper-compat (= 13), + node-tap , + mocha , + dh-sequence-nodejs +Standards-Version: 4.6.0 +Vcs-Browser: https://gitee.com/openkylin/node-duplexer3 +Vcs-Git: https://gitee.com/openkylin/node-duplexer3.git +Homepage: https://github.com/floatdrop/duplexer3 +Rules-Requires-Root: no + +Package: node-duplexer3 +Architecture: all +Depends: ${misc:Depends} +Provides: node-duplexer2 (= ${source:Version}) +Replaces: node-duplexer2 +Breaks: node-duplexer2 (<< 0.1.4-2) +Multi-Arch: foreign +Description: Like duplexer but using streams3 + This is a reimplementation of duplexer using the Streams3 API + which is standard in Node as of v4. Everything largely works the same + Duplexer takes a writable stream and a readable stream and makes them + appear as a readable writable stream. + . + Node.js is an event-based server-side JavaScript engine. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6d18546 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: duplexer3 +Upstream-Contact: https://github.com/floatdrop/duplexer3/issues +Source: https://github.com/floatdrop/duplexer3 + +Files: * +Copyright: 2017 Conrad Pankoff (https://www.fknsrs.biz/) +License: BSD-3-clause + +Files: debian/* +Copyright: 2017 Tushar Agey +License: BSD-3-clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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/install b/debian/install new file mode 100644 index 0000000..a581112 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +package.json usr/share/nodejs/duplexer2/ diff --git a/debian/maintscript b/debian/maintscript new file mode 100644 index 0000000..aa37c50 --- /dev/null +++ b/debian/maintscript @@ -0,0 +1 @@ +symlink_to_dir /usr/lib/nodejs/duplexer2 0.1.4-5~ diff --git a/debian/nodejs/links b/debian/nodejs/links new file mode 100644 index 0000000..ce0d6ba --- /dev/null +++ b/debian/nodejs/links @@ -0,0 +1 @@ +duplexer3/index.js duplexer2/index.js diff --git a/debian/patches/fix-bad-test.patch b/debian/patches/fix-bad-test.patch new file mode 100644 index 0000000..e941e9e --- /dev/null +++ b/debian/patches/fix-bad-test.patch @@ -0,0 +1,24 @@ +Description: Fix bad test + For an unknown reason, this test fails +Author: Xavier Guimard +Bug: https://github.com/floatdrop/duplexer3/issues/2 +Bug-Debian: https://bugs.debian.org/918670 +Forwarded: https://github.com/floatdrop/duplexer3/issues/2 +Last-Update: 2019-01-09 + +--- a/test/tests.js ++++ b/test/tests.js +@@ -164,6 +164,7 @@ + assert.equal(typeof duplexer3.DuplexWrapper, "function"); + }); + ++ /* + it("should not force flowing-mode", function(done) { + var writable = new stream.PassThrough(); + var readable = new stream.PassThrough(); +@@ -201,4 +202,5 @@ + assert.equal(readable._readableState.flowing, null); + }); + }); ++ */ + }); diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..f24c9b3 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-bad-test.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..738e0e7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_install: + dh_install + perl -i -pe 's/duplexer3/duplexer2/' debian/node-duplexer3/usr/share/nodejs/duplexer2/package.json 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/tests/pkg-js/test b/debian/tests/pkg-js/test new file mode 100644 index 0000000..f2c2e82 --- /dev/null +++ b/debian/tests/pkg-js/test @@ -0,0 +1,6 @@ +set -e +set -x +if test "$AUTOPKGTEST_TMP" != ""; then + node -e 'require("duplexer2")' +fi +mocha diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..10bdfbd --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=4 +opts=\ +dversionmangle=auto,\ +filenamemangle=s%(?:.*?/)?v?(@ANY_VERSION@@ARCHIVE_EXT@)%@PACKAGE@-$1% \ + https://github.com/floatdrop/duplexer3/tags (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@