Your message dated Mon, 04 Dec 2017 22:20:50 +0000
with message-id <[email protected]>
and subject line Bug#826410: fixed in maven-debian-helper 2.2.8
has caused the Debian Bug report #826410,
regarding maven-debian-helper: Add non-interactive option to mh_make
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.)


-- 
826410: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826410
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: maven-debian-helper
Version: 2.0.6
Severity: wishlist

Dear Maintainer,

The attached patch adds a non-interactive option to mh_make.

This will be useful when planning the work required to package a library. It
allows the prospective packager to quickly determine what dependencies may
first require packaging and get a sense of how challenging the package may be.

Thank you.

Christopher Hoskin



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages maven-debian-helper depends on:
ii  default-jdk                     2:1.8-57
ii  libmaven-clean-plugin-java      2.5-1
ii  libmaven-compiler-plugin-java   3.2-5
ii  libmaven-jar-plugin-java        2.4-1
ii  libmaven-resources-plugin-java  2.6-1
ii  libmaven-site-plugin-java       2.1-4
ii  libplexus-velocity-java         1.1.8-1
ii  libsurefire-java                2.17-2
ii  libxml2-utils                   2.9.3+dfsg1-1
ii  maven                           3.3.9-4
ii  maven-repo-helper               1.8.12
ii  unzip                           6.0-20
ii  velocity                        1.7-4

maven-debian-helper recommends no packages.

Versions of packages maven-debian-helper suggests:
ii  apt-file                      3.0
ii  devscripts                    2.16.4
ii  libmaven-javadoc-plugin-java  2.10.3-2
ii  subversion                    1.9.4-1

-- no debconf information
diff --git a/bin/mh_make b/bin/mh_make
index 2bcf4ff..14dd825 100755
--- a/bin/mh_make
+++ b/bin/mh_make
@@ -21,6 +21,7 @@ syntax()
    echo -e "\t-t<true|false> --run-tests=<true|false>: include or not the tests"
    echo -e "\t-d<true|false> --javadoc=<true|false>: include or not the javadoc"
    echo -e "\t  during the build"
+   echo -e "\t-n --non-interactive: non interactive mode, don't ask questions"
    echo -e "\t--cdbs: use CDBS as the build helper instead of DH"
    echo -e "\t-a --ant: use Ant for the packaging instead of Maven"
    echo -e "\t-v --verbose: show more information while running"
@@ -39,7 +40,7 @@ syntax()
    exit 1
 }
 
-ARGS="p package b bin-package t run-tests d javadoc a ant v verbose s from-svn cdbs" parseargs "$@"
+ARGS="p package b bin-package t run-tests d javadoc a ant v verbose n non-interactive s from-svn cdbs" parseargs "$@"
 
 if [ -z "$DEBFULLNAME" ]; then
   echo "Please define the environment variable DEBFULLNAME, e.g."
@@ -71,6 +72,7 @@ ANT=$(getarg a ant)
 CDBS=$(getarg cdbs)
 FROM_SVN=$(getarg s from-svn)
 VERBOSE=$(getarg v verbose)
+NON_INTERACTIVE=$(getarg n non-interactive)
 
 if [ "$FROM_SVN" == "true" ]; then
 	echo "The syntax for the --from-svn option is --from-svn=<url>, please try again"
@@ -83,11 +85,15 @@ if [ -z "$PACKAGE" ]; then
 	PACKAGE=$(echo "$FROM_SVN" | sed 's/-[0-9].*//')
         PACKAGE=$(echo "$PACKAGE" | sed 's|.*/||' )
     fi
-    echo
-    echo "Enter the name of the new Debian source package:"
-    read -p "[$PACKAGE] > " USER_PACKAGE
-    if [ -n "$USER_PACKAGE" ]; then
-        PACKAGE=$USER_PACKAGE
+    if [ "$NON_INTERACTIVE" != true ]; then
+        echo
+        echo "Enter the name of the new Debian source package:"
+        read -p "[$PACKAGE] > " USER_PACKAGE
+        if [ -n "$USER_PACKAGE" ]; then
+            PACKAGE=$USER_PACKAGE
+        fi
+    else
+        echo "Using source package name $PACKAGE, override with option --package=<package>."
     fi
 fi
 
