Package: dh-make Version: 2.201602 Severity: important Tags: patch Dear Maintainer,
dh_make script fails to create a debian subdirectory on its first run. If -a is not specified, args.argmissing defaults to False and directory creating code chunk is not called. If an empty debian directory is created manually or the above is fixed, dh_make script adds necessary template files as expected but the script ultimately fails at line 812 where an argument to process_infos() function seems to be missing. I attach a diff file with a proposed fix. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dh-make depends on: ii debhelper 9.20151225 ii dpkg-dev 1.18.4 ii make 4.0-8.2 pn python:any <none> dh-make recommends no packages. Versions of packages dh-make suggests: ii build-essential 12.1 -- no debconf information
Index: dh-make-2.201602/dh_make =================================================================== --- dh-make-2.201602.orig/dh_make +++ dh-make-2.201602/dh_make @@ -759,7 +759,7 @@ def do_debianize(args, subs): setup_make() # Create debian directory - if args.addmissing is None: + if args.addmissing is False: if os.path.isdir('debian'): print('You already have a debian/ subdirectory in the source' 'tree.\ndh_make will not try to overwrite anything.') @@ -809,7 +809,7 @@ def do_debianize(args, subs): process_dir(args, subs_func, args.templates) process_docs(args.python, args.docs, subs['PACKAGE']) - process_infos(args.docs, subs['PACKAGE']) + process_infos(args.python, args.docs, subs['PACKAGE']) rename_package_files(subs['PACKAGE'])