File: fix-tests-build.patch

package info (click to toggle)
genparse 0.9.3-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,456 kB
  • sloc: ansic: 8,766; cpp: 6,059; sh: 5,336; java: 578; yacc: 482; lex: 315; makefile: 302
file content (28 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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

Index: genparse/tests/misc/test-lib.sh
===================================================================
--- genparse.orig/tests/misc/test-lib.sh
+++ genparse/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"