ports/sysutils/freefilesync/files/patch-ui_version__check.cpp
Yuri Victorovich 19f1bc0500 sysutils/freefilesync: Update to 9.8
Port changes:
* Updated LICENSE_FILE
* Added IGNORE_FreeBSD_10 because of missing _cxa_thread_atexit()
* Added to LIB_DEPENDS
* Added USE_GNOME
* Removed USE_LDCONFIG
* Updated post-patch

PR:		226276
Submitted by:	Olexandr Davydenko <odavydenko@gmail.com>
Approved by:	tcberner (mentor, implicit)
2018-03-02 08:51:18 +00:00

22 lines
921 B
C++

--- ui/version_check.cpp.orig 2018-03-02 05:46:44 UTC
+++ ui/version_check.cpp
@@ -70,16 +70,10 @@ std::vector<std::pair<std::string, std::
params.emplace_back("installation_type", isPortableVersion() ? "Portable" : "Local");
- params.emplace_back("os_name", "Linux");
-
- const wxLinuxDistributionInfo distribInfo = wxGetLinuxDistributionInfo();
- assert(contains(distribInfo.Release, L'.'));
- std::vector<wxString> digits = split<wxString>(distribInfo.Release, L'.', SplitType::ALLOW_EMPTY); //e.g. "15.04"
- digits.resize(2);
- //distribInfo.Id //e.g. "Ubuntu"
+ params.emplace_back("os_name", "FreeBSD");
- const int osvMajor = stringTo<int>(digits[0]);
- const int osvMinor = stringTo<int>(digits[1]);
+ const int osvMajor = 0;
+ const int osvMinor = 0;
params.emplace_back("os_version", numberTo<std::string>(osvMajor) + "." + numberTo<std::string>(osvMinor));