From 9abad1e43a4afa095d8f97a40b4cafbf35dde087 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 20 Mar 2022 20:19:51 +0000 Subject: sys-libs/db: fix bashism in 6.2.38 configure Signed-off-by: Sam James --- sys-libs/db/db-6.2.38-r1.ebuild | 2 ++ sys-libs/db/files/db-6.2.38-bashism-configure.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 sys-libs/db/files/db-6.2.38-bashism-configure.patch (limited to 'sys-libs/db') diff --git a/sys-libs/db/db-6.2.38-r1.ebuild b/sys-libs/db/db-6.2.38-r1.ebuild index 69957a34e851..d83e4107efcc 100644 --- a/sys-libs/db/db-6.2.38-r1.ebuild +++ b/sys-libs/db/db-6.2.38-r1.ebuild @@ -54,6 +54,8 @@ PATCHES=( # The upstream testsuite copies .lib and the binaries for each parallel test # core, ~300MB each. This patch uses links instead, saves a lot of space. "${FILESDIR}"/${PN}-6.0.20-test-link.patch + + "${FILESDIR}"/${PN}-6.2.38-bashism-configure.patch ) src_prepare() { diff --git a/sys-libs/db/files/db-6.2.38-bashism-configure.patch b/sys-libs/db/files/db-6.2.38-bashism-configure.patch new file mode 100644 index 000000000000..bea1f3d3bde0 --- /dev/null +++ b/sys-libs/db/files/db-6.2.38-bashism-configure.patch @@ -0,0 +1,11 @@ +--- a/dist/aclocal/types.m4 ++++ b/dist/aclocal/types.m4 +@@ -188,7 +188,7 @@ AC_SUBST(db_off_t_decl) + AC_CHECK_TYPE(db_off_t,, + [AM_SEARCH_SSIZES(db_off_t_decl, db_off_t, $ac_cv_sizeof_off_t)]) + AC_SUBST(db_off_t_max_decl) +-if test "$ac_cv_sizeof_off_t" == "4"; then ++if test "$ac_cv_sizeof_off_t" = "4"; then + db_off_t_max_decl="#define DB_OFF_T_MAX INT32_MAX" + else + db_off_t_max_decl="#define DB_OFF_T_MAX INT64_MAX" -- cgit v1.2.3-65-gdbad