Remove build flags from output of -vvv for reproducible builds
authorSamuel Henrique <sameuloph@debian.org>
Sat, 5 Mar 2022 19:26:21 +0000 (19:26 +0000)
committerSamuel Henrique <samueloph@debian.org>
Sat, 5 Mar 2022 19:26:21 +0000 (19:26 +0000)
Forwarded: not-needed

===================================================================

Gbp-Pq: Name redact_build_flags.patch

src/settings.cpp.cmake

index 5b65578c0ec0f9d5cc6582b17aadbd993f7a742b..3beeb00336adb15b0c567d1e835cdb943b027c72 100644 (file)
@@ -51,10 +51,13 @@ void print_build_info(bool extended) {
       (WITH_XRM               ? '+' : '-'),
       (WITH_XCURSOR           ? '+' : '-'));
     printf("\n");
-    printf("Build type: @CMAKE_BUILD_TYPE@\n");
-    printf("Compiler: @CMAKE_CXX_COMPILER@\n");
-    printf("Compiler flags: @CMAKE_CXX_FLAGS@ ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}} @cxx_flags_str@\n");
-    printf("Linker flags: @CMAKE_EXE_LINKER_FLAGS@ ${CMAKE_EXE_LINKER_FLAGS_${CMAKE_BUILD_TYPE_UPPER}} @cxx_linker_flags_str@\n");
+    printf("Debian package, build flags removed from output for build reproducibility\n");
+    printf("You can refer to the build logs of your package at:\n");
+    printf("https://buildd.debian.org/status/package.php?p=polybar\n");
+//  printf("Build type: @CMAKE_BUILD_TYPE@\n");
+//  printf("Compiler: @CMAKE_CXX_COMPILER@\n");
+//  printf("Compiler flags: @CMAKE_CXX_FLAGS@ ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}} @cxx_flags_str@\n");
+//  printf("Linker flags: @CMAKE_EXE_LINKER_FLAGS@ ${CMAKE_EXE_LINKER_FLAGS_${CMAKE_BUILD_TYPE_UPPER}} @cxx_linker_flags_str@\n");
   }
 }
 // clang-format on