Package: python2-pythondialog Tags: patch I wanted to try the letsencrypt package on jessie so I tried to build python2-pythondialog and it fails.
It seems to need gnulib added to the build-deps The setup.py needs to be patched (see attached) In setup.py, last_commit_in_ch_init seems to be wrong, needs to be reviewed $ dpkg-buildpackage -rfakeroot -i.git dpkg-buildpackage: source package python2-pythondialog dpkg-buildpackage: source version 3.3.0-2 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by Francois Marier <franc...@debian.org> dpkg-buildpackage: host architecture amd64 dpkg-source -i.git --before-build python2-pythondialog fakeroot debian/rules clean dh clean --with python2 --buildsystem=pybuild dh_testdir -O--buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:170: python2.7 setup.py clean Converting the Git log into ChangeLog format... Traceback (most recent call last): File "setup.py", line 39, in run_gitlog_to_changelog subprocess.check_call(args, stdout=output) File "/usr/lib/python2.7/subprocess.py", line 535, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Error (see above for a traceback): unable to run gitlog-to-changelog ==================================================================== Maybe this program is not installed on your system. You can download it from: http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=build-aux/gitlog-to-changelog Note: if you have problems with the infamous shell+Perl crap in the first lines of that file, you can replace it with a simple shebang line such as "#! /usr/bin/perl". E: pybuild pybuild:256: clean: plugin distutils failed with: exit code=1: python2.7 setup.py clean dh_auto_clean: pybuild --clean -i python{version} -p 2.7 --dir . returned exit code 13 debian/rules:9: recipe for target 'clean' failed make: *** [clean] Error 13 dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
diff --git a/setup.py b/setup.py index 63a849f..459f345 100755 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ from dialog import __version__ as VERSION def run_gitlog_to_changelog(after_this_commit, output=None): - args = [ "gitlog-to-changelog", "--format=%s%n%n%b%n", "--", + args = [ "/usr/bin/perl", "/usr/share/gnulib/build-aux/gitlog-to-changelog", "--format=%s%n%n%b%n", "--", "{0}..".format(after_this_commit) ] try: subprocess.check_call(args, stdout=output)