void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

0001-musl.patch (1258B)


      1 --- Telegram/lib_base/base/platform/linux/base_info_linux.cpp	2020-06-03 09:28:30.000000000 +0200
      2 +++ -	2020-06-08 00:40:30.503197310 +0200
      3 @@ -13,7 +13,6 @@
      4  #include <QtCore/QVersionNumber>
      5  #include <QtCore/QDate>
      6  #include <QtGui/QGuiApplication>
      7 -#include <gnu/libc-version.h>
      8  
      9  namespace Platform {
     10  namespace {
     11 @@ -84,8 +74,7 @@
     12  	return "Linux "
     13  		+ (list.isEmpty() ? QString() : list[0] + ' ')
     14  		+ (IsWayland() ? "Wayland " : "X11 ")
     15 -		+ "glibc "
     16 -		+ GetGlibCVersion();
     17 +		+ "void ";
     18  }
     19  
     20  QString SystemCountry() {
     21 @@ -103,11 +92,7 @@
     22  QDate WhenSystemBecomesOutdated() {
     23  	if (IsLinux32Bit()) {
     24  		return QDate(2020, 9, 1);
     25 -	} else if (const auto version = GetGlibCVersion(); !version.isEmpty()) {
     26 -		if (QVersionNumber::fromString(version) < QVersionNumber(2, 23)) {
     27 -			return QDate(2020, 9, 1); // Older than Ubuntu 16.04.
     28 -		}
     29 -	}
     30 +	} 
     31  	return QDate();
     32  }
     33  
     34 @@ -129,14 +114,6 @@
     35  	}
     36  }
     37  
     38 -QString GetGlibCVersion() {
     39 -	static const auto result = [&] {
     40 -		const auto version = QString::fromLatin1(gnu_get_libc_version());
     41 -		return QVersionNumber::fromString(version).isNull() ? QString() : version;
     42 -	}();
     43 -	return result;
     44 -}
     45 -
     46  bool IsWayland() {
     47  	return QGuiApplication::platformName().startsWith("wayland", Qt::CaseInsensitive);
     48  }