Your message dated Tue, 12 Sep 2017 21:05:36 +0000
with message-id <[email protected]>
and subject line Bug#874306: fixed in autodep8 0.10
has caused the Debian Bug report #874306,
regarding autodep8: Support for Octave-Forge packages
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 [email protected]
immediately.)


-- 
874306: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874306
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autodep8
Version: 0.9
Severity: wishlist
Tags: patch

Dear autodep8 maintainers,

I added the Git repository of the autodep8 package the support for the Octave-Forge packages [1] that are maintained by the Debian Octave Group [2]. I put it in the 'octave' branch of the Git repository [3]. I am attaching below the patch that applies to the current HEAD of the Git master branch (obtained with "git diff master..octave").

There are currently 51 packages in Debian that would be detected by autodep8 with the support I am proposing.

There was a discussion around this patch in the autopkgtest-devel mailing list [4].

Notice that this patch should only be released in autodep8 when version 1.5.1 of the source package octave-pkg-dev (which contains the package octave-autopkgtest) reaches unstable. Since this version introduces a new binary package, it will certainly goes through the NEW queue.

Thanks in advance for considering this patch,

Best,

Rafael Laboissière

1. https://octave.sourceforge.io/
2. https://wiki.debian.org/Teams/DebianOctaveGroup
3. https://anonscm.debian.org/cgit/collab-maint/autodep8.git/log/?h=octave
4. 
http://lists.alioth.debian.org/pipermail/autopkgtest-devel/2017-September/002472.html
diff --git a/debian/control b/debian/control
index 8051198..a097ab8 100644
--- a/debian/control
+++ b/debian/control
@@ -26,3 +26,4 @@ Description: DEP-8 test control file generator
   - R packages
   - Emacs Lisp ELPA packages
   - Go packages
+  - Octave-Forge packages
diff --git a/examples.in b/examples.in
index d0eb1b5..21f7e35 100644
--- a/examples.in
+++ b/examples.in
@@ -4,6 +4,7 @@ dkms    kpatch
 elpa    flycheck
 go      prometheus
 nodejs  node-tar
+octave  octave-signal
 perl    libtest-most-perl
 python  python-flaky
 r       r-cran-evaluate
diff --git a/examples.md b/examples.md
index 685b8b9..653ea4e 100644
--- a/examples.md
+++ b/examples.md
@@ -14,14 +14,20 @@
 ## go (prometheus)
 
     Test-Command: /usr/bin/dh_golang_autopkgtest
-    Depends: @builddeps@, dh-golang
-    Restrictions: rw-build-tree, allow-stderr
+    Depends: @, @builddeps@, dh-golang
+    Restrictions: allow-stderr
 
 ## nodejs (node-tar)
 
     Test-Command: cd $ADTTMP && nodejs -e "require('"'"'tar'"'"');"
     Depends: @
 
+## octave (octave-signal)
+
+    Test-Command: /usr/share/octave-pkg-dev/check-pkg
+    Depends: @, octave-autopkgtest
+    Restrictions: allow-stderr
+
 ## perl (libtest-most-perl)
 
     Test-Command: /usr/share/pkg-perl-autopkgtest/runner build-deps
@@ -36,11 +42,11 @@
 
 ## python (python-flaky)
 
