[med-svn] [Git][med-team/mrtrix3][master] 11 commits: Standards-Version: 4.4.1
Andreas Tille
gitlab at salsa.debian.org
Tue Jan 21 12:50:16 GMT 2020
Andreas Tille pushed to branch master at Debian Med / mrtrix3
Commits:
bc492195 by Andreas Tille at 2020-01-21T09:50:38+01:00
Standards-Version: 4.4.1
- - - - -
18b6b0fa by Andreas Tille at 2020-01-21T09:52:02+01:00
QT4 -> Qt5 and close bug in d/changelog
- - - - -
928ead29 by Andreas Tille at 2020-01-21T09:57:41+01:00
Build using python3 instead of python2
- - - - -
14d620c1 by Andreas Tille at 2020-01-21T12:01:45+01:00
Build using python3 instead of python2
- - - - -
6e35a16d by Andreas Tille at 2020-01-21T13:30:23+01:00
Remove __pycache__ dirs that were created in build time tests
- - - - -
1c96adba by Andreas Tille at 2020-01-21T13:45:56+01:00
Use /usr/share/dpkg/architecture.mk to obtain architecture
- - - - -
89b2e04c by Andreas Tille at 2020-01-21T13:47:30+01:00
Trim trailing whitespace.
Fixes: lintian: file-contains-trailing-whitespace
See-also: https://lintian.debian.org/tags/file-contains-trailing-whitespace.html
- - - - -
1a9ef9c1 by Andreas Tille at 2020-01-21T13:47:32+01:00
Bump debhelper from old 9 to 10.
Fixes: lintian: package-uses-old-debhelper-compat-version
See-also: https://lintian.debian.org/tags/package-uses-old-debhelper-compat-version.html
- - - - -
33ddb46e by Andreas Tille at 2020-01-21T13:47:33+01:00
Remove deprecated Encoding key from desktop file debian/mrtrix3.desktop.
Fixes: lintian: desktop-entry-contains-encoding-key
See-also: https://lintian.debian.org/tags/desktop-entry-contains-encoding-key.html
- - - - -
db3580a1 by Andreas Tille at 2020-01-21T13:48:14+01:00
Use secure URI in Homepage field.
Fixes: lintian: homepage-field-uses-insecure-uri
See-also: https://lintian.debian.org/tags/homepage-field-uses-insecure-uri.html
- - - - -
06ef80d6 by Andreas Tille at 2020-01-21T13:48:39+01:00
Set upstream metadata fields: Bug-Database, Bug-Submit.
Fixes: lintian: upstream-metadata-file-is-missing
See-also: https://lintian.debian.org/tags/upstream-metadata-file-is-missing.html
- - - - -
8 changed files:
- debian/changelog
- debian/compat
- debian/control
- debian/mrtrix3.desktop
- + debian/patches/python3.patch
- debian/patches/series
- debian/rules
- + debian/upstream/metadata
Changes:
=====================================
debian/changelog
=====================================
@@ -1,7 +1,21 @@
mrtrix3 (3.0~rc3+git135-g2b8e7d0c2-4) UNRELEASED; urgency=medium
* Team upload.
- * s/libqt4-opengl-dev/libqt5opengl5-dev/
+ * QT4 -> Qt5
+ - s/libqt4-opengl-dev/libqt5opengl5-dev/
+ - Add some missing Build-Depends
+ - d/rules: export QT_SELECT=qt5
+ Closes: #939627
+ * Standards-Version: 4.4.1
+ * Build using python3 instead of python2
+ Closes: #937091
+ * Use /usr/share/dpkg/architecture.mk to obtain architecture
+ * Trim trailing whitespace.
+ * Bump debhelper from old 9 to 10.
+ * Remove deprecated Encoding key from desktop file
+ debian/mrtrix3.desktop.
+ * Use secure URI in Homepage field.
+ * Set upstream metadata fields: Bug-Database, Bug-Submit.
-- Andreas Tille <tille at debian.org> Mon, 20 Jan 2020 21:42:52 +0100
=====================================
debian/compat
=====================================
@@ -1 +1 @@
-9
+10
=====================================
debian/control
=====================================
@@ -4,14 +4,15 @@ Uploaders: Michael Hanke <mih at debian.org>,
Yaroslav Halchenko <debian at onerussian.com>
Section: science
Priority: optional
-Build-Depends: debhelper (>= 9~),
+Build-Depends: debhelper (>= 10~),
+ dh-python,
liboctave-dev,
libgsl-dev | libgsl0-dev,
libeigen3-dev,
libqt5opengl5-dev,
qtbase5-dev-tools,
libqt5svg5-dev,
- python,
+ python3,
pkg-config,
libgtkmm-2.4-dev,
libgtkglext1-dev,
@@ -19,18 +20,18 @@ Build-Depends: debhelper (>= 9~),
libtiff-dev,
matlab-support-dev,
bc,
-Standards-Version: 4.2.1
+Standards-Version: 4.4.1
Vcs-Browser: https://salsa.debian.org/med-team/mrtrix3
Vcs-Git: https://salsa.debian.org/med-team/mrtrix3.git
-Homepage: http://www.mrtrix.org
+Homepage: https://www.mrtrix.org
Package: mrtrix3
Architecture: any
Section: science
Depends: ${shlibs:Depends},
${misc:Depends},
- python,
-Recommends: python-numpy
+ python3,
+Recommends: python3-numpy
Conflicts: mrtrix
Suggests: mrtrix3-doc,
octave,
=====================================
debian/mrtrix3.desktop
=====================================
@@ -1,5 +1,4 @@
[Desktop Entry]
-Encoding=UTF-8
GenericName=MRI Tractography View
Name=MRview
Exec=mrview %F
=====================================
debian/patches/python3.patch
=====================================
@@ -0,0 +1,162 @@
+Description: Build using python3 instead of python2
+Bug-Debian: https://bugs.debian.org/937091
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Mon, 20 Jan 2020 21:42:52 +0100
+
+--- a/build
++++ b/build
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ usage_string = '''
+ USAGE
+--- a/configure
++++ b/configure
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ usage_string = '''
+ USAGE
+@@ -150,7 +150,7 @@ system = platform.system().lower()
+
+ # on Windows, need to use MSYS2 version of python - not MinGW version:
+ if sys.executable[0].isalpha() and sys.executable[1] == ':':
+- python_cmd = subprocess.check_output ([ 'cygpath.exe', '-w', '/usr/bin/python' ]).splitlines()[0].strip()
++ python_cmd = subprocess.check_output ([ 'cygpath.exe', '-w', '/usr/bin/python3' ]).splitlines()[0].strip()
+ sys.exit (subprocess.call ([ python_cmd ] + sys.argv))
+
+
+@@ -1301,7 +1301,7 @@ sys.stdout.write ('\nwriting configurati
+
+ cache = open (cache_filename, 'w')
+
+-cache.write ("""#!/usr/bin/python
++cache.write ("""#!/usr/bin/python3
+ #
+ # autogenerated by MRtrix configure script
+ #
+--- a/bin/population_template
++++ b/bin/population_template
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # Generates an unbiased group-average template via image registration of images to a midway space.
+
+--- a/bin/5ttgen
++++ b/bin/5ttgen
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # Script that generates a five-tissue-type (5TT) segmented image: the format appropriate for ACT
+ #
+--- a/bin/average_response
++++ b/bin/average_response
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ import sys
+
+ def errorMessage(msg):
+--- a/bin/blend
++++ b/bin/blend
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ import os
+ import sys
+
+--- a/bin/convert_bruker
++++ b/bin/convert_bruker
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ import sys, os.path
+
+--- a/bin/dwi2response
++++ b/bin/dwi2response
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # Script for estimating response functions for spherical deconvolution
+ # A number of different approaches are available within this script for performing response function estimation.
+--- a/bin/dwibiascorrect
++++ b/bin/dwibiascorrect
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # Script that performs B1 field inhomogeneity correction for a DWI volume series
+ # Bias field is estimated using the mean b=0 image, and subsequently used to correct all volumes
+--- a/bin/dwigradcheck
++++ b/bin/dwigradcheck
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # Script for checking the orientation of the diffusion gradient table
+
+--- a/bin/dwiintensitynorm
++++ b/bin/dwiintensitynorm
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+
+ # Make the corresponding MRtrix3 Python libraries available
+--- a/bin/dwipreproc
++++ b/bin/dwipreproc
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # Script for performing DWI pre-processing using FSL 5.0 tools eddy / topup / applytopup
+
+--- a/bin/labelsgmfix
++++ b/bin/labelsgmfix
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # Script for 'repairing' a FreeSurfer parcellation image
+ # FreeSurfer's sub-cortical structure segmentation has been observed to be highly variable
+--- a/docs/format_config_options
++++ b/docs/format_config_options
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ import sys
+
+--- a/generate_bash_completion.py
++++ b/generate_bash_completion.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ #
+ # Generates bash completion file for MRtrix commands
+ # MRtrix needs to be built prior to running this
+--- a/run_pylint
++++ b/run_pylint
+@@ -15,7 +15,7 @@ if [ $# == 0 ]; then
+ fi
+ done
+ for bin_path in bin/*; do
+- if head ${bin_path} -n1 | grep -q "#!/usr/bin/env python"; then
++ if head ${bin_path} -n1 | grep -q "#!/usr/bin/python3"; then
+ tests="$tests $bin_path"
+ fi
+ done
+--- a/set_path
++++ b/set_path
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ # automatically set the PATH environment variable to include the MRtrix3
+ # executables and scripts. This script must be run after a successful build,
=====================================
debian/patches/series
=====================================
@@ -3,3 +3,4 @@ changeset_7fb509cf35d5862f073faaa7e136e987486960d9.diff
changeset_1c1d3304791bd029bca744ff6634bfa4824f6938.diff
deb_run_tests
debian_build_cfg
+python3.patch
=====================================
debian/rules
=====================================
@@ -8,13 +8,13 @@ include /usr/share/matlab/debian/defs.make
# on older systems such as 16.04 PIE is not enabled by default and
# configure them fails # to link
-DISABLE_HARDENING_OPTS=$(shell g++ -v 2>&1 | grep -q -e --enable-default-pie || echo ",-pie")
+DISABLE_HARDENING_OPTS=$(shell g++ -v 2>&1 | grep -q -e --enable-default-pie || echo ",-pie")
export DEB_BUILD_MAINT_OPTIONS=hardening=+all$(DISABLE_HARDENING_OPTS)
# To avoid --match=native since wouldn't be supported on some platforms
export CPP_MARCH=
-DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+include /usr/share/dpkg/architecture.mk
# guarantee the same precision on x86 platforms for tests
ifneq (,$(findstring z$(DEB_HOST_ARCH)z,zamd64z zi386z))
CFLAGS+=-mmmx -msse -msse2 -mfpmath=sse
@@ -37,8 +37,8 @@ override_dh_auto_build:
override_dh_install:
dh_install
- # .pyc files get generated, so we remove all the .pyc/.pyo etc
- -find debian -iname *.py? -delete
+ # Remove __pycache__ dirs that were created in build time tests
+ find debian -name __pycache__ -type d | xargs rm -rf
override_dh_auto_test:
./run_tests || { cat testing.log; exit 1; }
@@ -71,3 +71,6 @@ override_dh_clean:
override_dh_shlibdeps:
dh_shlibdeps -l $(CURDIR)/lib
+
+override_dh_python3:
+ dh_python3 --shebang=/usr/bin/python3
=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,2 @@
+Bug-Database: https://github.com/MRtrix3/mrtrix3/issues
+Bug-Submit: https://github.com/MRtrix3/mrtrix3/issues/new
View it on GitLab: https://salsa.debian.org/med-team/mrtrix3/compare/974ad5c338b7e0c65bd46c12aa83509ef5e8c008...06ef80d672fae91f2d879d61762d99ec8e75166b
--
View it on GitLab: https://salsa.debian.org/med-team/mrtrix3/compare/974ad5c338b7e0c65bd46c12aa83509ef5e8c008...06ef80d672fae91f2d879d61762d99ec8e75166b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200121/dca45c71/attachment-0001.html>
More information about the debian-med-commit
mailing list