Package: dh-golang Version: 1.35 Severity: normal Tags: patch Dear Maintainer,
the golang buildsystem should also copy C++ files that have the suffix .cpp, .hpp. Here's a patch. Cheers, -Hilko
>From 66e050aab5628d1fa93cbc47029d45ab7d485ab6 Mon Sep 17 00:00:00 2001 From: Hilko Bengen <ben...@debian.org> Date: Wed, 12 Sep 2018 15:21:26 +0200 Subject: [PATCH] Copy files with .cpp, .hpp suffixes by default --- lib/Debian/Debhelper/Buildsystem/golang.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Debian/Debhelper/Buildsystem/golang.pm b/lib/Debian/Debhelper/Buildsystem/golang.pm index 8e67e76..dfcfcf4 100644 --- a/lib/Debian/Debhelper/Buildsystem/golang.pm +++ b/lib/Debian/Debhelper/Buildsystem/golang.pm @@ -127,8 +127,8 @@ very hard to parse. C<DH_GOLANG_INSTALL_EXTRA> (list of strings, whitespace-separated, default empty) enumerates files and directories which are additionally installed into the build directory. By default, only files with the following extension are -installed: .go, .c, .cc, .h, .hh, .proto, .s. Starting with dh-golang 1.31, -testdata directory contents are installed by default. +installed: .go, .c, .cc, .cpp, .h, .hh, hpp, .proto, .s. Starting with dh-golang +1.31, testdata directory contents are installed by default. Example (in C<debian/rules>): @@ -138,8 +138,8 @@ Example (in C<debian/rules>): C<DH_GOLANG_INSTALL_ALL> (bool, default false) controls whether all files are installed into the build directory. By default, only files with the following -extension are installed: .go, .c, .cc, .h, .hh, .proto, .s. Starting with -dh-golang 1.31, testdata directory contents are installed by default. +extension are installed: .go, .c, .cc, .cpp, .h, .hh, .hpp, .proto, .s. Starting +with dh-golang 1.31, testdata directory contents are installed by default. Example (in C<debian/rules>): @@ -340,8 +340,10 @@ sub configure { '.go' => 1, '.c' => 1, '.cc' => 1, + '.cpp' => 1, '.h' => 1, '.hh' => 1, + '.hpp' => 1, '.proto' => 1, '.s' => 1, ); -- 2.18.0