svn commit: r538356 - head/devel/date
Jan Beich
jbeich at FreeBSD.org
Thu Jun 11 23:38:20 UTC 2020
Yuri Victorovich <yuri at FreeBSD.org> writes:
> Author: yuri
> Date: Tue Jun 9 23:34:28 2020
> New Revision: 538356
> URL: https://svnweb.freebsd.org/changeset/ports/538356
>
> Log:
> devel/date: Update 2.4.1-80 -> 3.0.0
[...]
> +PLIST_FILES= include/date/date.h \
> + lib/cmake/date/dateConfig.cmake \
> + lib/cmake/date/dateConfigVersion.cmake \
> + lib/cmake/date/dateTargets.cmake
x11/waybar needs date/tz.h. Switching to date/date.h doesn't help.
Obviously, I can switch to older bundled version in the meantime.
In file included from ../src/modules/clock.cpp:1:
../include/modules/clock.hpp:9:10: fatal error: 'date/tz.h' file not found
#include <date/tz.h>
^~~~~~~~~~~
In file included from ../src/modules/clock.cpp:1:
../include/modules/clock.hpp:17:9: error: no type named 'zoned_seconds' in namespace 'date'; did you mean 'local_seconds'?
date::zoned_seconds ztime;
~~~~~~^~~~~~~~~~~~~
local_seconds
/usr/local/include/date/date.h:203:7: note: 'local_seconds' declared here
using local_seconds = local_time<std::chrono::seconds>;
^
In file included from ../src/modules/clock.cpp:1:
../include/modules/clock.hpp:29:15: error: no type named 'time_zone' in namespace 'date'
const date::time_zone* time_zone_;
~~~~~~^
../src/modules/clock.cpp:16:24: error: no member named 'locate_zone' in namespace 'date'
time_zone_ = date::locate_zone(config_["timezone"].asString());
~~~~~~^
../src/modules/clock.cpp:38:24: error: no member named 'current_zone' in namespace 'date'
time_zone_ = date::current_zone();
~~~~~~^
../src/modules/clock.cpp:42:30: error: no member named 'make_zoned' in namespace 'date'; did you mean 'make_time'?
date::make_zoned(time_zone_, date::floor<std::chrono::seconds>(now))};
~~~~~~^~~~~~~~~~
make_time
/usr/local/include/date/date.h:3964:1: note: 'make_time' declared here
make_time(const std::chrono::duration<Rep, Period>& d)
^
../src/modules/clock.cpp:47:7: error: cannot initialize object parameter of type 'waybar::AModule' with an expression of type 'waybar::modules::Clock'
if (tooltipEnabled()) {
^~~~~~~~~~~~~~
../src/modules/clock.cpp:60:61: error: no member named 'get_local_time' in 'std::__1::chrono::time_point<date::local_t, std::__1::chrono::duration<long long, std::__1::ratio<1, 1> > >'
const auto daypoint = date::floor<date::days>(wtime.ztime.get_local_time());
~~~~~~~~~~~ ^
In file included from ../src/modules/clock.cpp:1:
../include/modules/clock.hpp:29:26: warning: private field 'time_zone_' is not used [-Wunused-private-field]
const date::time_zone* time_zone_;
^
More information about the svn-ports-all
mailing list