Browse Source

uppkg -> 117.0.5938.92-1

Noah Vogt 1 year ago
parent
commit
09bde281c4
3 changed files with 86 additions and 14 deletions
  1. 10 8
      .SRCINFO
  2. 9 6
      PKGBUILD
  3. 67 0
      free-the-X11-pixmap-in-the-NativePixmapEGLX11Bind.patch

+ 10 - 8
.SRCINFO

@@ -1,7 +1,7 @@
 pkgbase = ungoogled-chromium-xdg
 pkgbase = ungoogled-chromium-xdg
 	pkgdesc = A lightweight approach to removing Google web service dependency - without creating a useless ~/.pki directory
 	pkgdesc = A lightweight approach to removing Google web service dependency - without creating a useless ~/.pki directory
-	pkgver = 117.0.5938.88
-	pkgrel = 3
+	pkgver = 117.0.5938.92
+	pkgrel = 1
 	url = https://github.com/ungoogled-software/ungoogled-chromium
 	url = https://github.com/ungoogled-software/ungoogled-chromium
 	arch = x86_64
 	arch = x86_64
 	license = BSD
 	license = BSD
@@ -56,34 +56,36 @@ pkgbase = ungoogled-chromium-xdg
 	optdepends = qt5-base: enable Qt5 with --enable-features=AllowQt
 	optdepends = qt5-base: enable Qt5 with --enable-features=AllowQt
 	optdepends = org.freedesktop.secrets: password storage backend on GNOME / Xfce
 	optdepends = org.freedesktop.secrets: password storage backend on GNOME / Xfce
 	optdepends = kwallet: support for storing passwords in KWallet on Plasma
 	optdepends = kwallet: support for storing passwords in KWallet on Plasma
-	provides = chromium=117.0.5938.88
-	provides = chromedriver=117.0.5938.88
+	provides = chromium=117.0.5938.92
+	provides = chromedriver=117.0.5938.92
 	conflicts = chromium
 	conflicts = chromium
 	conflicts = chromedriver
 	conflicts = chromedriver
 	options = !lto
 	options = !lto
-	source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-117.0.5938.88.tar.xz
+	source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-117.0.5938.92.tar.xz
 	source = https://github.com/foutrelis/chromium-launcher/archive/v8/chromium-launcher-8.tar.gz
 	source = https://github.com/foutrelis/chromium-launcher/archive/v8/chromium-launcher-8.tar.gz
 	source = https://github.com/stha09/chromium-patches/releases/download/chromium-116-patchset-2/chromium-116-patchset-2.tar.xz
 	source = https://github.com/stha09/chromium-patches/releases/download/chromium-116-patchset-2/chromium-116-patchset-2.tar.xz
 	source = add-memory-for-std-unique_ptr-in-third_party-ip.patch
 	source = add-memory-for-std-unique_ptr-in-third_party-ip.patch
 	source = roll-src-third_party-libavif-src-b33d9ebfc.676aded35.patch
 	source = roll-src-third_party-libavif-src-b33d9ebfc.676aded35.patch
+	source = free-the-X11-pixmap-in-the-NativePixmapEGLX11Bind.patch
 	source = REVERT-disable-autoupgrading-debug-info.patch
 	source = REVERT-disable-autoupgrading-debug-info.patch
 	source = material-color-utilities-cmath.patch
 	source = material-color-utilities-cmath.patch
 	source = use-oauth2-client-switches-as-default.patch
 	source = use-oauth2-client-switches-as-default.patch
 	source = xdg-basedir.patch
 	source = xdg-basedir.patch
 	source = no-omnibox-suggestion-autocomplete.patch
 	source = no-omnibox-suggestion-autocomplete.patch
 	source = index.html
 	source = index.html
