sys-libs/gdbm: fix compilation with clang, bug #662840
authorGuilherme Amadio <amadio@gentoo.org>
Mon, 6 Aug 2018 07:46:38 +0000 (09:46 +0200)
committerGuilherme Amadio <amadio@gentoo.org>
Mon, 6 Aug 2018 09:34:05 +0000 (11:34 +0200)
Closes: https://bugs.gentoo.org/662840
Package-Manager: Portage-2.3.44, Repoman-2.3.10

sys-libs/gdbm/files/gdbm-1.17-fix-gdbmsync.patch [new file with mode: 0644]
sys-libs/gdbm/gdbm-1.17.ebuild

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 (file)
index 0000000..434aed5
--- /dev/null
@@ -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);}
index fa77f1fe956ad583427a2d068876576ab1d23c83..db39c5da570debe740b578b54f7812d7269d0098 100644 (file)
@@ -19,6 +19,8 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+PATCHES=( "${FILESDIR}"/gdbm-1.17-fix-gdbmsync.patch )
+
 src_prepare() {
        default
        eautoreconf