makedeb


hardened-malloc-light 11-1


Hardened memory allocator from GraphaneOS project - Optimized to minimize breakages

Click here to go back to the commit logs for hardened-malloc-light.

Commit:


Hash: b79f5cd0bdb721f7c93b85a572f0f773b0b86a2f

Message: update

Diff


diff --git a/.SRCINFO b/.SRCINFO
index ee6e070..7e2be1f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,11 @@
 generated-by = makedeb-makepkg
 
 pkgbase = hardened-malloc-light
-	pkgdesc = Hardened memory allocator from GraphaneOS project - Added to ld.preload with options to minimize breakages
+	pkgdesc = Hardened memory allocator from GraphaneOS project - Optimized to minimize breakages
 	pkgver = 11
 	pkgrel = 1
 	arch = any
 	makedepends = gcc
-	conflicts = hardened-malloc
 	source = https://github.com/GrapheneOS/hardened_malloc/archive/refs/tags/11.tar.gz
 	sha256sums = 14331990899b91f9323230c280d66f0d1a77c386eb5d206d4cd0d8b5683098da
 
diff --git a/PKGBUILD b/PKGBUILD
index 558e808..4b9cb2c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,10 +2,9 @@
 pkgname=hardened-malloc-light
 pkgver=11
 pkgrel=1
-pkgdesc="Hardened memory allocator from GraphaneOS project - Added to ld.preload with options to minimize breakages"
+pkgdesc="Hardened memory allocator from GraphaneOS project - Optimized to minimize breakages"
 arch=('any')
 makedepends=('gcc')
-conflicts=('hardened-malloc')
 
 source=("https://github.com/GrapheneOS/hardened_malloc/archive/refs/tags/${pkgver}.tar.gz")
 sha256sums=('14331990899b91f9323230c280d66f0d1a77c386eb5d206d4cd0d8b5683098da')
@@ -18,10 +17,8 @@ build() {
 package() {
 	cd hardened_malloc-${pkgver}
 	mkdir -p "${pkgdir}/usr/local/lib/"
-	mkdir -p "${pkgdir}/etc/ld.so.conf.d/"
 	mkdir -p "${pkgdir}/etc/sysctl.d/"
 
-	echo "/usr/local/lib/libhardened_malloc.so" > "${pkgdir}/etc/ld.so.conf.d/hardened_malloc.conf"
-	echo "vm.max_map_count = 1048576" > "${pkgdir}/etc/sysctl.d/hardened_malloc.conf"
+	echo "vm.max_map_count = 1048576" > "${pkgdir}/etc/sysctl.d/hardened_malloc-light.conf"
 	install -Dm775 out-light/libhardened_malloc-light.so "${pkgdir}/usr/local/lib/"
 }