mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
gdbm: cleanup dependencies, fix tests
no revbump needed
This commit is contained in:
@@ -9,6 +9,7 @@ LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="ftp://ftp.gnu.org/gnu/gdbm/gdbm-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="6a24504a14de4a744103dcb936be976df6fbe88ccff26065e54c1c47946f4a5e"
|
||||
PATCHES="gdbm-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -66,14 +67,15 @@ BUILD_REQUIRES="
|
||||
devel:libreadline$secondaryArchSuffix >= 8
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
cmd:autom4te
|
||||
"
|
||||
|
||||
defineDebugInfoPackage gdbm$secondaryArchSuffix \
|
||||
"$(getPackagePrefix tools)"/bin/gdbm_dump \
|
||||
"$(getPackagePrefix tools)"/bin/gdbm_load \
|
||||
@@ -113,5 +115,6 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
# test 16 and 20 fail because of missing hardlink support
|
||||
make check
|
||||
}
|
||||
|
||||
23
sys-libs/gdbm/patches/gdbm-1.26.patchset
Normal file
23
sys-libs/gdbm/patches/gdbm-1.26.patchset
Normal file
@@ -0,0 +1,23 @@
|
||||
From a6be02ad4b564d2079681589f4862c32419c2c9f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
||||
Date: Sat, 30 Aug 2025 19:55:16 +0200
|
||||
Subject: fix test build
|
||||
|
||||
Haiku doesn't support WCOREDUMP yet, but WIFCORED should be equivalent.
|
||||
|
||||
diff --git a/tests/t_dumpload.c b/tests/t_dumpload.c
|
||||
index 6cfc74c..f5176dc 100644
|
||||
--- a/tests/t_dumpload.c
|
||||
+++ b/tests/t_dumpload.c
|
||||
@@ -85,7 +85,7 @@ createdb (char const *name)
|
||||
else if (WIFSIGNALED (rc))
|
||||
{
|
||||
fprintf (stderr, "%s: terminated on signal %d", cmd, WTERMSIG (rc));
|
||||
- if (WCOREDUMP (rc))
|
||||
+ if (WIFCORED (rc))
|
||||
fprintf (stderr, " (core dumped)");
|
||||
fputc ('\n', stderr);
|
||||
exit (1);
|
||||
--
|
||||
2.50.1
|
||||
|
||||
Reference in New Issue
Block a user