Pārlūkot izejas kodu

remove unneccesary hunks in xdg-basedir.patch

Noah Vogt 1 gadu atpakaļ
vecāks
revīzija
a940f179ae
3 mainītis faili ar 8 papildinājumiem un 26 dzēšanām
  1. 1 1
      .SRCINFO
  2. 1 1
      PKGBUILD
  3. 6 24
      xdg-basedir.patch

+ 1 - 1
.SRCINFO

@@ -82,6 +82,6 @@ pkgbase = electron25-xdg
 	sha256sums = 621ed210d75d0e846192c1571bb30db988721224a41572c27769c0288d361c11
 	sha256sums = 1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69
 	sha256sums = ba4dd0a25a4fc3267ed19ccb39f28b28176ca3f97f53a4e9f5e9215280040ea0
-	sha256sums = cd844867b5b2197ad097662fee32579a7091dfba1d46cb438c4c7e696690440a
+	sha256sums = a7d9c117e713e8fc68c777fcc046da5dcae7706055d6d1af7555687086ff4266
 
 pkgname = electron25-xdg

+ 1 - 1
PKGBUILD

@@ -118,7 +118,7 @@ depends+=(${_system_libs[@]})
 source=(${source[@]}
         xdg-basedir.patch)
 sha256sums=(${sha256sums[@]}
-            'cd844867b5b2197ad097662fee32579a7091dfba1d46cb438c4c7e696690440a')
+            'a7d9c117e713e8fc68c777fcc046da5dcae7706055d6d1af7555687086ff4266')
 
 prepare() {
   sed -i "s|@ELECTRON@|${pkgname%-*}|" electron-launcher.sh

+ 6 - 24
xdg-basedir.patch

@@ -10,7 +10,7 @@
  const char kXdgSessionTypeEnvVar[] = "XDG_SESSION_TYPE";
 +const char kDotDataDir[] = ".local/share";
 +const char kXdgDataHomeEnvVar[] = "XDG_DATA_HOME";
- 
+
  FilePath GetXDGDirectory(Environment* env, const char* env_name,
                           const char* fallback_dir) {
 
@@ -19,10 +19,10 @@
 @@ -37,6 +37,12 @@
  // The XDG session type environment variable.
  BASE_EXPORT extern const char kXdgSessionTypeEnvVar[];
- 
+
 +// The default XDG data directory name.
 +BASE_EXPORT extern const char kDotDataDir[];
-+ 
++
 +// The XDG data directory environment variable.
 +BASE_EXPORT extern const char kXdgDataHomeEnvVar[];
 +
@@ -39,11 +39,11 @@
 +#include "base/environment.h"
 +#include "base/nix/xdg_util.h"
 +#include "chrome/common/chrome_constants.h"
- 
+
  namespace crypto {
- 
+
 @@ -45,12 +48,21 @@
- 
+
  base::FilePath GetDefaultConfigDirectory() {
    base::FilePath dir;
 +#if defined(OS_LINUX)
@@ -65,21 +65,3 @@
    if (!base::CreateDirectory(dir)) {
      LOG(ERROR) << "Failed to create " << dir.value() << " directory.";
      dir.clear();
-@@ -136,7 +148,7 @@
-   NSSInitSingleton() {
-     // Initializing NSS causes us to do blocking IO.
-     // Temporarily allow it until we fix
--    //   http://code.google.com/p/chromium/issues/detail?id=59847
-+    //   http://code.9oo91e.qjz9zk/p/chromium/issues/detail?id=59847
-     base::ThreadRestrictions::ScopedAllowIO allow_io;
- 
-     EnsureNSPRInit();
-@@ -273,7 +285,7 @@
- 
-   // Shouldn't need to const_cast here, but SECMOD doesn't properly declare
-   // input string arguments as const.  Bug
--  // https://bugzilla.mozilla.org/show_bug.cgi?id=642546 was filed on NSS
-+  // https://bugzilla.m0z111a.qjz9zk/show_bug.cgi?id=642546 was filed on NSS
-   // codebase to address this.
-   SECMODModule* module = SECMOD_LoadUserModule(
-       const_cast<char*>(modparams.c_str()), nullptr, PR_FALSE);