aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-08-31 10:07:38 +0200
committerMarius Bakke <marius@gnu.org>2022-09-01 19:05:17 +0200
commitcd10a235d9e027c0851e9b47f76288d0bfca8a9b (patch)
tree53b74fcc710e4da0a48704f46b6b005a347c4fa0 /gnu
parent4989f6acff3b3fcfbd9dde3e3c2767bd2cd6d49e (diff)
downloadguix-cd10a235d9e027c0851e9b47f76288d0bfca8a9b.tar
guix-cd10a235d9e027c0851e9b47f76288d0bfca8a9b.tar.gz
gnu: ungoogled-chromium: Update to 105.0.5195.52-1.
* gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 105. (%chromium-version): Set to 105.0.5195.52. (%ungoogled-origin): Update hash. (%chromium-gcc-patchset): New origin. (origin-file, gcc-patch): New procedures. (%gcc-patches): New variable. (debian-patch): Implement in terms of ORIGIN-FILE. (ungoogled-chromium-snippet): Apply %GCC-PATCHES. (ungoogled-chromium)[source](sha256): Update hash. [arguments]: Patch more Opus headers & simplify.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/chromium.scm81
1 files changed, 55 insertions, 26 deletions
diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index a5ce51a456..96e3f4d805 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -123,6 +123,7 @@
"third_party/ced" ;BSD-3
"third_party/cld_3" ;ASL2.0
"third_party/closure_compiler" ;ASL2.0
+ "third_party/content_analysis_sdk" ;BSD-3
"third_party/cpuinfo" ;BSD-2
"third_party/crashpad" ;ASL2.0
"third_party/crashpad/crashpad/third_party/lss" ;ASL2.0
@@ -316,7 +317,7 @@
;; run the Blink performance tests, just remove everything to save ~70MiB.
'("third_party/blink/perf_tests"))
-(define %chromium-version "104.0.5112.101")
+(define %chromium-version "105.0.5195.52")
(define %ungoogled-revision (string-append %chromium-version "-1"))
(define %debian-revision "debian/102.0.5005.61-1")
@@ -328,7 +329,7 @@
(file-name (git-file-name "ungoogled-chromium" %ungoogled-revision))
(sha256
(base32
- "0jy5hjn61p5mnbqns3jlybim7iy8w9cmzm3i84wn68cyyx1bk25m"))))
+ "1smzgnd3zmh57pz7sk9nb7m31wbhx1x9y3ll3m4zaxwrrb41kghn"))))
(define %debian-origin
(origin
@@ -343,18 +344,45 @@
(base32
"1ln6r1qzlr7dsgvcbssvvc34my4mpkwv9hmvlb2dhjncs7isp65j"))))
-(define (debian-patch name)
+(define %chromium-gcc-patchset
+ (let ((commit "chromium-105-patchset-1"))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/stha09/chromium-patches")
+ (commit commit)))
+ (file-name (git-file-name "chromium-gcc-patches"
+ (string-drop commit 9)))
+ (sha256
+ (base32
+ "08c3pbdqjdqi7rmyqkkh6q429611ikakf4gkzwg1gr07vyknwkfa")))))
+
+(define (origin-file origin file)
(computed-file
- (basename name)
- #~(symlink (string-append #$%debian-origin "/debian/patches/" #$name)
+ (basename file)
+ #~(symlink (string-append #$origin "/" #$file)
#$output)))
+(define (debian-patch name)
+ (origin-file %debian-origin (string-append "/debian/patches/" name)))
+
(define %debian-patches
(map debian-patch
'("system/jsoncpp.patch"
"system/zlib.patch"
"system/openjpeg.patch")))
+(define (gcc-patch name)
+ (origin-file %chromium-gcc-patchset name))
+
+(define %gcc-patches
+ (map gcc-patch
+ '("chromium-105-AdjustMaskLayerGeometry-ceilf.patch"
+ "chromium-105-Bitmap-include.patch"
+ "chromium-105-browser_finder-include.patch"
+ "chromium-105-raw_ptr-noexcept.patch"
+ "chromium-105-Trap-raw_ptr.patch")))
+
;; Take a patch from Arch that reverts a change which requires an unreleased
;; version of ffmpeg.
(define %ungoogled-chromium-unroll-ffmpeg.patch
@@ -405,7 +433,8 @@
(for-each (lambda (patch)
(invoke "patch" "-p1" "--force" "--input"
patch "--no-backup-if-mismatch"))
- (append '#+%debian-patches '#+%guix-patches))
+ (append '#+%debian-patches '#+%guix-patches
+ '#+%gcc-patches))
(invoke "patch" "-Rp1" "--force" "--input" "--no-backup-if-mismatch"
"--input" #$%ungoogled-chromium-unroll-ffmpeg.patch)
@@ -477,7 +506,7 @@
%chromium-version ".tar.xz"))
(sha256
(base32
- "0nrghgngxdn9richjnxii9y94dg5zpwc3gd3vx609r4xaphibw30"))
+ "0hkwjilzy0x28knm6nrkywnsmldhz4kgpnxka2iaghihkjzb4wfw"))
(modules '((guix build utils)))
(snippet (force ungoogled-chromium-snippet))))
(build-system gnu-build-system)
@@ -611,25 +640,25 @@
"sandbox/linux/syscall_broker/broker_host.cc")
(("include \"base/third_party/valgrind/") "include \"valgrind/"))
- (for-each (lambda (file)
- (substitute* file
- ;; Fix opus include path.
- ;; Do not substitute opus_private.h.
- (("#include \"opus\\.h\"")
- "#include \"opus/opus.h\"")
- (("#include \"opus_custom\\.h\"")
- "#include \"opus/opus_custom.h\"")
- (("#include \"opus_defines\\.h\"")
- "#include \"opus/opus_defines.h\"")
- (("#include \"opus_multistream\\.h\"")
- "#include \"opus/opus_multistream.h\"")
- (("#include \"opus_types\\.h\"")
- "#include \"opus/opus_types.h\"")))
- (find-files (string-append "third_party/webrtc/modules"
- "/audio_coding/codecs/opus")))
- (substitute* "media/audio/audio_opus_encoder.h"
- (("\"third_party/opus/src/include/opus.h\"")
- "<opus/opus.h>"))
+ (substitute*
+ (append
+ '("media/audio/audio_opus_encoder.h")
+ (find-files (string-append "third_party/webrtc/modules"
+ "/audio_coding/codecs/opus")))
+ ;; Fix opus include path.
+ ;; Do not substitute opus_private.h.
+ (("#include \"opus\\.h\"")
+ "#include \"opus/opus.h\"")
+ (("#include \"opus_custom\\.h\"")
+ "#include \"opus/opus_custom.h\"")
+ (("#include \"opus_defines\\.h\"")
+ "#include \"opus/opus_defines.h\"")
+ (("#include \"opus_multistream\\.h\"")
+ "#include \"opus/opus_multistream.h\"")
+ (("#include \"opus_types\\.h\"")
+ "#include \"opus/opus_types.h\"")
+ (("\"third_party/opus/src/include/([a-z_-]+\\.h)\"" _ header)
+ (string-append "<opus/" header ">")))
(substitute* "third_party/webrtc/rtc_base/strings/json.h"
(("#include \"third_party/jsoncpp/")