summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-20 20:19:51 +0000
committerSam James <sam@gentoo.org>2022-03-20 21:04:25 +0000
commit9abad1e43a4afa095d8f97a40b4cafbf35dde087 (patch)
treed743a32b91ea4e05250b55c7f015dd8e5765b40b /sys-libs/db
parentsys-libs/db: drop USE=java (diff)
downloadgentoo-9abad1e43a4afa095d8f97a40b4cafbf35dde087.tar.gz
gentoo-9abad1e43a4afa095d8f97a40b4cafbf35dde087.tar.bz2
gentoo-9abad1e43a4afa095d8f97a40b4cafbf35dde087.zip
sys-libs/db: fix bashism in 6.2.38 configure
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/db')
-rw-r--r--sys-libs/db/db-6.2.38-r1.ebuild2
-rw-r--r--sys-libs/db/files/db-6.2.38-bashism-configure.patch11
2 files changed, 13 insertions, 0 deletions
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"