diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2018-08-06 09:46:38 +0200 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2018-08-06 11:34:05 +0200 |
commit | 69c474500c921c4097c38479674ef6deb83ccfd7 (patch) | |
tree | 0bbcb08be852de1ea65496c2c1d424e96e985948 /sys-libs | |
parent | dev-python/pytest-mock: keyworded 1.10.0 for ppc64, bug #662814 (diff) | |
download | gentoo-69c474500c921c4097c38479674ef6deb83ccfd7.tar.gz gentoo-69c474500c921c4097c38479674ef6deb83ccfd7.tar.bz2 gentoo-69c474500c921c4097c38479674ef6deb83ccfd7.zip |
sys-libs/gdbm: fix compilation with clang, bug #662840
Closes: https://bugs.gentoo.org/662840
Package-Manager: Portage-2.3.44, Repoman-2.3.10
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/gdbm/files/gdbm-1.17-fix-gdbmsync.patch | 11 | ||||
-rw-r--r-- | sys-libs/gdbm/gdbm-1.17.ebuild | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sys-libs/gdbm/files/gdbm-1.17-fix-gdbmsync.patch b/sys-libs/gdbm/files/gdbm-1.17-fix-gdbmsync.patch new file mode 100644 index 000000000000..434aed59952b --- /dev/null +++ b/sys-libs/gdbm/files/gdbm-1.17-fix-gdbmsync.patch @@ -0,0 +1,11 @@ +--- /src/gdbmsync.c.orig 2018-08-05 14:37:18.000116786 +0200 ++++ /src/gdbmsync.c 2018-08-05 14:37:39.666117321 +0200 +@@ -28,7 +28,7 @@ + gdbm_sync (GDBM_FILE dbf) + { + /* Return immediately if the database needs recovery */ +- GDBM_ASSERT_CONSISTENCY (dbf, ); ++ GDBM_ASSERT_CONSISTENCY (dbf, GDBM_NEED_RECOVERY); + + /* Initialize the gdbm_errno variable. */ + gdbm_set_errno (dbf, GDBM_NO_ERROR, FALSE);} diff --git a/sys-libs/gdbm/gdbm-1.17.ebuild b/sys-libs/gdbm/gdbm-1.17.ebuild index fa77f1fe956a..db39c5da570d 100644 --- a/sys-libs/gdbm/gdbm-1.17.ebuild +++ b/sys-libs/gdbm/gdbm-1.17.ebuild @@ -19,6 +19,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}"/gdbm-1.17-fix-gdbmsync.patch ) + src_prepare() { default eautoreconf |