mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
tdb: update to 1.3.8.
This commit is contained in:
parent
dbe02f2f04
commit
947af33da9
2 changed files with 2 additions and 86 deletions
|
@ -1,84 +0,0 @@
|
||||||
--- lib/replace/replace.c
|
|
||||||
+++ lib/replace/replace.c
|
|
||||||
@@ -508,28 +508,6 @@
|
|
||||||
# error "You need a strtoll function"
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
-#else
|
|
||||||
-#ifdef HAVE_BSD_STRTOLL
|
|
||||||
-#ifdef HAVE_STRTOQ
|
|
||||||
-long long int rep_strtoll(const char *str, char **endptr, int base)
|
|
||||||
-{
|
|
||||||
- long long int nb = strtoq(str, endptr, base);
|
|
||||||
- /* In linux EINVAL is only returned if base is not ok */
|
|
||||||
- if (errno == EINVAL) {
|
|
||||||
- if (base == 0 || (base >1 && base <37)) {
|
|
||||||
- /* Base was ok so it's because we were not
|
|
||||||
- * able to make the convertion.
|
|
||||||
- * Let's reset errno.
|
|
||||||
- */
|
|
||||||
- errno = 0;
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
- return nb;
|
|
||||||
-}
|
|
||||||
-#else
|
|
||||||
-#error "You need the strtoq function"
|
|
||||||
-#endif /* HAVE_STRTOQ */
|
|
||||||
-#endif /* HAVE_BSD_STRTOLL */
|
|
||||||
#endif /* HAVE_STRTOLL */
|
|
||||||
|
|
||||||
|
|
||||||
@@ -546,28 +524,6 @@
|
|
||||||
# error "You need a strtoull function"
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
-#else
|
|
||||||
-#ifdef HAVE_BSD_STRTOLL
|
|
||||||
-#ifdef HAVE_STRTOUQ
|
|
||||||
-unsigned long long int rep_strtoull(const char *str, char **endptr, int base)
|
|
||||||
-{
|
|
||||||
- unsigned long long int nb = strtouq(str, endptr, base);
|
|
||||||
- /* In linux EINVAL is only returned if base is not ok */
|
|
||||||
- if (errno == EINVAL) {
|
|
||||||
- if (base == 0 || (base >1 && base <37)) {
|
|
||||||
- /* Base was ok so it's because we were not
|
|
||||||
- * able to make the convertion.
|
|
||||||
- * Let's reset errno.
|
|
||||||
- */
|
|
||||||
- errno = 0;
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
- return nb;
|
|
||||||
-}
|
|
||||||
-#else
|
|
||||||
-#error "You need the strtouq function"
|
|
||||||
-#endif /* HAVE_STRTOUQ */
|
|
||||||
-#endif /* HAVE_BSD_STRTOLL */
|
|
||||||
#endif /* HAVE_STRTOULL */
|
|
||||||
|
|
||||||
#ifndef HAVE_SETENV
|
|
||||||
--- lib/replace/replace.h
|
|
||||||
+++ lib/replace/replace.h
|
|
||||||
@@ -355,21 +355,11 @@
|
|
||||||
#ifndef HAVE_STRTOLL
|
|
||||||
#define strtoll rep_strtoll
|
|
||||||
long long int rep_strtoll(const char *str, char **endptr, int base);
|
|
||||||
-#else
|
|
||||||
-#ifdef HAVE_BSD_STRTOLL
|
|
||||||
-#define strtoll rep_strtoll
|
|
||||||
-long long int rep_strtoll(const char *str, char **endptr, int base);
|
|
||||||
#endif
|
|
||||||
-#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_STRTOULL
|
|
||||||
#define strtoull rep_strtoull
|
|
||||||
unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
|
|
||||||
-#else
|
|
||||||
-#ifdef HAVE_BSD_STRTOLL /* yes, it's not HAVE_BSD_STRTOULL */
|
|
||||||
-#define strtoull rep_strtoull
|
|
||||||
-unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
|
|
||||||
-#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_FTRUNCATE
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template build file for 'tdb'.
|
# Template build file for 'tdb'.
|
||||||
pkgname=tdb
|
pkgname=tdb
|
||||||
version=1.3.6
|
version=1.3.8
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config python libxslt docbook-xsl"
|
hostmakedepends="pkg-config python libxslt docbook-xsl"
|
||||||
|
@ -9,7 +9,7 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
homepage="http://tdb.samba.org/"
|
homepage="http://tdb.samba.org/"
|
||||||
distfiles="http://samba.org/ftp/tdb/tdb-$version.tar.gz"
|
distfiles="http://samba.org/ftp/tdb/tdb-$version.tar.gz"
|
||||||
checksum=85d7dd247e58d8b303de542a2bc39a3dff9e5f54dea39a94c1c910cee25a59a5
|
checksum=0605ac0427eac9c23bf61ebfd8206a07d5ece198498eab1769cd0cfb6e7de6b1
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue