Bug#1024209: genparse: Fix ftbfs: Use "std=c++14" flag to build
Source: genparse
Version: 0.9.2-1
Followup-For: Bug #984149
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org
Dear Maintainer,
This patch will make this package build with C++14 standard, as this package
doesn`t install any header files in /usr/include, so this patch should be OK.
I tried build on amd64/riscv64 and both succeed with this patch.
Thanks,
Yifan Xu
--- rules 2016-11-10 20:18:01.000000000 +0800
+++ genparse-0.9.2/debian/rules 2022-11-15 17:59:38.254170492 +0800
@@ -4,6 +4,7 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_CPPFLAGS_MAINT_APPEND = -std=c++14
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
RM = \
Description: fix ftbfs: use std=c++14 flag to build
.
genparse (0.9.2-2) unstable; urgency=medium
.
* Add -std=c++14 flag
Author: Yifan Xu <nekorouter@outlook.com>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Bug-Debian: https://bugs.debian.org/984149
Last-Update: 2022-11-15
--- genparse-0.9.2.orig/tests/misc/test-lib.sh
+++ genparse-0.9.2/tests/misc/test-lib.sh
@@ -27,7 +27,7 @@ error_() { echo "$0: $@" 1>&2; exit 1; }
framework_failure() { error_ 'failure in testing framework'; }
CFLAGS=-I.
-CXXFLAGS=-I.
+CXXFLAGS="-std=c++14 -I."
GNULIB_CPPFLAGS=-I$srcdir/../../gnulib/lib
GNULIB_LDFLAGS="-L../../gnulib/lib -lgnu"
Reply to: