Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177567016
D15792.1794755565.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D15792.1794755565.diff
View Options
Index: head/devel/qt5-core/Makefile
===================================================================
--- head/devel/qt5-core/Makefile
+++ head/devel/qt5-core/Makefile
@@ -2,7 +2,7 @@
PORTNAME= core
DISTVERSION= ${QT5_VERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
PKGNAMEPREFIX= qt5-
Index: head/devel/qt5-core/files/patch-src_corelib_tools_qtimezoneprivate_tz.cpp
===================================================================
--- head/devel/qt5-core/files/patch-src_corelib_tools_qtimezoneprivate_tz.cpp
+++ head/devel/qt5-core/files/patch-src_corelib_tools_qtimezoneprivate_tz.cpp
@@ -0,0 +1,20 @@
+--- src/corelib/tools/qtimezoneprivate_tz.cpp.orig 2018-06-13 08:09:13.578248000 -0700
++++ src/corelib/tools/qtimezoneprivate_tz.cpp 2018-06-13 08:11:15.328743000 -0700
+@@ -1072,6 +1072,17 @@ QByteArray QTzTimeZonePrivate::systemTim
+ }
+ }
+
++ // On many FreeBSD systems, /etc/localtime is a regular file while the actual name is in /var/db/zoneinfo
++ if (ianaId.isEmpty()) {
++ QFile tzif(QStringLiteral("/var/db/zoneinfo"));
++ if (tzif.open(QIODevice::ReadOnly)) {
++ // TODO QTextStream inefficient, replace later
++ QTextStream ts(&tzif);
++ if (!ts.atEnd())
++ ianaId = ts.readLine().toUtf8();
++ }
++ }
++
+ // On some Red Hat distros /etc/localtime is real file with name held in /etc/sysconfig/clock
+ // in a line like ZONE="Europe/Oslo" or TIMEZONE="Europe/Oslo"
+ if (ianaId.isEmpty()) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 3:12 PM (13 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41744455
Default Alt Text
D15792.1794755565.diff (1 KB)
Attached To
Mode
D15792: Recognize timezones on FreeBSD for the default install.
Attached
Detach File
Event Timeline