@@ -98,31 +104,43 @@ if [ -z "$BIN_PACKAGE" ]; then
     else
         BIN_PACKAGE="lib${PACKAGE}-java"
     fi
+    if [ "$NON_INTERACTIVE" != true ]; then
 	echo
-    echo "Enter the name of the binary package:"
-    read -p "[$BIN_PACKAGE] > " USER_PACKAGE
-    if [ -n "$USER_PACKAGE" ]; then
-        BIN_PACKAGE=$USER_PACKAGE
+        echo "Enter the name of the binary package:"
+        read -p "[$BIN_PACKAGE] > " USER_PACKAGE
+        if [ -n "$USER_PACKAGE" ]; then
+            BIN_PACKAGE=$USER_PACKAGE
+        fi
+    else
+        echo "Using binary package name $PACKAGE, override with option --bin-package=<package>."
     fi
 fi
 
 if [ -z "$RUN_TESTS" ]; then
-	echo
-    echo "Run tests while building the package?"
-    read -p "[Y/n] > " RUN
     RUN_TESTS="true"
-    if [ "$RUN" == "n" ]; then
-        RUN_TESTS=
+    if [ "$NON_INTERACTIVE" != true ]; then
+        echo
+        echo "Run tests while building the package?"
+        read -p "[Y/n] > " RUN
+        if [ "$RUN" == "n" ]; then
+            RUN_TESTS=
+        fi
+    else
+	echo "Tests will be run whilst building the package, override with option --run-tests=false."
     fi
 fi
 
 if [ -z "$GEN_JAVADOC" ]; then
-	echo
-    echo "Generate the Javadoc while building the package?"
-    read -p "[Y/n] > " GEN
     GEN_JAVADOC="true"
-    if [ "$GEN" == "n" ]; then
-        GEN_JAVADOC=
+    if [ "$NON_INTERACTIVE" != true ]; then
+	echo
+        echo "Generate the Javadoc while building the package?"
+        read -p "[Y/n] > " GEN
+        if [ "$GEN" == "n" ]; then
+            GEN_JAVADOC=
+        fi
+    else
+        echo "Javadoc will be generated whilst building the package, override with option --javadoc=false."
     fi
 fi
 
@@ -183,7 +201,7 @@ if [ -f debian/patches/series ]; then
 fi
 
 echo
-java -cp /usr/share/java/maven-project.jar:/usr/share/java/maven-repo-helper.jar:/usr/share/java/maven-packager-utils.jar:/usr/share/maven2/lib/maven-debian-uber.jar org.debian.maven.packager.DependenciesSolver --verbose --package="$BIN_PACKAGE" ${ANT:+--ant} ${GEN_JAVADOC:+--generate-javadoc} ${RUN_TESTS:+--run-tests} ${VERBOSE:+--verbose} --maven-repo=/usr/share/maven-repo
+java -cp /usr/share/java/maven-project.jar:/usr/share/java/maven-repo-helper.jar:/usr/share/java/maven-packager-utils.jar:/usr/share/maven2/lib/maven-debian-uber.jar org.debian.maven.packager.DependenciesSolver --verbose --package="$BIN_PACKAGE" ${ANT:+--ant} ${GEN_JAVADOC:+--generate-javadoc} ${RUN_TESTS:+--run-tests} ${VERBOSE:+--verbose} ${NON_INTERACTIVE:+--non-interactive} --maven-repo=/usr/share/maven-repo
 
 if [ $? != 0 ]; then
     if [ -f debian/patches/series ]; then

--- End Message ---
--- Begin Message ---
Source: maven-debian-helper
Source-Version: 2.2.8