-	source = ungoogled-chromium-117.0.5938.88-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/refs/tags/117.0.5938.88-1.tar.gz
-	sha256sums = 4691d80039e4155d1a3c4676ee68a1e526ddad61a3cf59f65d596a1a2d56c906
+	source = ungoogled-chromium-117.0.5938.92-1.zip::https://github.com/Ahrotahn/ungoogled-chromium/archive/refs/heads/update.zip
+	sha256sums = 65ca491927902557cafc384c879b567c3728b06fc8ea0c46c45e2f0ce543342c
 	sha256sums = 213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a
 	sha256sums = 213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a
 	sha256sums = 25ad7c1a5e0b7332f80ed15ccf07d7e871d8ffb4af64df7c8fef325a527859b0
 	sha256sums = 25ad7c1a5e0b7332f80ed15ccf07d7e871d8ffb4af64df7c8fef325a527859b0
 	sha256sums = 7b9708f0dbfd697be7043d3cfe52da991185aa0ee29a3b8263506cd3ae4d41a9
 	sha256sums = 7b9708f0dbfd697be7043d3cfe52da991185aa0ee29a3b8263506cd3ae4d41a9
 	sha256sums = 30841fbe0785f8df584eeaa86584fe75f89da26e71df80cf536887557ddef0b6
 	sha256sums = 30841fbe0785f8df584eeaa86584fe75f89da26e71df80cf536887557ddef0b6
+	sha256sums = ab1eb107ec1c915065dc59cf4832da27e17d60eb29038e2aec633daeb946cc6a
 	sha256sums = 1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69
 	sha256sums = 1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69
 	sha256sums = 55e6097d347be40cffebf3ce13ba84ea92d940f60865f1bd7c9af1ef2a2ef8e1
 	sha256sums = 55e6097d347be40cffebf3ce13ba84ea92d940f60865f1bd7c9af1ef2a2ef8e1
 	sha256sums = e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711
 	sha256sums = e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711
 	sha256sums = f97e6cd3c4d2e04f5d9a0ea234fe768d6ba0fa9f4ecd5c7b2ca91030a1249078
 	sha256sums = f97e6cd3c4d2e04f5d9a0ea234fe768d6ba0fa9f4ecd5c7b2ca91030a1249078
 	sha256sums = ff1591fa38e0ede7e883dc7494b813641b7a1a7cb1ded00d9baaee987c1dbea8
 	sha256sums = ff1591fa38e0ede7e883dc7494b813641b7a1a7cb1ded00d9baaee987c1dbea8
 	sha256sums = a4cdd2b86f32d5302c2792be841ff40d982b19bb58a4e63df9d77f4c706b8665
 	sha256sums = a4cdd2b86f32d5302c2792be841ff40d982b19bb58a4e63df9d77f4c706b8665
-	sha256sums = 97d67f4783702537355cdfcaad67024413102478ec5a431b2d51b454e8baea33
+	sha256sums = 62ac172aae971f0eb221b763930e24b38809e07b11a2f0165f487ae4f7d14bb9
 
 
 pkgname = ungoogled-chromium-xdg
 pkgname = ungoogled-chromium-xdg

+ 9 - 6
PKGBUILD

@@ -10,8 +10,8 @@
 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
 
 
 pkgname=ungoogled-chromium-xdg
 pkgname=ungoogled-chromium-xdg
-pkgver=117.0.5938.88
-pkgrel=3
+pkgver=117.0.5938.92
+pkgrel=1
 _launcher_ver=8
 _launcher_ver=8
 _gcc_patchset=116-patchset-2
 _gcc_patchset=116-patchset-2
 _manual_clone=0
 _manual_clone=0
@@ -35,17 +35,19 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom
         https://github.com/stha09/chromium-patches/releases/download/chromium-$_gcc_patchset/chromium-$_gcc_patchset.tar.xz
         https://github.com/stha09/chromium-patches/releases/download/chromium-$_gcc_patchset/chromium-$_gcc_patchset.tar.xz
         add-memory-for-std-unique_ptr-in-third_party-ip.patch
         add-memory-for-std-unique_ptr-in-third_party-ip.patch
         roll-src-third_party-libavif-src-b33d9ebfc.676aded35.patch
         roll-src-third_party-libavif-src-b33d9ebfc.676aded35.patch
