[med-svn] [Git][med-team/libmmap-allocator][master] 5 commits: Add patch to get package cross-building

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Sun May 26 11:32:05 BST 2024



Nilesh Patra pushed to branch master at Debian Med / libmmap-allocator


Commits:
df9fcfaa by Nilesh Patra at 2024-05-26T15:26:12+05:30
Add patch to get package cross-building

- - - - -
f5a37322 by Nilesh Patra at 2024-05-26T15:27:13+05:30
d/rules: Use dh_auto_build instead of hardcoding MAKE

- - - - -
4b774a89 by Nilesh Patra at 2024-05-26T15:27:19+05:30
Revert "Install shared lib as well"

This reverts commit f5227650a16a6340a8bccf2b3a9ea169e375cbff.

- - - - -
f3ce162f by Nilesh Patra at 2024-05-26T15:31:20+05:30
Add patch for hardening opts

- - - - -
bd89e519 by Nilesh Patra at 2024-05-26T15:35:05+05:30
Upload to unstable

- - - - -


6 changed files:

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


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,14 @@
+libmmap-allocator (0.4.0+git20200122.adbfbe1-2) unstable; urgency=medium
+
+  * Team Upload.
+  * Install shared lib as well
+  * Bump Standards-Version to 4.7.0 (no changes needed)
+  * Add patch to get package cross-building
+  * d/rules: Use dh_auto_build instead of hardcoding MAKE
+  * Add patch for hardening opts
+
+ -- Nilesh Patra <nilesh at iki.fi>  Sun, 26 May 2024 15:34:47 +0530
+
 libmmap-allocator (0.4.0+git20200122.adbfbe1-1) unstable; urgency=medium
 
   * For iitii package the latest commit is needed


=====================================
debian/install
=====================================
@@ -1,4 +1,4 @@
 #!/usr/bin/dh-exec
 *.h			usr/include
-libmmap_allocator.so	usr/lib/${DEB_HOST_MULTIARCH}
+#libmmap_allocator.so	usr/lib/${DEB_HOST_MULTIARCH}
 libmmap_allocator.a	usr/lib/${DEB_HOST_MULTIARCH}


=====================================
debian/patches/cross.patch
=====================================
@@ -0,0 +1,35 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,3 +1,6 @@
++CC ?= gcc
++CXX ?= g++
++AR ?= ar
+ CPPFLAGS=-g -Wall -fPIC
+ CFLAGS=-g -Wall -fPIC
+ 
+@@ -20,10 +23,10 @@
+ debug: clean all
+ 
+ libmmap_allocator.so: mmap_file_pool.o
+-	g++ -shared -o libmmap_allocator.so mmap_file_pool.o
++	$(CXX) -shared -o libmmap_allocator.so mmap_file_pool.o
+ 
+ libmmap_allocator.a: mmap_file_pool.o
+-	ar r libmmap_allocator.a mmap_file_pool.o
++	$(AR) r libmmap_allocator.a mmap_file_pool.o
+ 
+ install_sources: $(SOURCES)
+ 	cp $(SOURCES) $(SRC_INSTALL_TARGET_DIR)
+@@ -41,10 +44,10 @@
+ 	bash -c 'export LD_LIBRARY_PATH=. ; ./test_allocator'
+ 
+ test_allocator: mmap_allocator.h mmap_file_pool.o test_allocator.o $(LIBRARIES)
+-	g++ test_allocator.o -L. -lmmap_allocator -o test_allocator
++	$(CXX) test_allocator.o -L. -lmmap_allocator -o test_allocator
+ 
+ test_mmap_fixed: test_mmap_fixed.c
+-	gcc $(CFLAGS) test_mmap_fixed.c -o test_mmap_fixed
++	$(CC) $(CFLAGS) test_mmap_fixed.c -o test_mmap_fixed
+ 
+ clean:
+ 	rm -f test_allocator test_mmap_fixed testfile testfile2 *.o $(LIBRARIES)


=====================================
debian/patches/hardening.patch
=====================================
@@ -0,0 +1,22 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,8 +1,8 @@
+ CC ?= gcc
+ CXX ?= g++
+ AR ?= ar
+-CPPFLAGS=-g -Wall -fPIC
+-CFLAGS=-g -Wall -fPIC
++CPPFLAGS += -g -Wall -fPIC
++CFLAGS += -g -Wall -fPIC
+ 
+ # Enable to test with GCC 3.4
+ # CXX=g++34
+@@ -23,7 +23,7 @@
+ debug: clean all
+ 
+ libmmap_allocator.so: mmap_file_pool.o
+-	$(CXX) -shared -o libmmap_allocator.so mmap_file_pool.o
++	$(CXX) -shared -o libmmap_allocator.so mmap_file_pool.o $(LDFLAGS)
+ 
+ libmmap_allocator.a: mmap_file_pool.o
+ 	$(AR) r libmmap_allocator.a mmap_file_pool.o


=====================================
debian/patches/series
=====================================
@@ -1 +1,3 @@
 # soname.patch
+cross.patch
+hardening.patch


=====================================
debian/rules
=====================================
@@ -6,7 +6,7 @@
 	dh $@
 
 override_dh_auto_build:
-	$(MAKE) libmmap_allocator.so libmmap_allocator.a
+	dh_auto_build -- libmmap_allocator.so libmmap_allocator.a
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))



View it on GitLab: https://salsa.debian.org/med-team/libmmap-allocator/-/compare/e083ff5f29832c2c513c6e36b40e01eb707c2a03...bd89e5196543e74f79e21108591b063e15a9d051

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/med-team/libmmap-allocator/-/compare/e083ff5f29832c2c513c6e36b40e01eb707c2a03...bd89e5196543e74f79e21108591b063e15a9d051
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/20240526/e8210a50/attachment-0001.htm>


More information about the debian-med-commit mailing list