mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
net-nds/openldap: microoptimize
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -342,7 +342,7 @@ src_prepare() {
|
||||
# Fish out MDB_VERSION_MAJOR/MDB_VERSION_MINOR/MDB_VERSION_PATCH from
|
||||
# the bundled lmdb's header to find out the version.
|
||||
local bundled_lmdb_version=$(sed -En '/^#define MDB_VERSION_(MAJOR|MINOR|PATCH)(\s+)?/{s/[^0-9.]//gp}' libraries/liblmdb/lmdb.h || die)
|
||||
bundled_lmdb_version=$(printf "%s." ${bundled_lmdb_version})
|
||||
printf -v bundled_lmdb_version "%s." ${bundled_lmdb_version}
|
||||
|
||||
if [[ ${SYSTEM_LMDB_VER}. != ${bundled_lmdb_version} ]] ; then
|
||||
eerror "Source lmdb version: ${bundled_lmdb_version}"
|
||||
|
||||
@@ -343,7 +343,7 @@ src_prepare() {
|
||||
# Fish out MDB_VERSION_MAJOR/MDB_VERSION_MINOR/MDB_VERSION_PATCH from
|
||||
# the bundled lmdb's header to find out the version.
|
||||
local bundled_lmdb_version=$(sed -En '/^#define MDB_VERSION_(MAJOR|MINOR|PATCH)(\s+)?/{s/[^0-9.]//gp}' libraries/liblmdb/lmdb.h || die)
|
||||
bundled_lmdb_version=$(printf "%s." ${bundled_lmdb_version})
|
||||
printf -v bundled_lmdb_version "%s." ${bundled_lmdb_version}
|
||||
|
||||
if [[ ${SYSTEM_LMDB_VER}. != ${bundled_lmdb_version} ]] ; then
|
||||
eerror "Source lmdb version: ${bundled_lmdb_version}"
|
||||
|
||||
Reference in New Issue
Block a user