This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository qmapshack.
commit cfdf626737751b45798953e147212bf2b9a83b2e Author: Bas Couwenberg <sebas...@xs4all.nl> Date: Mon Mar 5 16:13:15 2018 +0100 Add patch to fix build failure with -Werror=format-security. --- debian/changelog | 1 + debian/patches/format-security.patch | 24 ++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 26 insertions(+) diff --git a/debian/changelog b/debian/changelog index f59916e..fa4fee0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ qmapshack (1.11.0-1) UNRELEASED; urgency=medium * Bump Standards-Version to 4.1.3, no changes. * Update copyright years for Oliver Eichler & Norbert Truchsess. * Update compass image paths. + * Add patch to fix build failure with -Werror=format-security. -- Bas Couwenberg <sebas...@debian.org> Mon, 05 Mar 2018 15:22:53 +0100 diff --git a/debian/patches/format-security.patch b/debian/patches/format-security.patch new file mode 100644 index 0000000..ca1e837 --- /dev/null +++ b/debian/patches/format-security.patch @@ -0,0 +1,24 @@ +Description: Fix build failure with -Werror=format-security. + error: format not a string literal and no format arguments [-Werror=format-security] +Author: Bas Couwenberg <sebas...@debian.org> +Forwarded: https://bitbucket.org/maproom/qmt_rgb2pct/pull-requests/1/fix-build-failure-with-werror-format/diff + +--- a/src/qmt_rgb2pct/CApp.cpp ++++ b/src/qmt_rgb2pct/CApp.cpp +@@ -27,14 +27,14 @@ const GDALColorEntry CApp::noColor = {25 + void printStdoutQString(const QString& str) + { + QByteArray array = str.toUtf8(); +- printf(array.data()); ++ printf("%s", array.data()); + printf("\n"); + } + + void printStderrQString(const QString& str) + { + QByteArray array = str.toUtf8(); +- fprintf(stderr, array.data()); ++ fprintf(stderr, "%s", array.data()); + fprintf(stderr, "\n"); + } + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..96ffb92 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +format-security.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/qmapshack.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel