commit:     c2ea3c7eab3ceb464809e32b10097245e537e7a9
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  5 01:38:25 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug  5 19:53:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2ea3c7e

dev-db/datadraw: fix configure gaffes

- bashisms
- not a GNU configure script, don't use econf

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-db/datadraw/datadraw-3.1.1.ebuild              | 11 +++++----
 dev-db/datadraw/files/datadraw-3.1.1-bashism.patch | 26 ++++++++++++++++++++++
 2 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/dev-db/datadraw/datadraw-3.1.1.ebuild 
b/dev-db/datadraw/datadraw-3.1.1.ebuild
index dfc0fa528d3d..70c33b4e4beb 100644
--- a/dev-db/datadraw/datadraw-3.1.1.ebuild
+++ b/dev-db/datadraw/datadraw-3.1.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit toolchain-funcs
+inherit edo toolchain-funcs
 
 DESCRIPTION="feature rich database generator for high performance C 
applications"
 HOMEPAGE="http://datadraw.sourceforge.net/";
@@ -16,11 +16,14 @@ IUSE="examples"
 
 S="${WORKDIR}/${PN}${PV}"
 
-PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-buildsystem.patch
+       "${FILESDIR}"/${P}-bashism.patch
+)
 
 src_configure() {
        tc-export AR CC
-       default
+       edo ./configure --prefix="${EPREFIX}/usr"
 }
 
 src_install() {

diff --git a/dev-db/datadraw/files/datadraw-3.1.1-bashism.patch 
b/dev-db/datadraw/files/datadraw-3.1.1-bashism.patch
new file mode 100644
index 000000000000..e773dcb260cf
--- /dev/null
+++ b/dev-db/datadraw/files/datadraw-3.1.1-bashism.patch
@@ -0,0 +1,26 @@
+From 9063dba4201216e8cc7b8f8d5100abbb83e0dc6f Mon Sep 17 00:00:00 2001
+From: Eli Schwartz <[email protected]>
+Date: Mon, 4 Aug 2025 21:34:28 -0400
+Subject: [PATCH] fix horrible bashism
+
+Thou shalt never use == in shell scripts, even in bash.
+---
+ util/configure | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/util/configure b/util/configure
+index 357a9ae..e60e3aa 100755
+--- a/util/configure
++++ b/util/configure
+@@ -124,7 +124,7 @@ makeMakefileBottom () {
+ " >> Makefile
+     done
+ 
+-    if [ "$SUFFIX" == "$NONDBG_SUFFIX" ]; then
++    if [ "$SUFFIX" = "$NONDBG_SUFFIX" ]; then
+         echo "utdatabase$SUFFIX.c utdatabase$SUFFIX.h: DatadrawUtil.dd
+       datadraw $DATADRAW_FLAGS -s utdatabase$SUFFIX.c -h utdatabase$SUFFIX.h 
DatadrawUtil.dd
+ 
+-- 
+2.49.1
+

Reply via email to