openorienteering-mapper (0.9.5-3.1) unstable; urgency=medium
authorDmitry Shachnev <mitya57@debian.org>
Sun, 9 Jul 2023 20:48:02 +0000 (21:48 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 9 Jul 2023 20:48:02 +0000 (21:48 +0100)
  * Non-maintainer upload.
  * Add a patch to make the QPainterTest pass with Qt 5.15.9
    (closes: #1038402).

[dgit import unpatched openorienteering-mapper 0.9.5-3.1]

17 files changed:
1  2 
debian/README.source
debian/changelog
debian/clean
debian/control
debian/copyright
debian/gbp.conf
debian/openorienteering-mapper.lintian-overrides
debian/openorienteering-mapper.manpages
debian/patches/fix-help-data-dir.patch
debian/patches/proj8.2.0.patch
debian/patches/proj8.patch
debian/patches/qt-5.15.9.patch
debian/patches/series
debian/rules
debian/source/format
debian/upstream/metadata
debian/watch

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a101d80de2ee8d97440c241773edea339a052716
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,34 @@@
++# Updating the Git repository to a new upstream version
++
++1. Add the upstream git repository to our checkout as an additional
++   remote if not already present.
++
++   # git remote add upstream git@github.com:OpenOrienteering/mapper.git
++
++2. Update all remotes
++
++   # git remote update
++
++3. Download the new upstream release
++
++   # uscan --download
++
++   or, a particular upstream release
++
++   # uscan --download-version X.Y.Z
++
++4. Merge the upstream release tag to the debian branch
++
++   # git checkout debian
++   # git merge vX.Y.Z
++
++5. Commit the upstream tarball to the pristine-tar branch
++
++   # pristine-tar commit ../openorienteering-mapper_X.Y.Z.orig.tar.gz vX.Y.Z
++
++6. Push the changes to salsa
++
++   # git push origin debian
++   # git push origin pristine-tar
++
++ -- Gaudenz Steinlin <gaudenz@debian.org>, Mon, 26 Mar 2018 23:13:01 +0200
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f1292ada3c2779bbdcb08b9d9355de8a91d05d53
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,211 @@@
++openorienteering-mapper (0.9.5-3.1) unstable; urgency=medium
++
++  * Non-maintainer upload.
++  * Add a patch to make the QPainterTest pass with Qt 5.15.9
++    (closes: #1038402).
++
++ -- Dmitry Shachnev <mitya57@debian.org>  Sun, 09 Jul 2023 23:48:02 +0300
++
++openorienteering-mapper (0.9.5-3) unstable; urgency=medium
++
++  * Cherry-pick upstream commit updating expected
++    test failures with PROJ 8.2.0 (Closes: #998827)
++
++ -- Graham Inggs <ginggs@debian.org>  Tue, 28 Dec 2021 09:45:41 +0000
++
++openorienteering-mapper (0.9.5-2) unstable; urgency=medium
++
++  [ Bas Couwenberg ]
++  * Add patch to fix FTBFS with PROJ 8.
++    (closes: #983254)
++
++ -- Graham Inggs <ginggs@debian.org>  Sun, 24 Oct 2021 08:00:58 +0000
++
++openorienteering-mapper (0.9.5-1) unstable; urgency=medium
++
++  * New upstream release
++  * Refresh fix-help-data-dir.patch
++  * Export XDG_RUNTIME_DIR for QSettings
++  * Update location of extra license file
++  * Bump Standards-Version to 4.6.0, no changes
++
++ -- Graham Inggs <ginggs@debian.org>  Sat, 25 Sep 2021 09:47:16 +0000
++
++openorienteering-mapper (0.9.4-2) unstable; urgency=medium
++
++  [ Vagrant Cascadian ]
++  * debian/rules: Disable fixfilepath feature, as it triggers
++    build failures when enabled, see #972294
++
++  [ Graham Inggs ]
++  * Bump Standards-Version to 4.5.1, no changes
++
++ -- Graham Inggs <ginggs@debian.org>  Mon, 11 Jan 2021 10:50:08 +0000
++
++openorienteering-mapper (0.9.4-1) unstable; urgency=medium
++
++  * New upstream release
++  * Switch to debhelper 13
++  * Build with -Wno-dev to suppress project developer warnings
++  * Add build dependencies on Qt5 sensors, positioning and
++    serial port libraries
++  * Set a writable HOME to prevent a FTBFS on the buildds
++  * Mark fix-help-data-dir.patch not needed by upstream
++  * Add Lintian overrides for spelling error false positives
++
++ -- Graham Inggs <ginggs@debian.org>  Sun, 18 Oct 2020 11:10:11 +0000
++
++openorienteering-mapper (0.9.3-1) unstable; urgency=medium
++
++  * New upstream release
++
++ -- Graham Inggs <ginggs@debian.org>  Wed, 27 May 2020 10:07:46 +0000
++
++openorienteering-mapper (0.9.2-1) unstable; urgency=medium
++
++  [ Graham Inggs ]
++  * New upstream release
++  * Refresh fix-help-data-dir.patch
++  * Update debian/copyright
++  * Bump Standards-Version to 4.5.0, no changes
++
++  [ Debian Janitor ]
++  * Use secure URI in Homepage field
++  * Set upstream metadata fields: Bug-Database, Bug-Submit,
++    Repository, Repository-Browse
++
++ -- Graham Inggs <ginggs@debian.org>  Mon, 11 May 2020 19:51:27 +0000
++
++openorienteering-mapper (0.9.1-1) unstable; urgency=medium
++
++  * New upstream release
++  * Update debian/watch to ignore pre-release versions
++  * Refresh fix-help-data-dir.patch
++  * Do not define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H, no longer needed
++  * Update debian/copyright
++  * Bump Standards-Version to 4.4.1, no changes
++  * Add build dependency on qt5-image-formats-plugins
++
++ -- Graham Inggs <ginggs@debian.org>  Mon, 16 Dec 2019 07:41:29 +0000
++
++openorienteering-mapper (0.8.4-2) unstable; urgency=medium
++
++  * Define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H for PROJ 6.0.0 compatibility,
++    thanks Bas Couwenberg (Closes: #931935)
++  * Switch to debhelper 12
++  * Set Rules-Requires-Root: no
++  * Bump Standards-Version to 4.4.0, no changes
++
++ -- Graham Inggs <ginggs@debian.org>  Fri, 30 Aug 2019 13:35:14 +0000
++
++openorienteering-mapper (0.8.4-1) unstable; urgency=medium
++
++  * New upstream release
++  * Refresh fix-help-data-dir.patch
++  * Update debian/watch to ignore preview snapshots
++  * Bump Standards-Version to 4.3.0, no changes
++
++ -- Graham Inggs <ginggs@debian.org>  Tue, 25 Dec 2018 11:21:02 +0000
++
++openorienteering-mapper (0.8.1.1-1) unstable; urgency=medium
++
++  [ Gaudenz Steinlin ]
++  * New upstream release
++    - Fix build on big-endian systems (Closes: #865180)
++    - Fix reproducible builds (Closes: #876934)
++    - Update for PROJ5
++  * Change VCS URLs to salsa.debian.org
++  * Document updating to a new upstream release
++
++  [ Graham Inggs ]
++  * Add Build-Depends on sqlite3
++  * Switch to debhelper compat level 11
++  * Skip tests when DEB_BUILD_OPTIONS=nocheck
++  * Bump Standards-Version to 4.1.3, no changes
++
++ -- Graham Inggs <ginggs@debian.org>  Thu, 29 Mar 2018 13:49:31 +0000
++
++openorienteering-mapper (0.7.0-1) unstable; urgency=medium
++
++  * New upstream release
++  * Add Build-Depends on libgdal-dev
++  * Update fix-help-data-dir.patch
++  * Do not build with -mno-rla on mips64el, no longer needed
++  * Remove extra license file and replace it with a symlink
++  * Strip RPATH from /usr/bin/Mapper
++  * Bump Standards-Version to 4.1.0, no changes
++
++ -- Graham Inggs <ginggs@debian.org>  Mon, 11 Sep 2017 14:11:05 +0000
++
++openorienteering-mapper (0.6.8-3) unstable; urgency=medium
++
++  * Build with -mno-lra on mips64el to avoid FTBFS, see #871514
++
++ -- Graham Inggs <ginggs@debian.org>  Thu, 31 Aug 2017 15:41:19 +0000
++
++openorienteering-mapper (0.6.8-2) unstable; urgency=medium
++
++  * Upload to unstable, fixes build with GCC 7 (Closes: #871820)
++  * Add myself to Uploaders
++  * Remove duplicate .desktop entry and icons (Closes: #853952)
++  * Use secure URIs for VCS fields
++  * Switch to debhelper compat level 10
++  * Update debian/copyright
++  * Bump Standards-Version to 4.0.1, no further changes
++  * Drop start wrapper that set QT_SELECT, no longer required,
++    fixes opening files with spaces in their names (Closes: #872291)
++  * Enable all build-time tests again, fixed upstream
++
++ -- Graham Inggs <ginggs@debian.org>  Thu, 17 Aug 2017 12:41:15 +0000
++
++openorienteering-mapper (0.6.8-1) experimental; urgency=medium
++
++  * [6d69f6] New upstream release
++
++ -- Gaudenz Steinlin <gaudenz@debian.org>  Thu, 16 Mar 2017 17:18:31 +0100
++
++openorienteering-mapper (0.6.7-1) unstable; urgency=medium
++
++  * [ffc784] New upstream release
++
++ -- Gaudenz Steinlin <gaudenz@debian.org>  Thu, 22 Dec 2016 08:55:05 +0100
++
++openorienteering-mapper (0.6.6-1) unstable; urgency=medium
++
++  * [9a1799] New upstream release (Closes: #847408)
++
++ -- Gaudenz Steinlin <gaudenz@debian.org>  Tue, 13 Dec 2016 15:52:35 +0100
++
++openorienteering-mapper (0.6.5-1) unstable; urgency=medium
++
++  * [129c93] New upstream release (Closes: #839205)
++  * [9a7095] Update watch file to point to github (Closes: #839205)
++
++ -- Gaudenz Steinlin <gaudenz@debian.org>  Fri, 30 Sep 2016 10:36:50 +0200
++
++openorienteering-mapper (0.6.3-2) unstable; urgency=medium
++
++  * [5723e4] Update copyright information
++
++ -- Gaudenz Steinlin <gaudenz@debian.org>  Fri, 01 Jul 2016 16:24:51 +0200
++
++openorienteering-mapper (0.6.3-1) unstable; urgency=medium
++
++  * New upstream release
++  * [bd2e4e] Remove enable-tests-in-release-build.patch applied upstream
++  * [1ee6ca] Build-depend on qtbase5-private-dev and libcups2-dev
++  * [17b3b6] Add doxygen to build dependencies
++  * [d78d2b] Add zlib1g-dev to build dependencies
++  * [7a100f] Exclude test which currently fail
++  * [2ef3f5] Update Hompage control field
++  * [6dda6c] Update standards version to 3.9.8 (no changes)
++  * [b1fc9a] Refresh patch for upstream version 0.6.3
++  * [1d5247] Disable currently failing autosave test
++
++ -- Gaudenz Steinlin <gaudenz@debian.org>  Thu, 30 Jun 2016 22:25:53 +0200
++
++openorienteering-mapper (0.5.96-1) unstable; urgency=low
++
++  * Initial release (Closes: #773110)
++
++ -- Gaudenz Steinlin <gaudenz@debian.org>  Tue, 22 Sep 2015 23:09:55 +0200
diff --cc debian/clean
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3d6866b9167a653e15e32d533050087515e54cda
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++debian/home/
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..71d8b514d3dbacbb1bab6419a285c766a9172ef6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,52 @@@
++Source: openorienteering-mapper
++Section: graphics
++Priority: optional
++Maintainer: Gaudenz Steinlin <gaudenz@debian.org>
++Uploaders: Graham Inggs <ginggs@debian.org>
++Build-Depends: chrpath,
++               cmake,
++               debhelper-compat (= 13),
++               doxygen,
++               libcups2-dev,
++               libgdal-dev,
++               libpolyclipping-dev,
++               libproj-dev,
++               libqt5sensors5-dev,
++               libqt5serialport5-dev,
++               libqt5sql5-sqlite,
++               pkg-config,
++               qt5-image-formats-plugins,
++               qtbase5-dev,
++               qtbase5-private-dev,
++               qtpositioning5-dev,
++               qttools5-dev,
++               qttools5-dev-tools,
++               sqlite3,
++               xauth,
++               xvfb,
++               zlib1g-dev
++Standards-Version: 4.6.0
++Rules-Requires-Root: no
++Homepage: https://www.openorienteering.org/apps/mapper/
++Vcs-Git: https://salsa.debian.org/debian/openorienteering-mapper.git
++Vcs-Browser: https://salsa.debian.org/debian/openorienteering-mapper
++
++Package: openorienteering-mapper
++Architecture: any
++Depends: qttools5-dev-tools, ${misc:Depends}, ${shlibs:Depends}
++Description: Orienteering map drawing application
++ OpenOrienteering Mapper is an application to draw maps for forest,
++ sprint, MTB and radio orienteering races. It comes with predefined
++ symbol sets implementing the IOF standards ISOM (1:15000, 1:10000)
++ and ISSOM (1:5000, 1:4000). It is easy to implement additional symbol
++ sets.
++ .
++ It provides a Free alternative to existing proprietary map drawing
++ applications and supports multiple platforms. It is available for
++ Android, Windows, Mac OS X and Linux.
++ .
++ While it is under continuous development and considered in beta
++ state, it has been used to produce maps for orienteering races. All
++ required functions for drawing maps are implemented and the program
++ works very stable. So it can be considered ready for productive use,
++ although it is like always a good idea to keep backups of your files.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..45e643e2bf1fd5a6d86e8601961a5dcf0b6bafec
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,96 @@@
++Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: openorienteering-mapper
++Source: https://github.com/OpenOrienteering/mapper
++
++Files: *
++Copyright: 2012-2017 Thomas Schöps
++           2012-2020 Kai Pastor
++           2012, 2013 Pete Curtis
++           2012, 2013 Jan Dalheimer
++License: GPL-3+
++
++Files: 3rd-party/qtsingleapplication/src/*
++Copyright: 2013 Digia Plc and/or its subsidiary(-ies)
++License: BSD-3-clause
++
++Files: test/tst_qglobal.*
++Copyright: 2016 The Qt Company Ltd
++License: GPL-3
++
++Files: src/util/qoverload.h
++Copyright: 2016 The Qt Company Ltd / 2016 Intel Corporation
++License: GPL-3
++
++Files: src/util/qasconst.h
++Copyright: 2016 The Qt Company Ltd / 2016 Intel Corporation
++License: GPL-3
++
++Files: debian/*
++Copyright: 2014-2019 Gaudenz Steinlin <gaudenz@debian.org>
++           2019-2020 Graham Inggs <ginggs@debian.org>
++License: GPL-3+
++
++License: GPL-3+
++ This program is free software: you can redistribute it and/or modify
++ it under the terms of the GNU General Public License as published by
++ the Free Software Foundation, either version 3 of the License, or
++ (at your option) any later version.
++ .
++ This package is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ GNU General Public License for more details.
++ .
++ You should have received a copy of the GNU General Public License
++ along with this program. If not, see <http://www.gnu.org/licenses/>.
++ .
++ On Debian systems, the complete text of the GNU General
++ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
++
++License: GPL-3
++ This is a modified version of a file from the Qt Toolkit.
++ You can redistribute it and/or modify it under the terms of
++ the GNU General Public License, version 3, as published by
++ the Free Software Foundation.
++ .
++ OpenOrienteering is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ GNU General Public License for more details.
++ .
++ You should have received a copy of the GNU General Public License
++ along with OpenOrienteering.  If not, see <http://www.gnu.org/licenses/>
++ .
++ On Debian systems, the complete text of the GNU General
++ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
++
++License: BSD-3-clause
++ This file is part of a Qt Solutions component.
++ .
++ You may use this file under the terms of the BSD license as follows:
++ .
++ "Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions are
++ met:
++   * Redistributions of source code must retain the above copyright
++     notice, this list of conditions and the following disclaimer.
++   * Redistributions in binary form must reproduce the above copyright
++     notice, this list of conditions and the following disclaimer in
++     the documentation and/or other materials provided with the
++     distribution.
++   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
++     the names of its contributors may be used to endorse or promote
++     products derived from this software without specific prior written
++     permission.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
++ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
++ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
++ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
++ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
diff --cc debian/gbp.conf
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..37aab801cce131b29bf6897854c3e2d206d0ce2b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,5 @@@
++[DEFAULT]
++debian-branch = debian
++
++[dch]
++git-log=--author=gaudenz@debian.org --no-max-parents
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6df3d48d6a5163864919c528c6bc1a79b2b4ac6a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++# False positive, German text
++openorienteering-mapper: spelling-error-in-binary usr/bin/Mapper Programm Program
++# False positive, French text
++openorienteering-mapper: spelling-error-in-binary usr/bin/Mapper exemple example
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1c234a242487479531c1311b89ae9463f1ba4e10
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++doc/man/Mapper.1
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..da1a2988925f3104c4b3300f422420a8882e4685
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,19 @@@
++Description: Fix path to help files and QT assistant
++ Install Manual and About files to /usr/share/openorienteering-mapper/doc/
++ instead of /usr/share/doc/openorienteering-mapper/.
++Author: Graham Inggs <ginggs@debian.org>
++Forwarded: not-needed
++Last-Update: 2021-09-24
++---
++This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
++--- a/CMakeLists.txt
+++++ b/CMakeLists.txt
++@@ -125,7 +125,7 @@
++      set(MAPPER_RUNTIME_DESTINATION "${BIN_INSTALL_DIR}")
++      set(MAPPER_LIBRARY_DESTINATION "${LIB_INSTALL_DIR}")
++      set(MAPPER_DATA_DESTINATION    "${SHARE_INSTALL_DIR}/${Mapper_PACKAGE_NAME}")
++-     set(MAPPER_ABOUT_DESTINATION   "${SHARE_INSTALL_DIR}/doc/${Mapper_PACKAGE_NAME}")
+++     set(MAPPER_ABOUT_DESTINATION   "${SHARE_INSTALL_DIR}/${Mapper_PACKAGE_NAME}/doc")
++ elseif(WIN32)
++      set(MAPPER_RUNTIME_DESTINATION .)
++      set(MAPPER_LIBRARY_DESTINATION .)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1a9714f5dd8f3b6a0d0788b80e358f8260ec286b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,34 @@@
++Description: TemplateTest: Update expected fails for PROJ 8.2.0
++Origin: upstream, https://github.com/OpenOrienteering/mapper/commit/e247f7270fc36ac9c62abe2f179a891d1df98616
++Author: Kai Pastor <dg0yt@darc.de>
++Last-Update: 2021-12-17
++
++--- a/test/template_t.cpp
+++++ b/test/template_t.cpp
++@@ -51,6 +51,8 @@
++ 
++ #ifdef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
++ #  include <proj_api.h>
+++#else
+++#  include <proj.h>
++ #endif
++ 
++ #include "test_config.h"
++@@ -444,7 +446,7 @@
++              QVERIFY(map.getTemplate(template_index)->loadTemplateFile());
++              QCOMPARE(temp->getTemplateState(), Template::Loaded);
++ 
++-#if !defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) || PJ_VERSION >= 600
+++#if (!defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) && (PROJ_VERSION_MAJOR)*100+(PROJ_VERSION_MINOR) < 802) || PJ_VERSION >= 600
++              QEXPECT_FAIL("TemplateTrack from v0.8.4", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
++ #else
++              QEXPECT_FAIL("TemplateTrack NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
++@@ -567,7 +569,7 @@
++                      ogr_template_center = center(temp);
++              }
++              
++-#if !defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) || PJ_VERSION >= 600
+++#if (!defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) && (PROJ_VERSION_MAJOR)*100+(PROJ_VERSION_MINOR) < 802) || PJ_VERSION >= 600
++              QEXPECT_FAIL("TemplateTrack NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
++              QEXPECT_FAIL("OgrTemplate NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
++ #endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..487dc12a01c151a5ea6357230decb4adb444a1d8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,29 @@@
++Description: Add support for proj.h, proj_api.h is removed in PROJ 8.
++Author: Bas Couwenberg <sebastic@debian.org>
++Bug-Debian: https://bugs.debian.org/983254
++Forwarded: https://github.com/OpenOrienteering/mapper/pull/1994
++
++--- a/cmake/FindPROJ4.cmake
+++++ b/cmake/FindPROJ4.cmake
++@@ -91,6 +91,21 @@ if(PROJ4_INCLUDE_DIR AND EXISTS "${PROJ4
++     string(REGEX REPLACE "^.*PJ_VERSION [0-9][0-9]([0-9]).*$" "\\1" PROJ4_VERSION_PATCH "${PROJ4_H}")
++     set(PROJ4_VERSION "${PROJ4_VERSION_MAJOR}.${PROJ4_VERSION_MINOR}.${PROJ4_VERSION_PATCH}")
++     set(PROJ4_VERSION_COUNT 3)
+++else()
+++    find_path(PROJ4_INCLUDE_DIR NAMES proj.h ${_PROJ4_SEARCH} PATH_SUFFIXES include)
+++    mark_as_advanced(PROJ4_INCLUDE_DIR)
+++
+++    if(PROJ4_INCLUDE_DIR AND EXISTS "${PROJ4_INCLUDE_DIR}/proj.h")
+++        file(STRINGS "${PROJ4_INCLUDE_DIR}/proj.h" PROJ_VERSION_MAJOR REGEX "^#define PROJ_VERSION_MAJOR [0-9]+$")
+++        file(STRINGS "${PROJ4_INCLUDE_DIR}/proj.h" PROJ_VERSION_MINOR REGEX "^#define PROJ_VERSION_MINOR [0-9]+$")
+++        file(STRINGS "${PROJ4_INCLUDE_DIR}/proj.h" PROJ_VERSION_PATCH REGEX "^#define PROJ_VERSION_PATCH [0-9]+$")
+++
+++        string(REGEX REPLACE "^.*PROJ_VERSION_[A-Z]+ ([0-9]).*$" "\\1" PROJ4_VERSION_MAJOR "${PROJ_VERSION_MAJOR}")
+++        string(REGEX REPLACE "^.*PROJ_VERSION_[A-Z]+ ([0-9]).*$" "\\1" PROJ4_VERSION_MINOR "${PROJ_VERSION_MINOR}")
+++        string(REGEX REPLACE "^.*PROJ_VERSION_[A-Z]+ ([0-9]).*$" "\\1" PROJ4_VERSION_PATCH "${PROJ_VERSION_PATCH}")
+++        set(PROJ4_VERSION "${PROJ4_VERSION_MAJOR}.${PROJ4_VERSION_MINOR}.${PROJ4_VERSION_PATCH}")
+++        set(PROJ4_VERSION_COUNT 3)
+++    endif()
++ endif()
++ 
++ # Allow PROJ4_LIBRARY to be set manually, as the location of the proj library
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7672e26ed940edddd9a5ebb82232fcacbbf38db3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,60 @@@
++Description: make QPainterTest pass with Qt 5.15.9
++ https://bugreports.qt.io/browse/QTBUG-100327 was fixed in 5.15.9,
++ so now we have a good result from the beginning and don't need
++ ImageTransparencyFixup.
++Author: Dmitry Shachnev <mitya57@debian.org>
++Forwarded: https://github.com/OpenOrienteering/mapper/pull/2156
++Last-Update: 2023-07-09
++
++--- a/src/core/image_transparency_fixup.h
+++++ b/src/core/image_transparency_fixup.h
++@@ -57,6 +57,9 @@ public:
++       * 
++       * The image must be of QImage::Format_ARGB32_Premultiplied.
++       * It may be null.
+++      *
+++      * This fixup is needed for Qt5 < 5.15.9 and Qt6 < 6.2.4 which are
+++      * affected by https://bugreports.qt.io/browse/QTBUG-100327.
++       */
++      inline ImageTransparencyFixup(QImage* image)
++      : dest(0), dest_end(0)
++@@ -81,11 +84,13 @@ public:
++       */
++      inline void operator()() const
++      {
+++#if QT_VERSION < QT_VERSION_CHECK(5, 15, 9) || (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT_VERSION < QT_VERSION_CHECK(6, 2, 4))
++              for (QRgb* px = dest; px < dest_end; px++)
++              {
++                      if (*px == 0x01000000) /* qRgba(0, 0, 0, 1) */
++                              *px = 0x00000000;  /* qRgba(0, 0, 0, 0) */
++              }
+++#endif
++      }
++      
++ protected:
++--- a/test/qpainter_t.cpp
+++++ b/test/qpainter_t.cpp
++@@ -80,9 +80,10 @@ void QPainterTest::multiplyComposition()
++      QCOMPARE(compose(white_img, white_img, multiply).pixel(0,0), qRgba(255, 255, 255, 255));
++      QCOMPARE(compose(black_img, black_img, multiply).pixel(0,0), qRgba(0, 0, 0, 255));
++      
+++#if QT_VERSION < QT_VERSION_CHECK(5, 15, 9) || (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT_VERSION < QT_VERSION_CHECK(6, 2, 4))
++      QEXPECT_FAIL("", "CompositionMode_Multiply incorrectly composes full transparency.", Continue);
+++#endif
++      QCOMPARE(compose(trans_img, trans_img, multiply).pixel(0,0), qRgba(0, 0, 0, 0));
++-     QCOMPARE(compose(trans_img, trans_img, multiply).pixel(0,0), qRgba(0, 0, 0, 1)); // This should fail!
++      
++      // ImageTransparencyFixup fixes the particular issue.
++      QImage result = compose(trans_img, trans_img, multiply);
++@@ -107,9 +108,10 @@ void QPainterTest::darkenComposition()
++      QCOMPARE(compose(white_img, white_img, darken).pixel(0,0), qRgba(255, 255, 255, 255));
++      QCOMPARE(compose(black_img, black_img, darken).pixel(0,0), qRgba(0, 0, 0, 255));
++      
+++#if QT_VERSION < QT_VERSION_CHECK(5, 15, 9) || (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT_VERSION < QT_VERSION_CHECK(6, 2, 4))
++      QEXPECT_FAIL("", "CompositionMode_Darken incorrectly composes full transparency.", Continue);
+++#endif
++      QCOMPARE(compose(trans_img, trans_img, darken).pixel(0,0), qRgba(0, 0, 0, 0));
++-     QCOMPARE(compose(trans_img, trans_img, darken).pixel(0,0), qRgba(0, 0, 0, 1)); // This should fail!
++      
++      // ImageTransparencyFixup fixes the particular issue.
++      QImage result = compose(trans_img, trans_img, darken);
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8071759153877d954d2d9ee82f10c610d2d57911
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++fix-help-data-dir.patch
++proj8.patch
++proj8.2.0.patch
++qt-5.15.9.patch
diff --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cddec1cad3eaab4d90453d33987413b3c0c89230
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,57 @@@
++#!/usr/bin/make -f
++# See debhelper(7) (uncomment to enable)
++# output every command that modifies files on the build system.
++#DH_VERBOSE = 1
++
++# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
++DPKG_EXPORT_BUILDFLAGS = 1
++include /usr/share/dpkg/default.mk
++
++# see FEATURE AREAS in dpkg-buildflags(1)
++#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath
++
++# see ENVIRONMENT in dpkg-buildflags(1)
++# package maintainers to append CFLAGS
++#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
++# package maintainers to append LDFLAGS
++#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
++
++PKGDIR = $(CURDIR)/debian/openorienteering-mapper
++
++# QSettings needs a writable HOME
++export HOME = $(CURDIR)/debian/home
++export XDG_RUNTIME_DIR = $(HOME)
++
++# main packaging script based on dh7 syntax
++%:
++      dh $@
++
++# debmake generated override targets
++# This is example for Cmake (See http://bugs.debian.org/641051 )
++override_dh_auto_configure:
++      dh_auto_configure -- \
++      -DCMAKE_BUILD_TYPE=Release \
++      -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
++      -DMapper_BUILD_QT=OFF \
++      -DMapper_BUILD_CLIPPER=OFF \
++      -DMapper_BUILD_PROJ=OFF \
++      -DMapper_BUILD_PACKAGE=OFF \
++      -DMapper_AUTORUN_UNIT_TESTS=OFF \
++      -DMapper_AUTORUN_SYSTEM_TESTS=OFF \
++      -Wno-dev
++
++override_dh_auto_install:
++      dh_auto_install
++      # remove extra license file and replace it with a symlink
++      rm -f $(PKGDIR)/usr/share/doc/openorienteering-mapper/common-licenses/GPL-3.txt
++      ln -s /usr/share/common-licenses/GPL-3 $(PKGDIR)/usr/share/doc/openorienteering-mapper/common-licenses/GPL-3.txt
++      # strip RPATH from /usr/bin/Mapper
++      /usr/bin/chrpath -d $(PKGDIR)/usr/bin/Mapper
++
++override_dh_auto_test:
++ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
++      # The tests need a running X server, so use Xvfb to run the tests in automated
++      # build environments.
++      cd obj-$(DEB_HOST_GNU_TYPE) ; xvfb-run /usr/bin/ctest --force-new-ctest-process -j1 --extra-verbose
++endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (quilt)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1b2fcd82dc683bdaaddcc70813275d3b1aebbbb6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++Bug-Database: https://github.com/OpenOrienteering/mapper/issues
++Bug-Submit: https://github.com/OpenOrienteering/mapper/issues/new
++Repository: https://github.com/OpenOrienteering/mapper.git
++Repository-Browse: https://github.com/OpenOrienteering/mapper
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a0420ec1963015f5e8e015107bbf30b9b08af816
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++version=4
++
++opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/openorienteering-mapper-$1\.tar\.gz/ \
++  https://github.com/OpenOrienteering/mapper/tags .*/v?(\d\.\S*)\.tar\.gz