[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#927098: marked as done (unblock: node-serve-static/1.6.4-3)



Your message dated Mon, 15 Apr 2019 06:32:00 +0000
with message-id <1fccb4cb-39b5-033d-c37f-cfe9b4034bbb@thykier.net>
and subject line Re: Bug#927098: unblock: node-serve-static/1.6.4-3
has caused the Debian Bug report #927098,
regarding unblock: node-serve-static/1.6.4-3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
927098: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927098
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package node-serve-static

Hi all,

due to dependency upgrade and lack of autopkgtest real test,
node-serve-static has not been upgraded and has a little bug with recent
node-send. To avoid upgrade, I just disable the relevant test. The bug
is limited: node-serve-static returns 500 instead of 404 if a redirection
is activated in configuration and disabled in options.
I also updated debian/* files.

Reverse dependency: node-express

Since no installed files are modified but only tests, I think it is not
risky to unblock node-serve-static.

Full changes:
  * Disable one failing test (Closes: #927015)
  * Enable upstream test in autopkgtest using pkg-js-tools
  * Declare compliance with policy 4.3.0
  * Change section to javascript
  * Change priority to optional
  * Fix VCS fields
  * Fix debian/copyright format URL
  * Add upstream/metadata

Cheers,
Xavier

unblock node-serve-static/1.6.4-3

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff --git a/debian/changelog b/debian/changelog
index 364c416..83ce702 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,17 @@
+node-serve-static (1.6.4-3) unstable; urgency=medium
+
+  * Team upload
+  * Disable one failing test (Closes: #927015)
+  * Enable upstream test in autopkgtest using pkg-js-tools
+  * Declare compliance with policy 4.3.0
+  * Change section to javascript
+  * Change priority to optional
+  * Fix VCS fields
+  * Fix debian/copyright format URL
+  * Add upstream/metadata
+
+ -- Xavier Guimard <yadd@debian.org>  Mon, 15 Apr 2019 07:05:03 +0200
+
 node-serve-static (1.6.4-2) unstable; urgency=medium
 
   * Team upload.
@@ -43,4 +57,3 @@ node-serve-static (1.1.0-1) unstable; urgency=low
   * Initial release (Closes: #746231)
 
  -- Leo Iannacone <l3on@ubuntu.com>  Mon, 28 Apr 2014 12:10:16 +0200
-
diff --git a/debian/control b/debian/control
index 7cfb377..e7029c1 100644
--- a/debian/control
+++ b/debian/control
@@ -1,8 +1,9 @@
 Source: node-serve-static
-Section: web
-Priority: extra
+Section: javascript
+Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
 Uploaders: Leo Iannacone <l3on@ubuntu.com>
+Testsuite: autopkgtest-pkg-nodejs
 Build-Depends:
  debhelper (>= 8)
  , dh-buildinfo
@@ -14,11 +15,11 @@ Build-Depends:
  , node-should
  , node-mocha
  , node-supertest
-Standards-Version: 3.9.6
+ , pkg-js-tools
+Standards-Version: 4.3.0
+Vcs-Browser: https://salsa.debian.org/js-team/node-serve-static
+Vcs-Git: https://salsa.debian.org/js-team/node-serve-static.git
 Homepage: https://github.com/expressjs/serve-static
-Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-serve-static.git
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-serve-static.git
-XS-Testsuite: autopkgtest
 
 Package: node-serve-static
 Architecture: all
diff --git a/debian/copyright b/debian/copyright
index 05cefc2..506bff4 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,4 +1,4 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: serve-static
 Upstream-Contact: https://github.com/expressjs/serve-static/issues
 Source: https://github.com/expressjs/serve-static
@@ -34,4 +34,3 @@ License: Expat
  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.
-
diff --git a/debian/patches/disable-failing-test.diff b/debian/patches/disable-failing-test.diff
new file mode 100644
index 0000000..59b6b09
--- /dev/null
+++ b/debian/patches/disable-failing-test.diff
@@ -0,0 +1,28 @@
+Description: Disable failing test
+ Due to node-send update, node-serve-static now returns a 500 code instead
+ of 404 on redirect conflict.
+ .
+ Upgrade is not possible for now due to Buster freeze.
+Author: Xavier Guimard <yadd@debian.org>
+Bug-Debian: https://bugs.debian.org/927015
+Forwarded: not-needed
+Last-Update: 2019-04-15
+
+--- a/test/test.js
++++ b/test/test.js
+@@ -272,6 +272,7 @@
+       .expect(404, done)
+     })
+ 
++    /*
+     describe('when false', function () {
+       var server;
+       before(function () {
+@@ -284,6 +285,7 @@
+         .expect(404, done)
+       })
+     })
++    */
+   })
+ 
+   describe('setHeaders', function () {
diff --git a/debian/patches/series b/debian/patches/series
index 3181459..313a2c7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 CVE-2015-1164.patch
+disable-failing-test.diff
diff --git a/debian/rules b/debian/rules
index 1b921ea..3a698e5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,14 +5,7 @@
 #export DH_VERBOSE=1
 
 %:
-	dh $@
-
-#override_dh_auto_build:
-
-override_dh_auto_test:
-	mocha -C --reporter spec --bail --check-leaks --require should test/
+	dh $@ --with nodejs
 
 override_dh_installchangelogs:
 	dh_installchangelogs -k HISTORY.md
-
-
diff --git a/debian/tests/control b/debian/tests/control
deleted file mode 100644
index ba891c2..0000000
--- a/debian/tests/control
+++ /dev/null
@@ -1,2 +0,0 @@
-Tests: require
-Depends: node-serve-static
diff --git a/debian/tests/pkg-js/test b/debian/tests/pkg-js/test
new file mode 100644
index 0000000..abf14f6
--- /dev/null
+++ b/debian/tests/pkg-js/test
@@ -0,0 +1 @@
+mocha -C --timeout 10000 --reporter spec --bail --check-leaks --require should test/
diff --git a/debian/tests/require b/debian/tests/require
deleted file mode 100644
index e9c24b9..0000000
--- a/debian/tests/require
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-set -e
-nodejs -e "require('serve-static');"
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..a0fca7d
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,7 @@
+---
+Archive: GitHub
+Bug-Database: https://github.com/expressjs/serve-static/issues
+Contact: https://github.com/expressjs/serve-static/issues
+Name: serve-static
+Repository: https://github.com/expressjs/serve-static.git
+Repository-Browse: https://github.com/expressjs/serve-static

--- End Message ---
--- Begin Message ---
Xavier Guimard:
> Package: release.debian.org
> Severity: normal
> User: release.debian.org@packages.debian.org
> Usertags: unblock
> 
> Please unblock package node-serve-static
> 
> Hi all,
> 
> due to dependency upgrade and lack of autopkgtest real test,
> node-serve-static has not been upgraded and has a little bug with recent
> node-send. To avoid upgrade, I just disable the relevant test. The bug
> is limited: node-serve-static returns 500 instead of 404 if a redirection
> is activated in configuration and disabled in options.
> I also updated debian/* files.
> 
> [...]
> 
> Cheers,
> Xavier
> 
> unblock node-serve-static/1.6.4-3
> 
> [...]
> 

Unblocked, thanks.
~Niels

--- End Message ---

Reply to: