Subject: [alpine-aports] [PATCH] main/lvm2: added library_dir default config, fixes #4538

From: Dennis Przytarski <[email-masked]>
Date: Sat, 15 Aug 2015 17:23:52 +0000

---
 main/lvm2/APKBUILD                         |  6 +++++-
 main/lvm2/library_dir-default-config.patch | 10 ++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 main/lvm2/library_dir-default-config.patch

diff --git a/main/lvm2/APKBUILD b/main/lvm2/APKBUILD
index 52df39d..471409e 100644
--- a/main/lvm2/APKBUILD
+++ b/main/lvm2/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=lvm2
 pkgver=2.02.127
-pkgrel=1
+pkgrel=2
 pkgdesc="Logical Volume Manager 2 utilities"
 url="http://sourceware.org/lvm2/"
 arch="all"
@@ -12,6 +12,7 @@ makedepends="$depends_dev"
 source="ftp://sources.redhat.com/pub/$pkgname/LVM2.$pkgver.tgz
 	fix-stdio-usage.patch
 	mallinfo.patch
+	library_dir-default-config.patch
 	mlockall-default-config.patch
 	musl-fix-headers.patch
 	lvm.initd
@@ -96,6 +97,7 @@ libs() {
 md5sums="f262c825a4a16498482759a194cc02f5  LVM2.2.02.127.tgz
 2395ae17f924ebf25e9737d02f758f8f  fix-stdio-usage.patch
 3f4a9d57620f240f6bf389c1debc2ba5  mallinfo.patch
+d718e3301f035ebd2e2bbf25df34e817  library_dir-default-config.patch
 67429b087621319a13a9f3840e693b49  mlockall-default-config.patch
 dbfdfc82f68c7f8f3aa0f2f33fa7b542  musl-fix-headers.patch
 cdefa1dbd95caabbf92198764f18a54e  lvm.initd
@@ -104,6 +106,7 @@ ec36d5fe4561220304e406c5c797e71f  lvm.confd
 sha256sums="ce113e82e70f8b89de0f539c5a8e5e904eebc5a6686aafc5ed1f9e881cc4174f  LVM2.2.02.127.tgz
 79c5379cbf660f8dabd45359463c77a40b5a83153b54c67ce36049260dac9071  fix-stdio-usage.patch
 40d2def3e99c13e3ecbaeb79bb863f42e7ae0e47762ebbc0d025962022a6dc3c  mallinfo.patch
+303e19a3933c9ad48112dd3c7ae0dfd86e12b88593c7508d745ba2a885286ffb  library_dir-default-config.patch
 4b5aac7007296080979e6a56831412045cff5490538c77cabf0472a8e382f9e3  mlockall-default-config.patch
 f5d204a665e85c41ee577be872e7564cb0a18495c88eae6cb723e035068f5c5b  musl-fix-headers.patch
 9eea2a296d63794f6200351a625d317e028c0cafcbb6ad6083ea98acc5454e29  lvm.initd
@@ -112,6 +115,7 @@ e2ff57977ace6098e1a2efc8a1f6796e8bf6e5dd148e4c105bb647ffc6f79230  lvm.confd
 sha512sums="2d309078b883a44b0066ba794c463ad0c4526384879351d872efb51b246351c5693b1d0f79855b57b80b5ab08a22f82873682eff46f196c52f53039d68b9fd1f  LVM2.2.02.127.tgz
 c4d55b366a60926baadf431dd382012eb808490c0bb514e01503d526cfd7ae573efa2d60a92bd5f6f451b54b11fb5cf827f45cec35cfcdee6aa291674cc776dd  fix-stdio-usage.patch
 9272ec8c5184ef5dc776ead8f74132e072b7563b5119a3a38b712f00d92a1e3878c9b3a54eb2b01dcba038110c686b39d4c17ecd0eb258537e9217d7ed03c408  mallinfo.patch
+33004594a5cce7af1e493a2a66ce8ad2f864dde3b2ec0960d0fda9df9b7bcf65d9455f9eccf7860f48726c48f14111b843b0a0c9bd395ef2952b41aaab8092b2  library_dir-default-config.patch
 0e5bc8c2629013704083ef8e8bf79897c660b59772ddaff242258ebed89c7453f61c7a0fe8729f9f61474a0b5bfcdd2a0d3ff4f28069dd74c39228ca034a8626  mlockall-default-config.patch
 ac041efd59611f28fa36d3891be56dbf31dc952ca8851277cea171e8f71cdc4eef69f939da1312161430d0107be3445f7898f2afb5b03d78f714c6b5673bffa3  musl-fix-headers.patch
 a853078660fd2fd943538924f56e81dc5793294e26b8f61d93e6188893f15f4a438d33792b341c1865d61e03f4a371b7c7ee0db5f4130ef7cb7aeaeb9290086a  lvm.initd
diff --git a/main/lvm2/library_dir-default-config.patch b/main/lvm2/library_dir-default-config.patch
new file mode 100644
index 0000000..6e3b958
--- /dev/null
+++ b/main/lvm2/library_dir-default-config.patch
@@ -0,0 +1,10 @@
+--- ./conf/example.conf.in.orig
++++ ./conf/example.conf.in
+@@ -694,6 +694,7 @@
+ 	# Configuration option global/library_dir.
+ 	# Search this directory first for shared libraries.
+ 	# This configuration option does not have a default value defined.
++	library_dir="/lib/device-mapper"
+ 
+ 	# Configuration option global/locking_library.
+ 	# The external locking library to use for locking_type 2.
-- 
2.4.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---