diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-db/kyotocabinet | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-db/kyotocabinet')
-rw-r--r-- | dev-db/kyotocabinet/Manifest | 7 | ||||
-rw-r--r-- | dev-db/kyotocabinet/files/fix_configure-1.2.62.patch | 51 | ||||
-rw-r--r-- | dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch | 44 | ||||
-rw-r--r-- | dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch | 31 | ||||
-rw-r--r-- | dev-db/kyotocabinet/files/kyotocabinet-1.2.76-gcc6.patch | 11 | ||||
-rw-r--r-- | dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild | 62 | ||||
-rw-r--r-- | dev-db/kyotocabinet/metadata.xml | 8 |
7 files changed, 214 insertions, 0 deletions
diff --git a/dev-db/kyotocabinet/Manifest b/dev-db/kyotocabinet/Manifest new file mode 100644 index 000000000000..bc9385c60617 --- /dev/null +++ b/dev-db/kyotocabinet/Manifest @@ -0,0 +1,7 @@ +AUX fix_configure-1.2.62.patch 1668 BLAKE2B 5a572607b5c848c3616fcccac1e936f9218ace5e7f657f04583ce89e6a1a34eefdb9ffbf76a64862529afd6076444efd831b44b4d658b18fab6b402007ee0114 SHA512 cd36241bdde29f62b99b2bfcb45b592fad3d15a32a370c925e5085be18893a8ba9bb15cb55939871beb9776dc6ab7da4f2d2cf54efed6f86310f3297d33dd567 +AUX kyotocabinet-1.2.76-configure-8-byte-atomics.patch 1250 BLAKE2B 882c4897a40609bbfa1183cb97e80e5ed6d95d0035c30c836e3f252962db822249f8b48934923e816a720d3cbf64a6f47f80cef77528216f3171f332ca3a350b SHA512 4833cecd6c67515e0c59d7161be6891df290ae816593de1bf35718e9c9d8691db221bec5078c5dc7cf56e55b0086d61c415e148a7ee63b2a47ac4885f6d0960e +AUX kyotocabinet-1.2.76-flags.patch 894 BLAKE2B 50efb4b21f0101a942eb758213cf703460056a951617298057567d08b116c7e0a631d631eace992ff447bed5b74940d2b60a8adad373cb77fe42b8c40bfcc9fd SHA512 60a15c54994a5f338cf168feb831d858fdd2cadd16ea0c8001ef652e8502797f5920d3fed0a3ec4a6a2d817381b4690410878a18c7c859df34e26b033f48fe03 +AUX kyotocabinet-1.2.76-gcc6.patch 289 BLAKE2B 5f2c972bf3f789c4573206dcb5fa2d1d21e50c16bc90889a978979f875e0597f48fba56cc9558c2f11202ab892d09f02c3b3d0c4bdc42e64857170a48d2797eb SHA512 755fe06635309139d55d1ede2e5ec30e37867501ead68abd3218c59ea016b72c9aa4d7d4072e15b53d22755606949dfaafa7b283d33a821d280fe7791ee8ff10 +DIST kyotocabinet-1.2.76.tar.gz 951930 BLAKE2B 7d2b5e5c85e0a6f90c88cd3b6e1b41588dffeaa2a404aa2c83281e033fe4e1275fbbc15584d4998e97f166c5060ce43c9cee9567121edbe1f72a0d5f52f42b40 SHA512 278db7b327eb4c21bf0137d9aa14fb67d74d5ce7ed1cb29fc9120d157a60de165ec0cf842903eb7952e8f998045ae585b958977fa973ba0e0773381de71d9f6a +EBUILD kyotocabinet-1.2.76-r1.ebuild 1315 BLAKE2B 78a71cecfca9ba04ccc6b10270e29fc026d88fc7e37bc338888263523459b6590daafc39507614958a96bd52ae052c44c5ed000b93a4081e03b239aa658afb1f SHA512 be359b2010275adcc239b2972936e6113cd3784a73472660c4ae35eb33e06c630ba3c9bbdbb83996ab85e67502d460b10dfcc8577c45d7df8d01f3415e5b9b8a +MISC metadata.xml 247 BLAKE2B 5a20af3c9732ef7dba68131a08988652f5c93a6d186a82c4deb1bb9c06dc3ae73152a0d241cc346637f7b11caf4676da43301ba596c67b66669535e71db0b03e SHA512 29cf52c16b0cce69899d9c2da8acd9144b7d760442aa323b854dceadb42459e009545193b1df7911ac2241b59f4819b4a6bb1d206d6f57953f770031433bb6b7 diff --git a/dev-db/kyotocabinet/files/fix_configure-1.2.62.patch b/dev-db/kyotocabinet/files/fix_configure-1.2.62.patch new file mode 100644 index 000000000000..622b7fd52792 --- /dev/null +++ b/dev-db/kyotocabinet/files/fix_configure-1.2.62.patch @@ -0,0 +1,51 @@ +diff --git a/configure.in b/configure.in +index 94e9d29..6999615 100644 +--- a/configure.in ++++ b/configure.in +@@ -35,27 +35,18 @@ MYDOCUMENTFILES="COPYING FOSSEXCEPTION ChangeLog doc kyotocabinet.idl" + MYPCFILES="kyotocabinet.pc" + + # Building flags +-MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g0 -O2" +-MYCXXFLAGS="-Wall -fPIC -fsigned-char -g0 -O2" +-MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I/usr/local/include" ++MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char" ++MYCXXFLAGS="-Wall -fPIC -fsigned-char" ++MYCPPFLAGS="-I. -I\$(INCLUDEDIR)" + MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1" + MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__" +-MYLDFLAGS="-L. -L\$(LIBDIR) -L/usr/local/lib" ++MYLDFLAGS="-L. -L\$(LIBDIR)" + MYCMDLDFLAGS="" + MYCMDLIBS="" + MYLDLIBPATH="" + MYLDLIBPATHENV="LD_LIBRARY_PATH" + MYPOSTCMD="true" + +-# Building paths +-PATH=".:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH" +-CPATH=".:/usr/local/include:$CPATH" +-LIBRARY_PATH=".:/usr/local/lib:$LIBRARY_PATH" +-LD_LIBRARY_PATH=".:/usr/local/lib:$LD_LIBRARY_PATH" +-PKG_CONFIG_PATH=".:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" +-export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH +- +- + + #================================================================ + # Options +@@ -285,14 +276,6 @@ then + MYCMDLIBS="$MYCMDLIBS $LIBS" + fi + +-# As-needed linking +-if uname | grep Linux >config.tmp +-then +- MYLDFLAGS="$MYLDFLAGS -Wl,-rpath-link,.:/usr/local/lib:$MYLDLIBPATH" +- MYLDFLAGS="$MYLDFLAGS -Wl,--as-needed" +-else +- MYCMDLIBS="$MYCMDLIBS $LIBS" +-fi + + # Shared libraries + if test "$enable_shared" != "no" && test "$enable_profile" != "yes" diff --git a/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch new file mode 100644 index 000000000000..729efc083ba5 --- /dev/null +++ b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch @@ -0,0 +1,44 @@ +From: Shawn Landden <shawnlandden@gmail.com> +Date: Thu, 21 Jun 2012 20:34:28 -0700 +Subject: configure: 8 byte atomics + +fix up configure test to handle lack of 8 byte atomics correctly + +as is the case with all ARM targets currently +--- + configure | 29 +++++++++++++---------------- + configure.in | 19 ++++++++++++++++--- + 2 files changed, 29 insertions(+), 19 deletions(-) + +index a07063d..bfc6df0 100755 +--- a/configure.in ++++ b/configure.in +@@ -238,9 +238,22 @@ fi + # Atomic operations + if test "$enable_atomic" != "no" + then +- printf 'checking for atomic operations... ' +- AC_TRY_COMPILE([], [__sync_fetch_and_add], [MYGCCATOMIC=yes], [MYGCCATOMIC=no]) +- if test "$MYGCCATOMIC" = "yes" ++ printf 'checking for 8 byte atomic operations... ' ++ if printf ' ++/* Some targets support 4 byte atomics, but not 8 byte atomics, ++ * and will fail at link time if they are used. ++ * ++ * http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Atomic-Builtins.html ++ * http://gcc.gnu.org/wiki/Atomic ++ */ ++#include <stdint.h> ++int ++main () ++{ ++uint64_t n = 0xdeadbeaf; ++__sync_bool_compare_and_swap(&n, 0xdeadbeaf, 0); ++return n; ++}' | $CC -xc -o config.tmp - >/dev/null 2>&1 + then + MYCPPFLAGS="$MYCPPFLAGS -D_MYGCCATOMIC" + printf 'yes\n' +-- +1.7.9.5 + diff --git a/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch new file mode 100644 index 000000000000..931e8c3f7bbe --- /dev/null +++ b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch @@ -0,0 +1,31 @@ +--- a/configure.in ++++ b/configure.in +@@ -193,28 +193,6 @@ + # Byte order + AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND") + +-# System-depending optimization +-printf 'checking for 64-bit availability... ' +-if printf 'main() {}' | $CC -xc -m64 -o config.tmp - >config.tmp 2>&1 +-then +- MYCFLAGS="-m64 $MYCFLAGS" +- MYCXXFLAGS="-m64 $MYCXXFLAGS" +- printf 'yes\n' +-else +- printf 'no\n' +-fi +-if test "$enable_opt" != "no" +-then +- printf 'checking for CPU optimization availability... ' +- if printf 'main() {}' | $CC -xc -march=native -o config.tmp - >config.tmp 2>&1 +- then +- MYCFLAGS="-march=native $MYCFLAGS" +- MYCXXFLAGS="-march=native $MYCXXFLAGS" +- printf 'yes\n' +- else +- printf 'no\n' +- fi +-fi + printf 'checking for useless warnings... ' + if printf 'main() {}' | $CC -xc \ + -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o config.tmp - >config.tmp 2>&1 diff --git a/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-gcc6.patch b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-gcc6.patch new file mode 100644 index 000000000000..3bcc6a28e795 --- /dev/null +++ b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-gcc6.patch @@ -0,0 +1,11 @@ +--- a/kcdbext.h ++++ b/kcdbext.h +@@ -1278,7 +1278,7 @@ + if (omode_ == 0) { + set_error(_KCCODELINE_, BasicDB::Error::INVALID, "not opened"); + *sp = 0; +- return false; ++ return NULL; + } + if (!cache_) return db_.get(kbuf, ksiz, sp); + size_t dvsiz = 0; diff --git a/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild b/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild new file mode 100644 index 000000000000..2064029015cd --- /dev/null +++ b/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools ltprune toolchain-funcs + +DESCRIPTION="A straightforward implementation of DBM" +HOMEPAGE="http://fallabs.com/kyotocabinet/" +SRC_URI="${HOMEPAGE}pkg/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="debug doc examples static-libs" + +DEPEND="sys-libs/zlib[static-libs?] + app-arch/xz-utils[static-libs?]" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/fix_configure-1.2.62.patch + "${FILESDIR}"/${PN}-1.2.76-configure-8-byte-atomics.patch + "${FILESDIR}"/${PN}-1.2.76-flags.patch + "${FILESDIR}"/${PN}-1.2.76-gcc6.patch +) + +src_prepare() { + default + + sed -i -e "/DOCDIR/d" Makefile.in || die + tc-export AR + + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + econf $(use_enable debug) \ + $(use_enable static-libs static) \ + $(use_enable !static-libs shared) \ + --enable-lzma +} + +src_test() { + emake -j1 check +} + +src_install() { + default + prune_libtool_files + + if use examples; then + insinto /usr/share/${PF}/example + doins example/* + fi + + if use doc; then + insinto /usr/share/doc/${PF} + doins -r doc/* + fi +} diff --git a/dev-db/kyotocabinet/metadata.xml b/dev-db/kyotocabinet/metadata.xml new file mode 100644 index 000000000000..40aa45df2b01 --- /dev/null +++ b/dev-db/kyotocabinet/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> |