We believe that the bug you reported is fixed in the latest version of
maven-debian-helper, 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.
Christopher Hoskin <[email protected]> (supplier of updated 
maven-debian-helper 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: SHA512

Format: 1.8
Date: Mon, 04 Dec 2017 21:53:56 +0000
Source: maven-debian-helper
Binary: maven-debian-helper
Architecture: source
Version: 2.2.8
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 
<[email protected]>
Changed-By: Christopher Hoskin <[email protected]>
Description:
 maven-debian-helper - Helper tools for building Debian packages with Maven
Closes: 826410 883239
Changes:
 maven-debian-helper (2.2.8) unstable; urgency=medium
 .
   * Team upload.
   * Fix "quilt and mh_patchpom sequence" by inserting extra calls to
     mh_(un)patchpoms in share/perl/maven.pm (Closes: #883239)
   * Fix file-contains-trailing-whitespace in changelog and rules
   * Fix homepage-field-uses-insecure-uri in control
   * Fix "Add non-interactive option to mh_make" (Closes: #826410)
   * Remove unnecessary greater-than versioned dependency
Checksums-Sha1:
 ca3c1d6490a4eeea05ffae1795edd35f1a922f86 2154 maven-debian-helper_2.2.8.dsc
 107a27331415220114807ef90c722fa3d2e3d6a9 88184 maven-debian-helper_2.2.8.tar.xz
 14d367eea2f29af429e6519503bbafe3c0d2daa7 10066 
maven-debian-helper_2.2.8_amd64.buildinfo
Checksums-Sha256:
 6aca83814bcff6868db05e394a161260105d63f58b340774a93110e8e367f9ca 2154 
maven-debian-helper_2.2.8.dsc
 1f8cdd8f1a0bb960650b76e683a3be6e497c2eb100dedb3a113272e160e099c6 88184 
maven-debian-helper_2.2.8.tar.xz
 3117cc3465503cd1e2d7db94440c623d5fed19f0a8714142f8645fd2e844a4a3 10066 
maven-debian-helper_2.2.8_amd64.buildinfo
Files:
 53b208388bb7aac6edaccc5018decd0f 2154 java optional 
maven-debian-helper_2.2.8.dsc
 c6110830e80e431c99004b3eafdd582b 88184 java optional 
maven-debian-helper_2.2.8.tar.xz
 e9bcaa5d6623acb1f5ba0b82d58f91d4 10066 java optional 
maven-debian-helper_2.2.8_amd64.buildinfo

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

iQIzBAEBCgAdFiEEbctJ5K6JlvFsvhGhf6qUsnUUSpoFAlolxvQACgkQf6qUsnUU
SprPCQ/9GCGbvn2OAZB5A39Kn3pyqdH3Yaj3GHCQ+uTC5U9v90h5jWJ8+rpqrQ3b
lEk0J2rY/DZ4XOGCOCn5m2z5qLDKYxzs1bYY/MasBEbQFtU5IUVzduPkyqC1E61U
uR0SPPdM5sEzmxvYXwjjmj2dHFNmYBn5AhMfC/Fnq2Bvgu+1rLXZkyKNKG9ARhlp
LMZTh9yNNSrJdoLM2Qw+c6Seh0nG4BabK0+nkt8oQF1k4ZEs8kMLQn/yUVvaeVtE
UC6q6M0vpC2jVAg0f19mCBvwhHyZ9Ze8HxnWe+nXp2XBB+SmeMU46QgUJJej8Kw6
ktoJhFhp/AKjh4QTcsROdtdsBtgI1vzI0fdDh5/5cr4XIKFh+zvL/RTiYRml6HUs
5B0zrvkRWYsReRpdCQLEem0h40TuHdP2RvjMY6uUgOxRc1K1kBF3dLHAA3wfEoyf
cppyDW4SEPk2QIr1w/GGkoBt4SoNIWjOC+pgnUfSjgapif1eS1vWp8Ekdbc9Ni1X
Go2bR9mPsMcYo9AOh1K08kf7Tu0lHLlHH4NwkEIShc2nssGcB1CTleXJEBXolLtS
SRlC38cTZveUjhlvOnQ99fPi7ScPWQhmb9N839Ix/wBJMTR3hg4IB87SCWxLiqGR
9s9Qo9IHxigD0oyf9ULFjK4Oyro2zLMMNyiSOSpHsEfm+hCTmOc=
=QfxB
-----END PGP SIGNATURE-----

--- End Message ---
__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
[email protected] for discussions and questions.

Reply via email to