-    Test-Command: cd "$ADTTMP" ; python -c "import flaky; print flaky"
-    Depends: python-flaky
+    Test-Command: set -e ; for py in $(pyversions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import flaky; print flaky" ; done
+    Depends: python-all, python-flaky
     
-    Test-Command: cd "$ADTTMP" ; python3 -c "import flaky; print(flaky)"
-    Depends: python3-flaky
+    Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import flaky; print(flaky)" ; done
+    Depends: python3-all, python3-flaky
     
     Test-Command: cd "$ADTTMP" ; pypy -c "import flaky; print flaky"
     Depends: pypy-flaky
diff --git a/support/octave/detect b/support/octave/detect
new file mode 100755
index 0000000..78ce8a2
--- /dev/null
+++ b/support/octave/detect
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+### Select only the packages from Octave-Forge.  The detection is based on
+### the existence of an inst/ directory (which contains the *.m to be
+### tested) and a DESCRIPTION file, besides the name of the source package,
+### which must start with ""octave-"".
+
+test -d inst								\
+    && test -f DESCRIPTION						\
+    && grep-dctrl --quiet -F Source -r '^octave-.*$' debian/control
diff --git a/support/octave/generate b/support/octave/generate
new file mode 100755
index 0000000..1191fe8
--- /dev/null
+++ b/support/octave/generate
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+cat <<EOF
+Test-Command: /usr/share/octave-pkg-dev/check-pkg
+Depends: @, octave-autopkgtest
+Restrictions: allow-stderr
+EOF
diff --git a/test/octave_test.sh b/test/octave_test.sh
new file mode 100644
index 0000000..51d8d3c
--- /dev/null
+++ b/test/octave_test.sh
@@ -0,0 +1,45 @@
+. $(dirname $0)/helper.sh
+
+test_Testsuite_autopkgtest_pkg_octave() {
+  has debian/control 'Testsuite: autopkgtest-pkg-octave'
+  check_run autodep8
+}
+
+test_XS_Testsuite_autopkgtest_pkg_octave() {
+  has debian/control 'XS-Testsuite: autopkgtest-pkg-octave'
+  check_run autodep8
+}
+
+test_support_octave_detect() {
+  has_dir inst
+  has debian/control 'Source: octave-foo'
+  has DESCRIPTION 'Name: Foo'
+  check_run autodep8
+}
+
+test_no_description_file() {
+  has_dir inst
+  has debian/control 'Source: octave-foo'
+  run autodep8
+  assertEquals 1 "$exitstatus"
+  assertEquals "" "$(cat stdout stderr)"
+}
+
+test_no_octave_prefix_in_source_name() {
+  has_dir inst
+  has debian/control 'Source: foo'
+  has DESCRIPTION 'Name: Foo'
+  run autodep8
+  assertEquals 1 "$exitstatus"
+  assertEquals "" "$(cat stdout stderr)"
+}
+
+test_no_inst_directory() {
+  has debian/control 'Source: octave-foo'
+  has DESCRIPTION 'Name: Foo'
+  run autodep8
+  assertEquals 1 "$exitstatus"
+  assertEquals "" "$(cat stdout stderr)"
+}
+
+. shunit2

--- End Message ---
--- Begin Message ---
Source: autodep8
Source-Version: 0.10

We believe that the bug you reported is fixed in the latest version of
autodep8, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Rafael Laboissiere <[email protected]> (supplier of updated autodep8 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 12 Sep 2017 11:38:05 -0300
Source: autodep8
Binary: autodep8
Architecture: source all
Version: 0.10
Distribution: unstable
Urgency: medium
Maintainer: Autopkgtest team <[email protected]>
Changed-By: Rafael Laboissiere <[email protected]>
Description:
 autodep8   - DEP-8 test control file generator
Closes: 874306
Changes:
 autodep8 (0.10) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Antonio Terceiro ]
   * Mention the Go support in the package description
 .
   [ Rafael Laboissiere ]
   * Add support for Octave-Forge packages (Closes: #874306)
   * Bump Standards-Version to 4.1.0 (no changes needed)
Checksums-Sha1:
 08ac4634df3f8a3c060c369803f54dfcb381c8dd 1714 autodep8_0.10.dsc
 24de10e81319690fee1a1d140bb2103894b20ba9 9404 autodep8_0.10.tar.xz
 dbce1dbfbf44d36b4fc16e5d548cd54613437774 9650 autodep8_0.10_all.deb
 be4aaf1a4efbcaac63ead9c5b73ff7472ffb68d8 5145 autodep8_0.10_amd64.buildinfo
Checksums-Sha256:
 a270fd6693e3b7f973091acf5057cde6e3cb4394ff66645bb62e585e3d0b4fbf 1714 
autodep8_0.10.dsc
 11314a88010cb0551641c3deb8a41d2582f29407cb04fdd302a9f86266a9e8dc 9404 
autodep8_0.10.tar.xz
 24f6c8ba18b4cba6b59912aa8bed4e6421af88127fec9d15f2f76ade30a31498 9650 
autodep8_0.10_all.deb
 d43a0048b5e5b1d98374eb434f3c4434687d9215e333c6082220457f0b938e41 5145 
autodep8_0.10_amd64.buildinfo
Files:
 9c438749d8ef37638e7e0df8e7d8b120 1714 devel optional autodep8_0.10.dsc
 fd964d8ab35f1ae348b0824a3113262e 9404 devel optional autodep8_0.10.tar.xz
 2fdb3c56be7aaf2203ba1d48d785114b 9650 devel optional autodep8_0.10_all.deb
 9cd9c1efc03fc736ab4a6c576e0c5f6e 5145 devel optional 
autodep8_0.10_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEP0ZDkUmP6HS9tdmPISSqGYN4XJAFAlm4RywACgkQISSqGYN4
XJB89A/+Jx6tQXDUeypPUJfLqVi5j1fonOqnZ29cjwekJZ21eMgMElq6pHckl+Vr
/9SdFpLPED/NBpF1piq0ofWVVqrWJmuOybJUIbJOnJwfRKoKQurT9czECz7qNN9R
R8IduNI0TNAj2+9PE9/YgQA0oEZCaY3SlgYTQNMOXXA0xg3FOXrXLZTS7TR2Kh6g
Xzmbu36DUnFwNrG1JqeNSYJJyNtaCG9a8jtHkfP+jhndMjiaphnG88O1tPb1CJk1
KrKeqTSIITfl3XFUlYemkXGGxp1BXY62XUGM/uWQPPvStiNlQzfuNYqAQaSnSiZ8
T9CHGEDeDW7a6JiFje8npDDRnQUcO7DpZY5fFEGw4o+SGDaVhZRawa5xW8nPRSoT
3dc9BQAD+0fuxl+GzPBbOhvlQV5ZlRRjwgulP8qQZof55GiZS1zioXe0+XpiJpTQ
cUmHf6j5HvsAae1BfaQtnwn0DG4XiFzuYfaeu2P7JjaTpmr5SPvFw8KZnToHTXzf
q1oWGzKMtI3SLpI2je6Si5GhhEXPpxldr09Rqf0FvydZ8LBcbfZgMOab6OMMzAQA
psEd1dRL8cRiMgv8ECFRtTavxtaukL3cAsFLTmIdWVU/VUhrZ7x0hVLNIy6z9wkq
yjTpI6yEAU952OfcdPIMtTMdXBjYyUBcWFx47Y82QufIVfWVbYc=
=98PQ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to