summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authormef <mef>2016-09-19 05:33:15 +0000
committermef <mef>2016-09-19 05:33:15 +0000
commit73fddee8ecfd5d67bdaade55685d7bcc31dfcfef (patch)
tree6aa0ff35d2a01e85213daad4d37f3a9953b9e3d3 /time
parentb88abbe7bc4cfcb0b4c81a8cd80f4419910a32f5 (diff)
downloadpkgsrc-73fddee8ecfd5d67bdaade55685d7bcc31dfcfef.tar.gz
Updated time/dateutils to 0.4.0
------------------------------- v0.4.0 Summary: v0.4.0 of dateutils This is a bugfix release. Bugfixes: - document %g/%G format specifiers - bug/42, accept NUL characters in input - bug/45, correctly display Gregorian and ISO week dates in one line - bug/46, adhere to ISO group's official formatting of week dates - bug/47, allow rounding of Epoch based timestamps - bug/48, avoid crash for void input to strptime(3) Features: - datetest supports --isvalid to conditionalise on date/time parsing - all tools support --from-locale to parse localised input - tools with output formatting support --locale to format output according to locale v0.3.5 Summary: v0.3.5 of dateutils This is a bugfix release. Bugfixes: - bug/40, distinguish between numerals-only dates and durations - tests will succeed independent of current date See info page examples and/or README. v0.3.4 Summary: v0.3.4 of dateutils This is a bugfix release. Bugfixes: - bug/39, MacOSX endianness detection - bug/38, ddiff day-only durations on date/times - dadd +2m bug is fixed, regression dtadd.049.clit/dtadd.050.clit v0.3.3 Summary: v0.3.3 of dateutils This is a feature release. Features: - to clarify purpose and avoid name clashes prefix binaries with date- This results in: dateadd dateconv datediff dategrep dateround dateseq datesort datetest and datezone - provide compatibilty through configure switch -with-old-names - provide single digit years through %_y - allow rounding of ISO-week dates (ywd) to week numbers Bugfixes: - dashes behind a date do not count as tz indicator - UTC/TAI/GPS special coordinated zones work on systems without leap second support v0.3.2 Summary: v0.3.2 of dateutils This is a bugfix release. Bugfixes: - out of range minutes will be discarded - bug 30 (malicious input crashes dconv) has been fixed Features: - military midnight stamps are supported (T24:00:00) - 8601 ordinal dates (year + doy) are recognised directly (-f yd) - strptime(1) can behave in a locale-dependent way ------------------------------------------------------------------------- (pkgsrc-changes) - recover the two patches for 0.3.1
Diffstat (limited to 'time')
-rw-r--r--time/dateutils/Makefile7
-rw-r--r--time/dateutils/PLIST22
-rw-r--r--time/dateutils/distinfo12
-rw-r--r--time/dateutils/patches/patch-configure389
-rw-r--r--time/dateutils/patches/patch-m4_sxe-compiler.m415
5 files changed, 435 insertions, 10 deletions
diff --git a/time/dateutils/Makefile b/time/dateutils/Makefile
index 58c57dd90b4..3497a14161b 100644
--- a/time/dateutils/Makefile
+++ b/time/dateutils/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2016/09/19 04:47:16 mef Exp $
+# $NetBSD: Makefile,v 1.8 2016/09/19 05:33:15 mef Exp $
-DISTNAME= dateutils-0.3.1
-PKGREVISION= 2
+DISTNAME= dateutils-0.4.0
CATEGORIES= time
-MASTER_SITES= https://github.com/hroptatyr/dateutils/releases/download/v0.3.1/
+MASTER_SITES= ${MASTER_SITE_GITHUB:=hroptatyr/}
MASTER_SITES+= https://bitbucket.org/hroptatyr/dateutils/downloads/
EXTRACT_SUFX= .tar.xz
diff --git a/time/dateutils/PLIST b/time/dateutils/PLIST
index b5e60567214..73b89d20576 100644
--- a/time/dateutils/PLIST
+++ b/time/dateutils/PLIST
@@ -1,5 +1,14 @@
-@comment $NetBSD: PLIST,v 1.3 2014/12/16 01:51:35 mef Exp $
+@comment $NetBSD: PLIST,v 1.4 2016/09/19 05:33:15 mef Exp $
bin/dadd
+bin/dateadd
+bin/dateconv
+bin/datediff
+bin/dategrep
+bin/dateround
+bin/dateseq
+bin/datesort
+bin/datetest
+bin/datezone
bin/dconv
bin/ddiff
bin/dgrep
@@ -31,7 +40,16 @@ include/dateutils/version.h
info/dateutils.info
lib/libdut.a
man/man1/dadd.1
+man/man1/dateadd.1
+man/man1/dateconv.1
+man/man1/datediff.1
+man/man1/dategrep.1
+man/man1/dateround.1
+man/man1/dateseq.1
+man/man1/datesort.1
+man/man1/datetest.1
man/man1/dateutils.1
+man/man1/datezone.1
man/man1/dconv.1
man/man1/ddiff.1
man/man1/dgrep.1
@@ -43,5 +61,7 @@ man/man1/dzone.1
man/man1/strptime.1
share/dateutils/iata.tzmcc
share/dateutils/icao.tzmcc
+share/dateutils/locale
share/dateutils/mic.tzmcc
+share/doc/dateutils/LICENSE
share/doc/dateutils/README.md
diff --git a/time/dateutils/distinfo b/time/dateutils/distinfo
index f932ebebb6c..11fe8fef06d 100644
--- a/time/dateutils/distinfo
+++ b/time/dateutils/distinfo
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.7 2016/09/19 04:47:16 mef Exp $
+$NetBSD: distinfo,v 1.8 2016/09/19 05:33:15 mef Exp $
-SHA1 (dateutils-0.3.1.tar.xz) = 07884be555998aa649733401e65f073ada89ac08
-RMD160 (dateutils-0.3.1.tar.xz) = a45ed9fb1c5d5107883fb3cfdf3f43d238e0497c
-SHA512 (dateutils-0.3.1.tar.xz) = cbf691b0ef8c815159d262796bb5e7292547794610efb99772a51c8bd20e8f23e36be28c6c8a0ffa04445bf7b13bc8fe58bc44a1ba356e1b224b631d561422d9
-Size (dateutils-0.3.1.tar.xz) = 586848 bytes
+SHA1 (dateutils-0.4.0.tar.xz) = 7f3ec03b68464f37ea2eb661b569b3352ed66740
+RMD160 (dateutils-0.4.0.tar.xz) = b1efb3742d47ae4d3f2cddb0df88480a40e0d82b
+SHA512 (dateutils-0.4.0.tar.xz) = 06aeed8cc2e8bd22584d74fccd6a9739fbed191a01d5dfb5bab48d5b059dce01d48f8b5f4b6e927e26c1ac2143d7aeed1f20f0415d1275d172f2584ef9d776a9
+Size (dateutils-0.4.0.tar.xz) = 608364 bytes
SHA1 (patch-Makefile.am) = 936ad7f986ff5cb8bec5f85c96a17657fca2774f
SHA1 (patch-Makefile.in) = ff5aaffb2046f17189b9074090c68295df5fb57a
+SHA1 (patch-configure) = abb72e6c1ff9e9aca1bd20ee57b779667c8ecc29
+SHA1 (patch-m4_sxe-compiler.m4) = 8df17f891ba18ff54555e302388f0fe184fa33bc
diff --git a/time/dateutils/patches/patch-configure b/time/dateutils/patches/patch-configure
new file mode 100644
index 00000000000..1fb6a3a689f
--- /dev/null
+++ b/time/dateutils/patches/patch-configure
@@ -0,0 +1,389 @@
+$NetBSD: patch-configure,v 1.3 2016/09/19 05:33:15 mef Exp $
+
+Don't create broken or non-portable binaries. This code isn't even
+performance critical.
+
+--- configure~ 2016-05-20 17:26:30.000000000 +0900
++++ configure 2016-09-19 14:20:56.000000000 +0900
+@@ -7735,381 +7735,6 @@ $as_echo_n "checking for preferred warni
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${warnflags}" >&5
+ $as_echo "${warnflags}" >&6; }
+
+-
+-
+-
+- case " ${CFLAGS} ${EXTRA_CFLAGS} " in
+- (*" -O"[0-9]" "*)
+- ;;
+- (*" -Os "*)
+- ;;
+- (*" -Og "*)
+- ;;
+- (*" -Ofast "*)
+- ;;
+- (*" -O "*)
+- ;;
+- (*)
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O3" >&5
+-$as_echo_n "checking whether C compiler accepts -O3... " >&6; }
+-
+- ## store werror status, then turn -Werror on
+- save_ac_c_werror_flag="${ac_c_werror_flag}"
+-
+-ac_c_werror_flag=yes
+-
+- if ${sxe_cv_c_flag__O3+:} false; then :
+- $as_echo_n "(cached) " >&6
+-else
+- sxe_save_FLAGS="${CFLAGS}"
+- CFLAGS="-O3"
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main ()
+-{
+-
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_compile "$LINENO"; then :
+- eval sxe_cv_c_flag__O3="yes"
+-else
+- eval sxe_cv_c_flag__O3="no"
+-fi
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+- CFLAGS="${sxe_save_FLAGS}"
+-
+-fi
+-
+- eval sxe_check_flag=$sxe_cv_c_flag__O3
+- ac_c_werror_flag="${save_ac_c_werror_flag}"
+-
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5
+-$as_echo "${sxe_check_flag}" >&6; }
+- if test "${sxe_check_flag}" = "yes"; then
+- :
+-
+- optiflags="${optiflags} -O3"
+- else
+- :
+-
+- fi
+-
+- ;;
+- esac
+-
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ipo" >&5
+-$as_echo_n "checking whether C compiler accepts -ipo... " >&6; }
+-
+- ## store werror status, then turn -Werror on
+- save_ac_c_werror_flag="${ac_c_werror_flag}"
+-
+-ac_c_werror_flag=yes
+-
+- if ${sxe_cv_c_flag__ipo+:} false; then :
+- $as_echo_n "(cached) " >&6
+-else
+- sxe_save_FLAGS="${CFLAGS}"
+- CFLAGS="-ipo"
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main ()
+-{
+-
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_compile "$LINENO"; then :
+- eval sxe_cv_c_flag__ipo="yes"
+-else
+- eval sxe_cv_c_flag__ipo="no"
+-fi
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+- CFLAGS="${sxe_save_FLAGS}"
+-
+-fi
+-
+- eval sxe_check_flag=$sxe_cv_c_flag__ipo
+- ac_c_werror_flag="${save_ac_c_werror_flag}"
+-
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5
+-$as_echo "${sxe_check_flag}" >&6; }
+- if test "${sxe_check_flag}" = "yes"; then
+- :
+-
+- optiflags="${optiflags} -ipo"
+-
+- if test -n "$ac_tool_prefix"; then
+- for ac_prog in xiar ar
+- do
+- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+-$as_echo_n "checking for $ac_word... " >&6; }
+-if ${ac_cv_prog_AR+:} false; then :
+- $as_echo_n "(cached) " >&6
+-else
+- if test -n "$AR"; then
+- ac_cv_prog_AR="$AR" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+- ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
+- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+- done
+-IFS=$as_save_IFS
+-
+-fi
+-fi
+-AR=$ac_cv_prog_AR
+-if test -n "$AR"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+-$as_echo "$AR" >&6; }
+-else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-fi
+-
+-
+- test -n "$AR" && break
+- done
+-fi
+-if test -z "$AR"; then
+- ac_ct_AR=$AR
+- for ac_prog in xiar ar
+-do
+- # Extract the first word of "$ac_prog", so it can be a program name with args.
+-set dummy $ac_prog; ac_word=$2
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+-$as_echo_n "checking for $ac_word... " >&6; }
+-if ${ac_cv_prog_ac_ct_AR+:} false; then :
+- $as_echo_n "(cached) " >&6
+-else
+- if test -n "$ac_ct_AR"; then
+- ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+- ac_cv_prog_ac_ct_AR="$ac_prog"
+- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+- done
+-IFS=$as_save_IFS
+-
+-fi
+-fi
+-ac_ct_AR=$ac_cv_prog_ac_ct_AR
+-if test -n "$ac_ct_AR"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+-$as_echo "$ac_ct_AR" >&6; }
+-else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-fi
+-
+-
+- test -n "$ac_ct_AR" && break
+-done
+-
+- if test "x$ac_ct_AR" = x; then
+- AR="false"
+- else
+- case $cross_compiling:$ac_tool_warned in
+-yes:)
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+-ac_tool_warned=yes ;;
+-esac
+- AR=$ac_ct_AR
+- fi
+-fi
+-
+- if test -n "$ac_tool_prefix"; then
+- for ac_prog in xild ld
+- do
+- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+-$as_echo_n "checking for $ac_word... " >&6; }
+-if ${ac_cv_prog_LD+:} false; then :
+- $as_echo_n "(cached) " >&6
+-else
+- if test -n "$LD"; then
+- ac_cv_prog_LD="$LD" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+- ac_cv_prog_LD="$ac_tool_prefix$ac_prog"
+- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+- done
+-IFS=$as_save_IFS
+-
+-fi
+-fi
+-LD=$ac_cv_prog_LD
+-if test -n "$LD"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
+-$as_echo "$LD" >&6; }
+-else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-fi
+-
+-
+- test -n "$LD" && break
+- done
+-fi
+-if test -z "$LD"; then
+- ac_ct_LD=$LD
+- for ac_prog in xild ld
+-do
+- # Extract the first word of "$ac_prog", so it can be a program name with args.
+-set dummy $ac_prog; ac_word=$2
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+-$as_echo_n "checking for $ac_word... " >&6; }
+-if ${ac_cv_prog_ac_ct_LD+:} false; then :
+- $as_echo_n "(cached) " >&6
+-else
+- if test -n "$ac_ct_LD"; then
+- ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+- ac_cv_prog_ac_ct_LD="$ac_prog"
+- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+- done
+-IFS=$as_save_IFS
+-
+-fi
+-fi
+-ac_ct_LD=$ac_cv_prog_ac_ct_LD
+-if test -n "$ac_ct_LD"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
+-$as_echo "$ac_ct_LD" >&6; }
+-else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-fi
+-
+-
+- test -n "$ac_ct_LD" && break
+-done
+-
+- if test "x$ac_ct_LD" = x; then
+- LD="false"
+- else
+- case $cross_compiling:$ac_tool_warned in
+-yes:)
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+-ac_tool_warned=yes ;;
+-esac
+- LD=$ac_ct_LD
+- fi
+-fi
+-
+-
+- ## fiddle with xiar and xild params, kick ansi aliasing warnings
+- if test "${ac_cv_prog_ac_ct_AR}" = "xiar"; then
+- AR="${AR} -qdiag-disable=2102"
+- fi
+- if test "${ac_cv_prog_ac_ct_LD}" = "xild"; then
+- LD="${LD} -qdiag-disable=2102"
+- fi
+-
+- else
+- :
+-
+- fi
+-
+-
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-prec-div" >&5
+-$as_echo_n "checking whether C compiler accepts -no-prec-div... " >&6; }
+-
+- ## store werror status, then turn -Werror on
+- save_ac_c_werror_flag="${ac_c_werror_flag}"
+-
+-ac_c_werror_flag=yes
+-
+- if ${sxe_cv_c_flag__no_prec_div+:} false; then :
+- $as_echo_n "(cached) " >&6
+-else
+- sxe_save_FLAGS="${CFLAGS}"
+- CFLAGS="-no-prec-div"
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main ()
+-{
+-
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_compile "$LINENO"; then :
+- eval sxe_cv_c_flag__no_prec_div="yes"
+-else
+- eval sxe_cv_c_flag__no_prec_div="no"
+-fi
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+- CFLAGS="${sxe_save_FLAGS}"
+-
+-fi
+-
+- eval sxe_check_flag=$sxe_cv_c_flag__no_prec_div
+- ac_c_werror_flag="${save_ac_c_werror_flag}"
+-
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5
+-$as_echo "${sxe_check_flag}" >&6; }
+- if test "${sxe_check_flag}" = "yes"; then
+- :
+-
+- optiflags="${optiflags} -no-prec-div"
+- else
+- :
+-
+- fi
+-
+-
+-
+ SXE_CFLAGS="${SXE_CFLAGS} ${debugflags} ${optiflags} ${warnflags}"
+
+ ## default flags for needed features
diff --git a/time/dateutils/patches/patch-m4_sxe-compiler.m4 b/time/dateutils/patches/patch-m4_sxe-compiler.m4
new file mode 100644
index 00000000000..754209cff2d
--- /dev/null
+++ b/time/dateutils/patches/patch-m4_sxe-compiler.m4
@@ -0,0 +1,15 @@
+$NetBSD: patch-m4_sxe-compiler.m4,v 1.3 2016/09/19 05:33:15 mef Exp $
+
+Don't create broken or non-portable binaries. This code isn't even
+performance critical.
+
+--- m4/sxe-compiler.m4~ 2016-05-20 17:25:12.000000000 +0900
++++ m4/sxe-compiler.m4 2016-09-19 14:25:55.000000000 +0900
+@@ -501,7 +501,6 @@ dnl + native[=yes|no] Emit the --enable
+ ## Use either command line flag, environment var, or autodetection
+ SXE_DEBUGFLAGS
+ SXE_WARNFLAGS
+- SXE_OPTIFLAGS
+ m4_foreach_w([opt], [$1], [dnl
+ m4_case(opt,
+ [native], [SXE_CC_NATIVE],