mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 14:36:58 +02:00
sys-libs/gdbm: Sync with Gentoo
It's from Gentoo commit 2f0c92570ad92ea2969b7e07f7d4870f8b7f750f.
This commit is contained in:
parent
05a72680ae
commit
f223cb56c8
@ -1,2 +1,4 @@
|
||||
DIST gdbm-1.24.tar.gz 1195931 BLAKE2B 79f49adbb455c2e1b91f3450037b71165fa8de82650d6402e0e22ee1f4d278fdb0bd78100659bf416e2409b432e1f8d32ecbae523980413f7148b80ee06c9f4b SHA512 401ff8c707079f21da1ac1d6f4714a87f224b6f41943078487dc891be49f51fd1ac7a32fd599aae0fad185f2c6ba7432616d328fd6aaab068eb54db9562ff7fa
|
||||
DIST gdbm-1.24.tar.gz.sig 95 BLAKE2B 3a66c2a256d9601db57df20feb5d72d1e94d23b7a92e3099f121549c8aa2c57b05a3021d88f97291819378462a68664af958de4c9de65887d2cca6642d172bc3 SHA512 a54595e0fd23724f5e30c2ff1b9656dbb6da3b448f4ab6a2579a523c11bae53e47d3843327a1e4499b312ab947ac73b5a9aa6e78fe5e932c55a1be0cdab4e63d
|
||||
DIST gdbm-1.25.tar.gz 1224180 BLAKE2B 6abf5f77823dda7ebcaa775d58f7a311c8f73c7521fe223398b5cb4b4831ad177cfd87fd42f2b24ca2fc5984af7d51abcc5e509ceb6aab2746a52aecb550654b SHA512 1785598665d7323eed052a55708903c6abaeafcfb66a9ceb69293f57c3fdbf49cd8a821ef23715a40bf7030d0067d1340d12279ed07afe040f912e53078e47f5
|
||||
DIST gdbm-1.25.tar.gz.sig 566 BLAKE2B 7740ca7be87eb3f33ff2fd330e35dd900786d9d6a589d466202a121e0e943d3037a75daf584f0b8c99cf10ffac388b1de732c19e43af62bb8da969980c7f65b7 SHA512 0abf5198f0e5ca9678d7741181724389be2289263d2a91c07a979c03f976e7cc494f39a5fbc4d8dbb8acacba463accf28ba0eba4907f1bfe2bac0ab2f4f5eede
|
||||
|
22
sdk_container/src/third_party/portage-stable/sys-libs/gdbm/files/gdbm-1.25-musl.patch
vendored
Normal file
22
sdk_container/src/third_party/portage-stable/sys-libs/gdbm/files/gdbm-1.25-musl.patch
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
https://bugs.gentoo.org/951911
|
||||
https://puszcza.gnu.org.ua/bugs/index.php?649
|
||||
https://git.gnu.org.ua/gdbm.git/commit/?id=39ef0347f78ef691c9ad815360198f577043ce4c
|
||||
|
||||
From 39ef0347f78ef691c9ad815360198f577043ce4c Mon Sep 17 00:00:00 2001
|
||||
From: Sergey Poznyakoff <gray@gnu.org>
|
||||
Date: Mon, 24 Mar 2025 07:56:00 +0200
|
||||
Subject: Add missing include
|
||||
|
||||
* tools/gdbmapp.h: Include sys/types.h
|
||||
--- a/tools/gdbmapp.h
|
||||
+++ b/tools/gdbmapp.h
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
+#include <sys/types.h>
|
||||
#include "gettext.h"
|
||||
#ifdef HAVE_LOCALE_H
|
||||
# include <locale.h>
|
||||
--
|
||||
cgit v1.2.3
|
68
sdk_container/src/third_party/portage-stable/sys-libs/gdbm/gdbm-1.25.ebuild
vendored
Normal file
68
sdk_container/src/third_party/portage-stable/sys-libs/gdbm/gdbm-1.25.ebuild
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gdbm.asc
|
||||
inherit libtool multilib-minimal multiprocessing verify-sig
|
||||
|
||||
DESCRIPTION="Standard GNU database libraries"
|
||||
HOMEPAGE="https://www.gnu.org/software/gdbm/"
|
||||
SRC_URI="
|
||||
mirror://gnu/gdbm/${P}.tar.gz
|
||||
verify-sig? ( mirror://gnu/gdbm/${P}.tar.gz.sig )
|
||||
"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/6" # libgdbm.so version
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="+berkdb nls +readline static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="readline? ( sys-libs/readline:=[${MULTILIB_USEDEP}] )"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
test? ( dev-util/dejagnu )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-gdbm-20250323 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-musl.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# gdbm ships with very old libtool files, regen to avoid
|
||||
# errors when cross-compiling.
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# gdbm doesn't appear to use either of these libraries
|
||||
export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
|
||||
|
||||
local myeconfargs=(
|
||||
--includedir="${EPREFIX}"/usr/include/gdbm
|
||||
$(use_enable berkdb libgdbm-compat)
|
||||
$(use_enable nls)
|
||||
$(use_enable static-libs static)
|
||||
$(use_with readline)
|
||||
)
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake -Onone check TESTSUITEFLAGS="--jobs=$(get_makeopts_jobs)"
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
fi
|
||||
|
||||
mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die
|
||||
}
|
Loading…
Reference in New Issue
Block a user