+        free-the-X11-pixmap-in-the-NativePixmapEGLX11Bind.patch
         REVERT-disable-autoupgrading-debug-info.patch
         REVERT-disable-autoupgrading-debug-info.patch
         material-color-utilities-cmath.patch
         material-color-utilities-cmath.patch
         use-oauth2-client-switches-as-default.patch
         use-oauth2-client-switches-as-default.patch
         xdg-basedir.patch
         xdg-basedir.patch
         no-omnibox-suggestion-autocomplete.patch
         no-omnibox-suggestion-autocomplete.patch
         index.html)
         index.html)
-sha256sums=('4691d80039e4155d1a3c4676ee68a1e526ddad61a3cf59f65d596a1a2d56c906'
+sha256sums=('65ca491927902557cafc384c879b567c3728b06fc8ea0c46c45e2f0ce543342c'
             '213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a'
             '213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a'
             '25ad7c1a5e0b7332f80ed15ccf07d7e871d8ffb4af64df7c8fef325a527859b0'
             '25ad7c1a5e0b7332f80ed15ccf07d7e871d8ffb4af64df7c8fef325a527859b0'
             '7b9708f0dbfd697be7043d3cfe52da991185aa0ee29a3b8263506cd3ae4d41a9'
             '7b9708f0dbfd697be7043d3cfe52da991185aa0ee29a3b8263506cd3ae4d41a9'
             '30841fbe0785f8df584eeaa86584fe75f89da26e71df80cf536887557ddef0b6'
             '30841fbe0785f8df584eeaa86584fe75f89da26e71df80cf536887557ddef0b6'
+            'ab1eb107ec1c915065dc59cf4832da27e17d60eb29038e2aec633daeb946cc6a'
             '1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69'
             '1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69'
             '55e6097d347be40cffebf3ce13ba84ea92d940f60865f1bd7c9af1ef2a2ef8e1'
             '55e6097d347be40cffebf3ce13ba84ea92d940f60865f1bd7c9af1ef2a2ef8e1'
             'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711'
             'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711'
@@ -63,10 +65,10 @@ conflicts=('chromium' 'chromedriver')
 _uc_usr=ungoogled-software
 _uc_usr=ungoogled-software
 _uc_ver=$pkgver-1
 _uc_ver=$pkgver-1
 source=(${source[@]}
 source=(${source[@]}
-        ${pkgname%-*}-$_uc_ver.tar.gz::https://github.com/$_uc_usr/ungoogled-chromium/archive/refs/tags/$_uc_ver.tar.gz)
-        # ${pkgname%-*}-$_uc_ver.zip::https://github.com/Ahrotahn/${pkgname%-*}/archive/refs/heads/update.zip)
+        # ${pkgname%-*}-$_uc_ver.tar.gz::https://github.com/$_uc_usr/ungoogled-chromium/archive/refs/tags/$_uc_ver.tar.gz)
+        ${pkgname%-*}-$_uc_ver.zip::https://github.com/Ahrotahn/${pkgname%-*}/archive/refs/heads/update.zip)
 sha256sums=(${sha256sums[@]}
 sha256sums=(${sha256sums[@]}
-            '97d67f4783702537355cdfcaad67024413102478ec5a431b2d51b454e8baea33')
+            '62ac172aae971f0eb221b763930e24b38809e07b11a2f0165f487ae4f7d14bb9')
 
 
 # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
 # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
 # Keys are the names in the above script; values are the dependencies in Arch
 # Keys are the names in the above script; values are the dependencies in Arch
@@ -133,6 +135,7 @@ prepare() {
   # Upstream fixes
   # Upstream fixes
   patch -Np1 -i ../add-memory-for-std-unique_ptr-in-third_party-ip.patch
   patch -Np1 -i ../add-memory-for-std-unique_ptr-in-third_party-ip.patch
   patch -Np1 -i ../roll-src-third_party-libavif-src-b33d9ebfc.676aded35.patch
   patch -Np1 -i ../roll-src-third_party-libavif-src-b33d9ebfc.676aded35.patch
+  patch -Np1 -i ../free-the-X11-pixmap-in-the-NativePixmapEGLX11Bind.patch
 
 
 
 
   # Revert addition of compiler flag that needs newer clang
   # Revert addition of compiler flag that needs newer clang

+ 67 - 0
free-the-X11-pixmap-in-the-NativePixmapEGLX11Bind.patch

@@ -0,0 +1,67 @@
+From 42d57d016f5fb6d2a1a354743b9be911c1be87e8 Mon Sep 17 00:00:00 2001
+From: Jianhui Dai <jianhui.j.dai@intel.com>
+Date: Fri, 22 Sep 2023 21:30:04 +0000
+Subject: [PATCH] [GL] Free the X11 pixmap in the NativePixmapEGLX11Binding
+ destructor
+
+This CL frees the X11 pixmap in the NativePixmapEGLX11Binding destructor
+to prevent a memory leak in the X server.
+
+Bug: 1467689
+Change-Id: Id4cba30825417db52176f9165db34d7234a05a05
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4886249
+Reviewed-by: Ted (Chromium) Meyer <tmathmeyer@chromium.org>
+Commit-Queue: Ted (Chromium) Meyer <tmathmeyer@chromium.org>
+Reviewed-by: Maksim Sisov <msisov@igalia.com>
+Cr-Commit-Position: refs/heads/main@{#1200486}
+---
+ .../platform/x11/native_pixmap_egl_x11_binding.cc    | 12 +++++++++---
+ .../platform/x11/native_pixmap_egl_x11_binding.h     |  2 ++
+ 2 files changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/ui/ozone/platform/x11/native_pixmap_egl_x11_binding.cc b/ui/ozone/platform/x11/native_pixmap_egl_x11_binding.cc
+index 46a2d3274b9..b46eb67b9de 100644
+--- a/ui/ozone/platform/x11/native_pixmap_egl_x11_binding.cc
++++ b/ui/ozone/platform/x11/native_pixmap_egl_x11_binding.cc
+@@ -147,9 +147,17 @@ NativePixmapEGLX11Binding::~NativePixmapEGLX11Binding() {
+   if (surface_) {
+     eglDestroySurface(display_, surface_);
+   }
++
++  if (pixmap_ != x11::Pixmap::None) {
++    auto* connection = x11::Connection::Get();
++    connection->FreePixmap({pixmap_});
++  }
+ }
+ 
+ bool NativePixmapEGLX11Binding::Initialize(x11::Pixmap pixmap) {
++  CHECK_NE(pixmap, x11::Pixmap::None);
++  pixmap_ = pixmap;
++
+   if (eglInitialize(display_, nullptr, nullptr) != EGL_TRUE) {
+     return false;
+   }
+@@ -223,9 +231,7 @@ std::unique_ptr<NativePixmapGLBinding> NativePixmapEGLX11Binding::Create(
+     return nullptr;
+   }
+ 
+-  // TODO(https://crbug.com/1411749): if we early out below, should we call
+-  // FreePixmap()?
+-
++  // Transfer the ownership of `pixmap` to `NativePixmapEGLX11Binding`.
+   if (!binding->Initialize(std::move(pixmap))) {
+     VLOG(1) << "Unable to initialize binding from pixmap";
+     return nullptr;
+diff --git a/ui/ozone/platform/x11/native_pixmap_egl_x11_binding.h b/ui/ozone/platform/x11/native_pixmap_egl_x11_binding.h
+index 013df3f776a..99b262b82ce 100644
+--- a/ui/ozone/platform/x11/native_pixmap_egl_x11_binding.h
++++ b/ui/ozone/platform/x11/native_pixmap_egl_x11_binding.h
+@@ -47,6 +47,8 @@ class NativePixmapEGLX11Binding : public NativePixmapGLBinding {
+   EGLSurface surface_ = nullptr;
+   EGLDisplay display_;
+   gfx::BufferFormat format_;
++
++  x11::Pixmap pixmap_ = x11::Pixmap::None;
+ };
+ 
+ }  // namespace ui