Source: neovim-qt
Version: 0.2.16-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
neovim-qt could not be built reproducibly.
This is because it embeds the CFLAGS (via CMAKE_CXX_FLAGS) in an
"About" dialogue, and this environment variable contains the build
path via -ffile-prefix-map etc.
Patch attached that just strips out the CFLAGS; for Debian, we can
simply find these via the buildd logs or similar.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`---- a/debian/patches/reproducible-builds.patch 1970-01-01 01:00:00.000000000
+0100
--- b/debian/patches/reproducible-builds.patch 2020-06-25 10:40:58.190874824
+0100
@@ -0,0 +1,14 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2020-06-25
+
+--- neovim-qt-0.2.16.orig/src/gui/app.cpp
++++ neovim-qt-0.2.16/src/gui/app.cpp
+@@ -347,7 +347,6 @@ void App::showVersionInfo() noexcept
+
+ out << "NVIM-QT v" << PROJECT_VERSION << endl;
+ out << "Build type: " << CMAKE_BUILD_TYPE << endl;
+- out << "Compilation:" << CMAKE_CXX_FLAGS << endl;
+ out << "Qt Version: " << QT_VERSION_STR << endl;
+ out << "Environment: " << endl;
+ out << " nvim: " << nvimExecutable << endl;
--- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series 2020-06-25 10:40:54.558833843 +0100
@@ -0,0 +1 @@
+reproducible-builds.patch