[neon/qt6/pyside6/Neon/release] debian: -werror

Carlos De Maine null at kde.org
Sat Jul 1 07:51:58 BST 2023


Git commit bea2ea01c3fc352b09eed66aeba4c83fb59cd420 by Carlos De Maine.
Committed on 01/07/2023 at 06:51.
Pushed by carlosdem into branch 'Neon/release'.

-werror

M  +5    -1    debian/rules

https://invent.kde.org/neon/qt6/pyside6/-/commit/bea2ea01c3fc352b09eed66aeba4c83fb59cd420

diff --git a/debian/rules b/debian/rules
index 89fb872..a518d47 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,11 @@ export PYBUILD_BUILD_ARGS=--relwithdebinfo --verbose --build-tests --doc-build-o
 export PYBUILD_INSTALL_ARGS_python3=--reuse-build
 
 export MAIN_VERSION_UPSTREAM := $(shell echo $(DEB_VERSION_UPSTREAM))
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+# As per https://wiki.debian.org/HardeningWalkthrough as arm64 has strncpy warnings  
+# To enable all, uncomment following line
+# export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 # Add CPPFLAGS to CXXFLAGS as CMake ignores CPPFLAGS by default
 CXXFLAGS+=$(CPPFLAGS)
 


More information about the Neon-commits mailing list