[med-svn] [Git][med-team/concurrentqueue][master] Propagate hardening flags

Nilesh Patra gitlab at salsa.debian.org
Wed Apr 21 20:28:28 BST 2021



Nilesh Patra pushed to branch master at Debian Med / concurrentqueue


Commits:
0561c008 by Nilesh Patra at 2021-04-22T00:56:29+05:30
Propagate hardening flags

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/hardening.patch
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -10,6 +10,7 @@ concurrentqueue (1.0.3+ds-1) UNRELEASED; urgency=medium
   * Fix copyright
   * Update upstream/metadata
   * Do not install LICENSE.md
+  * Propagate Hardening options (fixes blhc)
 
  -- Nilesh Patra <nilesh at debian.org>  Thu, 22 Apr 2021 00:40:54 +0530
 


=====================================
debian/patches/hardening.patch
=====================================
@@ -0,0 +1,38 @@
+Description: Propagate hardening flags
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2021-04-22
+--- a/build/makefile
++++ b/build/makefile
+@@ -6,6 +6,7 @@
+ 
+ BASE_OPTS = -pthread
+ 
++CXX ?= g++
+ DEBUG_OPTS = -g -O0   # -DMOODYCAMEL_QUEUE_INTERNAL_DEBUG
+ RELEASE_OPTS = -O2 -g -DNDEBUG
+ 
+@@ -31,19 +32,19 @@
+ 
+ bin/unittests$(EXT): ../concurrentqueue.h ../blockingconcurrentqueue.h ../lightweightsemaphore.h ../tests/unittests/unittests.cpp ../tests/unittests/mallocmacro.cpp ../tests/common/simplethread.h ../tests/common/simplethread.cpp ../tests/common/systemtime.h ../tests/common/systemtime.cpp ../tests/corealgos.h ../tests/unittests/minitest.h ../c_api/blockingconcurrentqueue.cpp ../c_api/concurrentqueue.cpp makefile
+ 	test -d bin || mkdir -p bin
+-	g++ -c -std=c++11 -Wall -pedantic-errors -Wpedantic -Wconversion -DMOODYCAMEL_STATIC $(OPTS) -fno-elide-constructors -fno-exceptions ../c_api/blockingconcurrentqueue.cpp ../c_api/concurrentqueue.cpp
+-	g++ -std=c++11 -Wall -pedantic-errors -Wpedantic -Wconversion -DMOODYCAMEL_STATIC $(OPTS) -fno-elide-constructors ../tests/common/simplethread.cpp ../tests/common/systemtime.cpp ../tests/unittests/unittests.cpp blockingconcurrentqueue.o concurrentqueue.o -o bin/unittests$(EXT) $(LD_OPTS)
++	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -std=c++11 -Wall -pedantic-errors -Wpedantic -Wconversion -DMOODYCAMEL_STATIC $(OPTS) -fno-elide-constructors -fno-exceptions ../c_api/blockingconcurrentqueue.cpp ../c_api/concurrentqueue.cpp
++	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -std=c++11 -Wall -pedantic-errors -Wpedantic -Wconversion -DMOODYCAMEL_STATIC $(OPTS) -fno-elide-constructors ../tests/common/simplethread.cpp ../tests/common/systemtime.cpp ../tests/unittests/unittests.cpp blockingconcurrentqueue.o concurrentqueue.o -o bin/unittests$(EXT) $(LD_OPTS) $(LDFLAGS)
+ 
+ bin/fuzztests$(EXT): ../concurrentqueue.h ../tests/fuzztests/fuzztests.cpp ../tests/common/simplethread.h ../tests/common/simplethread.cpp ../tests/common/systemtime.h ../tests/common/systemtime.cpp ../tests/corealgos.h makefile
+ 	test -d bin || mkdir -p bin
+-	g++ -std=c++11 -Wall -pedantic-errors -Wpedantic $(BENCH_OPTS) ../tests/common/simplethread.cpp ../tests/common/systemtime.cpp ../tests/fuzztests/fuzztests.cpp -o bin/fuzztests$(EXT) $(LD_OPTS)
++	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -std=c++11 -Wall -pedantic-errors -Wpedantic $(BENCH_OPTS) ../tests/common/simplethread.cpp ../tests/common/systemtime.cpp ../tests/fuzztests/fuzztests.cpp -o bin/fuzztests$(EXT) $(LD_OPTS) $(LDFLAGS)
+ 
+ bin/benchmarks$(EXT): bin/libtbb.a ../concurrentqueue.h ../benchmarks/benchmarks.cpp ../benchmarks/cpuid.h ../benchmarks/cpuid.cpp ../benchmarks/lockbasedqueue.h ../benchmarks/simplelockfree.h ../tests/common/simplethread.h ../tests/common/simplethread.cpp ../tests/common/systemtime.h ../tests/common/systemtime.cpp makefile
+ 	test -d bin || mkdir -p bin
+-	g++ -std=c++11 -Wall -pedantic-errors -Wpedantic $(BENCH_OPTS) -I../benchmarks ../benchmarks/cpuid.cpp ../tests/common/simplethread.cpp ../tests/common/systemtime.cpp ../benchmarks/benchmarks.cpp -o bin/benchmarks$(EXT) -Lbin -ltbb $(LD_OPTS)
++	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -std=c++11 -Wall -pedantic-errors -Wpedantic $(BENCH_OPTS) -I../benchmarks ../benchmarks/cpuid.cpp ../tests/common/simplethread.cpp ../tests/common/systemtime.cpp ../benchmarks/benchmarks.cpp -o bin/benchmarks$(EXT) -Lbin -ltbb $(LD_OPTS) $(LDFLAGS)
+ 	
+ bin/libtbb.a: makefile
+ 	test -d bin || mkdir -p bin
+-	g++ -std=c++11 -O2 -DNDEBUG -D__TBB_BUILD=1 $(TBB_PLATFORM_OPTS) -I../benchmarks -c ../benchmarks/tbb/cache_aligned_allocator.cpp ../benchmarks/tbb/concurrent_monitor.cpp ../benchmarks/tbb/concurrent_queue.cpp ../benchmarks/tbb/dynamic_link.cpp ../benchmarks/tbb/tbb_misc.cpp
++	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -std=c++11 -O2 -DNDEBUG -D__TBB_BUILD=1 $(TBB_PLATFORM_OPTS) -I../benchmarks -c ../benchmarks/tbb/cache_aligned_allocator.cpp ../benchmarks/tbb/concurrent_monitor.cpp ../benchmarks/tbb/concurrent_queue.cpp ../benchmarks/tbb/dynamic_link.cpp ../benchmarks/tbb/tbb_misc.cpp
+ 	ar -rc bin/libtbb.a cache_aligned_allocator.o concurrent_monitor.o concurrent_queue.o dynamic_link.o tbb_misc.o
+ 	rm -f cache_aligned_allocator.o concurrent_monitor.o concurrent_queue.o dynamic_link.o tbb_misc.o


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 dontBuildBenchmark.patch
 fix-defs.patch
+hardening.patch


=====================================
debian/rules
=====================================
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 export DH_VERBOSE = 1
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
 %:
 	dh $@ --buildsystem=cmake
 



View it on GitLab: https://salsa.debian.org/med-team/concurrentqueue/-/commit/0561c0085612f738f103766ae331bf860cbd55f8

-- 
View it on GitLab: https://salsa.debian.org/med-team/concurrentqueue/-/commit/0561c0085612f738f103766ae331bf860cbd55f8
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210421/a9fc30d8/attachment-0001.htm>


More information about the debian-med-commit mailing list