diff --git a/devel/electron13/Makefile b/devel/electron13/Makefile --- a/devel/electron13/Makefile +++ b/devel/electron13/Makefile @@ -1,7 +1,7 @@ PORTNAME= electron DISTVERSIONPREFIX= v DISTVERSION= ${ELECTRON_VER:S/-beta./.b/} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/:chromium \ https://commondatastorage.googleapis.com/chromium-fonts/:chromium_testfonts diff --git a/devel/electron13/files/patch-components_sync__device__info_local__device__info__util__linux.cc b/devel/electron13/files/patch-components_sync__device__info_local__device__info__util__linux.cc --- a/devel/electron13/files/patch-components_sync__device__info_local__device__info__util__linux.cc +++ b/devel/electron13/files/patch-components_sync__device__info_local__device__info__util__linux.cc @@ -1,14 +1,13 @@ ---- components/sync_device_info/local_device_info_util_linux.cc.orig 2021-04-14 01:08:47 UTC +--- components/sync_device_info/local_device_info_util_linux.cc.orig 2021-07-15 19:13:38 UTC +++ components/sync_device_info/local_device_info_util_linux.cc -@@ -38,8 +38,9 @@ std::string GetPersonalizableDeviceNameInternal() { +@@ -38,8 +38,8 @@ std::string GetPersonalizableDeviceNameInternal() { #if BUILDFLAG(IS_CHROMEOS_ASH) return GetChromeOSDeviceNameFromType(); #else - char hostname[HOST_NAME_MAX]; - if (gethostname(hostname, HOST_NAME_MAX) == 0) // Success. -+ int len = sysconf(_SC_HOST_NAME_MAX); -+ char hostname[len]; -+ if (gethostname(hostname, _SC_HOST_NAME_MAX) == 0) // Success. ++ char hostname[_POSIX_HOST_NAME_MAX]; ++ if (gethostname(hostname, _POSIX_HOST_NAME_MAX) == 0) // Success. return hostname; return base::GetLinuxDistro(); #endif