diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
commit | abaa75b10f899ada8dd05b23cc03205064394bc6 (patch) | |
tree | eca3dd248b73b92013cba00a0fcc1edf2696e19a /net-nds/389-ds-base/files/389-ds-base-db-gentoo.patch | |
parent | 24fd814c326e282c4321965c31f341dad77e270d (diff) |
gentoo resync : 22.01.2021
Diffstat (limited to 'net-nds/389-ds-base/files/389-ds-base-db-gentoo.patch')
-rw-r--r-- | net-nds/389-ds-base/files/389-ds-base-db-gentoo.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-nds/389-ds-base/files/389-ds-base-db-gentoo.patch b/net-nds/389-ds-base/files/389-ds-base-db-gentoo.patch new file mode 100644 index 000000000000..09bca3e87abf --- /dev/null +++ b/net-nds/389-ds-base/files/389-ds-base-db-gentoo.patch @@ -0,0 +1,17 @@ +diff --git a/m4/db.m4 b/m4/db.m4 +index c916c2b83..a9dd5ef2b 100644 +--- a/m4/db.m4 ++++ b/m4/db.m4 +@@ -96,9 +96,9 @@ if test -z "$db_inc"; then + fi + + dnl figure out which version of db we're using from the header file +-db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'` +-db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'` +-db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'` ++db_ver_maj=`gcc -E -fdirectives-only $db_incdir/db.h | grep DB_VERSION_MAJOR | awk '{print $3}'` ++db_ver_min=`gcc -E -fdirectives-only $db_incdir/db.h | grep DB_VERSION_MINOR | awk '{print $3}'` ++db_ver_pat=`gcc -E -fdirectives-only $db_incdir/db.h | grep DB_VERSION_PATCH | awk '{print $3}'` + + dnl Ensure that we have libdb at least 4.7, older versions aren't supported + if test ${db_ver_maj} -lt 4; then |