You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

908 lines
40 KiB

gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
gnu: ungoogled-chromium: Update to 83.0.4103.106-0.f08ce8b [security fixes]. This fixes CVE-2020-6465, CVE-2020-6466, CVE-2020-6467, CVE-2020-6468, CVE-2020-6469, CVE-2020-6470, CVE-2020-6471, CVE-2020-6472, CVE-2020-6473, CVE-2020-6474, CVE-2020-6475, CVE-2020-6476, CVE-2020-6477, CVE-2020-6478, CVE-2020-6479, CVE-2020-6480, CVE-2020-6481, CVE-2020-6482, CVE-2020-6483, CVE-2020-6484, CVE-2020-6485, CVE-2020-6486, CVE-2020-6487, CVE-2020-6488, CVE-2020-6489, CVE-2020-6490, CVE-2020-6491, CVE-2020-6493, CVE-2020-6494, CVE-2020-6495, CVE-2020-6496, CVE-2020-6497, and CVE-2020-6498. * gnu/packages/patches/ungoogled-chromium-system-jsoncpp.patch, gnu/packages/patches/ungoogled-chromium-system-zlib.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for 83. (%chromium-version): Set to 83.0.4103.106. (%ungoogled-revision): Set to f08ce8b3f1300ef0750b5d6bf967b9cbbfd9a56d. (%gentoo-revision, %gentoo-patches, %debian-patches): New variables. (gentoo-patch, debian-patch): New procedures. (%chromium-origin, %ungoogled-origin): Update hashes. (ungoogled-chromium-source): Don't apply patches from %DEBIAN-ORIGIN, but take %GENTOO-PATCHES, %DEBIAN-PATCHES, and the local patch files. (ungoogled-chromium)[arguments]: Remove "enable_swiftshader=false" from #:configure-flags. Add "icu_use_data_file=false". Set CFLAGS in phase. Remove obsolete substitution. Adjust install phase to install .so files for ANGLE and Swiftshader. [native-inputs]: Change from CLANG-9 to CLANG-10. [inputs]: Replace ICU4C with ICU4C-67. (ungoogled-chromium/wayland): Remove obsolete substitution. Add "ozone_platform_x11=true" in #:configure-flags.
1 year ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
  3. ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
  4. ;;;
  5. ;;; This file is part of GNU Guix.
  6. ;;;
  7. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  8. ;;; under the terms of the GNU General Public License as published by
  9. ;;; the Free Software Foundation; either version 3 of the License, or (at
  10. ;;; your option) any later version.
  11. ;;;
  12. ;;; GNU Guix is distributed in the hope that it will be useful, but
  13. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;;; GNU General Public License for more details.
  16. ;;;
  17. ;;; You should have received a copy of the GNU General Public License
  18. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. (define-module (gnu packages chromium)
  20. #:use-module ((guix licenses) #:prefix license:)
  21. #:use-module (guix packages)
  22. #:use-module (guix gexp)
  23. #:use-module (guix store)
  24. #:use-module (guix monads)
  25. #:use-module (guix download)
  26. #:use-module (guix git-download)
  27. #:use-module (guix utils)
  28. #:use-module (guix build-system gnu)
  29. #:use-module (gnu packages)
  30. #:use-module (gnu packages assembly)
  31. #:use-module (gnu packages base)
  32. #:use-module (gnu packages bison)
  33. #:use-module (gnu packages build-tools)
  34. #:use-module (gnu packages compression)
  35. #:use-module (gnu packages cups)
  36. #:use-module (gnu packages curl)
  37. #:use-module (gnu packages fontutils)
  38. #:use-module (gnu packages freedesktop)
  39. #:use-module (gnu packages ghostscript)
  40. #:use-module (gnu packages gl)
  41. #:use-module (gnu packages glib)
  42. #:use-module (gnu packages gnome)
  43. #:use-module (gnu packages gperf)
  44. #:use-module (gnu packages gtk)
  45. #:use-module (gnu packages icu4c)
  46. #:use-module (gnu packages image)
  47. #:use-module (gnu packages libevent)
  48. #:use-module (gnu packages libffi)
  49. #:use-module (gnu packages linux)
  50. #:use-module (gnu packages llvm)
  51. #:use-module (gnu packages kerberos)
  52. #:use-module (gnu packages ninja)
  53. #:use-module (gnu packages node)
  54. #:use-module (gnu packages nss)
  55. #:use-module (gnu packages pciutils)
  56. #:use-module (gnu packages pkg-config)
  57. #:use-module (gnu packages protobuf)
  58. #:use-module (gnu packages pulseaudio)
  59. #:use-module (gnu packages python)
  60. #:use-module (gnu packages python-web)
  61. #:use-module (gnu packages python-xyz)
  62. #:use-module (gnu packages regex)
  63. #:use-module (gnu packages serialization)
  64. #:use-module (gnu packages speech)
  65. #:use-module (gnu packages tls)
  66. #:use-module (gnu packages valgrind)
  67. #:use-module (gnu packages vulkan)
  68. #:use-module (gnu packages video)
  69. #:use-module (gnu packages xiph)
  70. #:use-module (gnu packages xml)
  71. #:use-module (gnu packages xdisorg)
  72. #:use-module (gnu packages xorg)
  73. #:use-module (ice-9 match)
  74. #:use-module (srfi srfi-1))
  75. (define %preserved-third-party-files
  76. '("base/third_party/cityhash" ;Expat
  77. "base/third_party/double_conversion" ;BSD-3
  78. "base/third_party/dynamic_annotations" ;BSD-2
  79. "base/third_party/icu" ;Unicode, X11-style
  80. "base/third_party/superfasthash" ;BSD-3
  81. "base/third_party/symbolize" ;BSD-3
  82. "base/third_party/xdg_mime" ;LGPL2.0+ or Academic 2.0
  83. "base/third_party/xdg_user_dirs" ;Expat
  84. "chrome/third_party/mozilla_security_manager" ;MPL-1.1/GPL2+/LGPL2.1+
  85. "courgette/third_party/bsdiff" ;BSD-2, BSD protection license
  86. "courgette/third_party/divsufsort" ;Expat
  87. "net/third_party/mozilla_security_manager" ;MPL-1.1/GPL2+/LGPL2.1+
  88. "net/third_party/nss" ;MPL-2.0
  89. "net/third_party/quiche" ;BSD-3
  90. "net/third_party/uri_template" ;ASL2.0
  91. "third_party/abseil-cpp" ;ASL2.0
  92. "third_party/adobe/flash/flapper_version.h" ;no license, trivial
  93. "third_party/angle" ;BSD-3
  94. "third_party/angle/src/common/third_party/base" ;BSD-3
  95. "third_party/angle/src/common/third_party/smhasher" ;Public domain
  96. "third_party/angle/src/common/third_party/xxhash" ;BSD-2
  97. "third_party/angle/src/third_party/compiler" ;BSD-2
  98. "third_party/angle/src/third_party/libXNVCtrl" ;Expat
  99. "third_party/angle/src/third_party/trace_event" ;BSD-3
  100. "third_party/angle/src/third_party/volk" ;Expat
  101. "third_party/angle/third_party/vulkan-headers" ;ASL2.0
  102. "third_party/angle/third_party/vulkan-loader" ;ASL2.0
  103. "third_party/angle/third_party/vulkan-tools" ;ASL2.0
  104. "third_party/angle/third_party/vulkan-validation-layers" ;ASL2.0
  105. "third_party/apple_apsl" ;APSL2.0
  106. "third_party/axe-core" ;MPL2.0
  107. "third_party/blink" ;BSD-3, LGPL2+
  108. "third_party/boringssl" ;OpenSSL/ISC (Google additions are ISC)
  109. "third_party/boringssl/src/third_party/fiat" ;Expat
  110. "third_party/breakpad" ;BSD-3
  111. "third_party/brotli" ;Expat
  112. "third_party/cacheinvalidation" ;ASL2.0
  113. "third_party/catapult" ;BSD-3
  114. "third_party/catapult/common/py_vulcanize/third_party/rcssmin" ;ASL2.0
  115. "third_party/catapult/common/py_vulcanize/third_party/rjsmin" ;ASL2.0
  116. "third_party/catapult/third_party/polymer" ;BSD-3
  117. ;; XXX: This is a minified version of <https://d3js.org/>.
  118. "third_party/catapult/tracing/third_party/d3" ;BSD-3
  119. "third_party/catapult/tracing/third_party/gl-matrix" ;Expat
  120. "third_party/catapult/tracing/third_party/jpeg-js" ;ASL2.0
  121. ;; XXX: Minified version of <https://github.com/Stuk/jszip>.
  122. "third_party/catapult/tracing/third_party/jszip" ;Expat or GPL3
  123. "third_party/catapult/tracing/third_party/mannwhitneyu" ;Expat
  124. "third_party/catapult/tracing/third_party/oboe" ;BSD-2
  125. ;; XXX: Minified version of <https://github.com/nodeca/pako>.
  126. "third_party/catapult/tracing/third_party/pako" ;Expat
  127. "third_party/ced" ;BSD-3
  128. "third_party/cld_3" ;ASL2.0
  129. "third_party/closure_compiler" ;ASL2.0
  130. "third_party/crashpad" ;ASL2.0
  131. "third_party/crashpad/crashpad/third_party/lss" ;ASL2.0
  132. "third_party/crashpad/crashpad/third_party/zlib/zlib_crashpad.h" ;Zlib
  133. "third_party/crc32c" ;BSD-3
  134. "third_party/cros_system_api" ;BSD-3
  135. "third_party/dav1d" ;BSD-2
  136. "third_party/dawn" ;ASL2.0
  137. "third_party/depot_tools/owners.py" ;BSD-3
  138. "third_party/devtools-frontend" ;BSD-3
  139. "third_party/devtools-frontend/src/front_end/third_party/acorn" ;Expat
  140. "third_party/devtools-frontend/src/front_end/third_party/codemirror" ;Expat
  141. "third_party/devtools-frontend/src/front_end/third_party/fabricjs" ;Expat
  142. "third_party/devtools-frontend/src/front_end/third_party/lighthouse" ;ASL2.0
  143. "third_party/devtools-frontend/src/front_end/third_party/wasmparser" ;ASL2.0
  144. "third_party/devtools-frontend/src/third_party/axe-core" ;MPL2.0
  145. "third_party/devtools-frontend/src/third_party/pyjson5" ;ASL2.0
  146. "third_party/devtools-frontend/src/third_party/typescript" ;ASL2.0
  147. "third_party/dom_distiller_js" ;BSD-3
  148. "third_party/emoji-segmenter" ;ASL2.0
  149. "third_party/flatbuffers" ;ASL2.0
  150. "third_party/glslang" ;BSD-3, Expat, ASL2.0
  151. "third_party/google_input_tools" ;ASL2.0
  152. "third_party/google_input_tools/third_party/closure_library" ;ASL2.0
  153. "third_party/google_input_tools/third_party/closure_library/third_party/closure" ;Expat
  154. "third_party/googletest" ;BSD-3
  155. "third_party/harfbuzz-ng" ;Expat
  156. "third_party/hunspell" ;MPL1.1/GPL2+/LGPL2.1+
  157. "third_party/iccjpeg" ;IJG
  158. "third_party/inspector_protocol" ;BSD-3
  159. "third_party/jinja2" ;BSD-3
  160. "third_party/jstemplate" ;ASL2.0
  161. "third_party/khronos" ;Expat, SGI
  162. "third_party/leveldatabase" ;BSD-3
  163. "third_party/libavif" ;BSD-2
  164. "third_party/libXNVCtrl" ;Expat
  165. "third_party/libaddressinput" ;ASL2.0
  166. "third_party/libaom" ;BSD-2 or "Alliance for Open Media Patent License 1.0"
  167. "third_party/libaom/source/libaom/third_party/vector" ;Expat
  168. "third_party/libaom/source/libaom/third_party/x86inc" ;ISC
  169. "third_party/libgifcodec" ;MPL1.1/GPL2+/LGPL2.1+, BSD-3, BSD-2
  170. "third_party/libjingle_xmpp" ;BSD-3
  171. "third_party/libphonenumber" ;ASL2.0
  172. "third_party/libsecret" ;LGPL2.1+
  173. "third_party/libsrtp" ;BSD-3
  174. "third_party/libsync" ;ASL2.0
  175. "third_party/libudev" ;LGPL2.1+
  176. "third_party/libwebm" ;BSD-3
  177. "third_party/libxml/chromium" ;BSD-3
  178. "third_party/libyuv" ;BSD-3
  179. "third_party/lottie" ;Expat
  180. "third_party/lss" ;BSD-3
  181. "third_party/mako" ;Expat
  182. "third_party/markupsafe" ;BSD-3
  183. "third_party/mesa_headers" ;Expat, SGI
  184. "third_party/metrics_proto" ;BSD-3
  185. "third_party/modp_b64" ;BSD-3
  186. "third_party/nasm" ;BSD-2
  187. "third_party/node" ;Expat
  188. "third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2" ;BSD-2
  189. "third_party/one_euro_filter" ;BSD-3
  190. "third_party/openscreen" ;BSD-3
  191. "third_party/openscreen/src/third_party/tinycbor" ;Expat
  192. "third_party/openscreen/src/third_party/mozilla" ;MPL1.1/GPL2+/LGPL2.1+, BSD-3
  193. "third_party/ots" ;BSD-3
  194. "third_party/pdfium" ;BSD-3
  195. "third_party/pdfium/third_party/agg23" ;Expat
  196. "third_party/pdfium/third_party/base" ;BSD-3
  197. "third_party/pdfium/third_party/bigint" ;Public domain, BSD-3
  198. "third_party/pdfium/third_party/skia_shared" ;BSD-3
  199. "third_party/pdfium/third_party/freetype/include/pstables.h" ;FreeType
  200. "third_party/perfetto" ;ASL2.0
  201. "third_party/pffft" ;the "FFTPACK" license, similar to BSD-3
  202. "third_party/ply" ;BSD-3
  203. "third_party/polymer" ;BSD-3
  204. "third_party/private-join-and-compute" ;ASL2.0
  205. "third_party/protobuf" ;BSD-3
  206. "third_party/protobuf/third_party/six" ;Expat
  207. "third_party/pyjson5" ;ASL2.0
  208. "third_party/qcms" ;Expat
  209. "third_party/rnnoise" ;BSD-3
  210. "third_party/s2cellid" ;ASL2.0
  211. "third_party/schema_org" ;CC-BY-SA3.0
  212. "third_party/skia" ;BSD-3
  213. "third_party/skia/include/third_party/skcms" ;BSD-3
  214. "third_party/skia/third_party/skcms" ;BSD-3
  215. "third_party/skia/third_party/vulkanmemoryallocator" ;BSD-3, Expat
  216. "third_party/smhasher" ;Expat, public domain
  217. "third_party/speech-dispatcher" ;GPL2+
  218. "third_party/spirv-headers" ;ASL2.0
  219. "third_party/SPIRV-Tools" ;ASL2.0
  220. "third_party/sqlite" ;Public domain
  221. "third_party/swiftshader" ;ASL2.0
  222. "third_party/swiftshader/third_party/astc-encoder" ;ASL2.0
  223. "third_party/swiftshader/third_party/llvm-7.0" ;NCSA
  224. "third_party/swiftshader/third_party/llvm-subzero" ;NCSA
  225. "third_party/swiftshader/third_party/marl" ;ASL2.0
  226. "third_party/swiftshader/third_party/subzero" ;NCSA
  227. "third_party/swiftshader/third_party/SPIRV-Headers" ;X11-style
  228. "third_party/usb_ids" ;BSD-3
  229. "third_party/usrsctp" ;BSD-2
  230. "third_party/vulkan_memory_allocator" ;Expat
  231. "third_party/wayland/wayland_scanner_wrapper.py" ;BSD-3
  232. "third_party/wayland-protocols" ;Expat
  233. "third_party/web-animations-js" ;ASL2.0
  234. "third_party/webdriver" ;ASL2.0
  235. "third_party/webrtc" ;BSD-3
  236. "third_party/webrtc/common_audio/third_party/ooura" ;Non-copyleft
  237. "third_party/webrtc/common_audio/third_party/spl_sqrt_floor" ;Public domain
  238. "third_party/webrtc/modules/third_party/fft" ;Non-copyleft
  239. "third_party/webrtc/modules/third_party/g711" ;Public domain
  240. "third_party/webrtc/modules/third_party/g722" ;Public domain
  241. "third_party/webrtc/rtc_base/third_party/base64" ;Non-copyleft
  242. "third_party/webrtc/rtc_base/third_party/sigslot" ;Public domain
  243. "third_party/widevine/cdm/widevine_cdm_version.h" ;BSD-3
  244. "third_party/widevine/cdm/widevine_cdm_common.h" ;BSD-3
  245. "third_party/woff2" ;ASL2.0
  246. "third_party/xdg-utils" ;Expat
  247. "third_party/zlib/google" ;BSD-3
  248. "url/third_party/mozilla" ;BSD-3, MPL1.1/GPL2+/LGPL2.1+
  249. "v8/src/third_party/siphash" ;Public domain
  250. "v8/src/third_party/utf8-decoder" ;Expat
  251. "v8/src/third_party/valgrind" ;BSD-4
  252. "v8/third_party/inspector_protocol" ;BSD-3
  253. "v8/third_party/v8/builtins")) ;PSFL
  254. (define %blacklisted-files
  255. ;; 'third_party/blink/perf_tests/resources/svg/HarveyRayner.svg' carries a
  256. ;; nonfree license according to LICENSES in the same directory. As we don't
  257. ;; run the Blink performance tests, just remove everything to save ~24MiB.
  258. '("third_party/blink/perf_tests"))
  259. (define (gentoo-patch name revision hash)
  260. (origin
  261. (method url-fetch)
  262. (uri (string-append "https://gitweb.gentoo.org/repo/gentoo.git/plain"
  263. "/www-client/chromium/files/" name "?id=" revision))
  264. (file-name (string-append "ungoogled-" name))
  265. (sha256 (base32 hash))))
  266. ;; This repository contains libstdc++ compatibility patches for Chromium.
  267. (define (chromium-gcc-patchset commit hash)
  268. (origin
  269. (method git-fetch)
  270. (uri (git-reference
  271. (url "https://github.com/stha09/chromium-patches")
  272. (commit commit)))
  273. (file-name (git-file-name "chromium-gcc-patches" commit))
  274. (sha256 (base32 hash))))
  275. (define (debian-patch name revision hash)
  276. (origin
  277. (method url-fetch)
  278. (uri (string-append "https://salsa.debian.org/chromium-team/chromium/-/raw/"
  279. revision "/debian/patches/" name))
  280. (file-name (match (string-split name #\/)
  281. ((category name)
  282. (string-append "ungoogled-chromium-" category "-" name))))
  283. (sha256 (base32 hash))))
  284. (define %ungoogled-revision "df199c04ff367da59ce52a23a3f3b305dd3b00c3")
  285. (define %debian-revision "debian/83.0.4103.116-3")
  286. (define %gentoo-revision "f3f649046d31ebdbc8c4a302b2384504eff78027")
  287. (define %gentoo-patches
  288. ;; This patch is necessary for compatibility with FFmpeg 4.3.
  289. (list (gentoo-patch "chromium-84-mediaalloc.patch" %gentoo-revision
  290. "0snxdc4nb8ykzncz62vpsl8hgxpy24m17mycx67i2gckmrpslzzv")))
  291. (define %chromium-gcc-patches
  292. (chromium-gcc-patchset
  293. "chromium-84-patchset-3"
  294. "0l05gx3pn703n47anjwsl5sjcqw8kaxmivf7llax97kj3k6d127v"))
  295. (define %debian-patches
  296. (list (debian-patch "system/zlib.patch" %debian-revision
  297. "0bp2vh1cgmwjrn1zkpphkd3bs662s23xwdhy3abm9cfjvwrj117n")
  298. (debian-patch "system/jsoncpp.patch" %debian-revision
  299. "0d95brl4a5y5w142yd0rvf59z513h7chsz0vnm034d6lqf22ahwf")
  300. (debian-patch "system/openjpeg.patch" %debian-revision
  301. "0zd6v5njx1pc7i0y6mslxvpx5j4cq01mmyx55qcqx8qzkm0gm48j")))
  302. (define %arch-patches
  303. (list (origin
  304. (method url-fetch)
  305. (uri "https://git.archlinux.org/svntogit/packages.git/plain/trunk/\
  306. chromium-fix-vaapi-on-intel.patch?h=packages/chromium\
  307. &id=93b5b90621b4827084288197c6e0e09b987b372a")
  308. (file-name "ungoogled-chromium-fix-vaapi-on-intel.patch")
  309. (sha256
  310. (base32
  311. "16jbjjf4d9jp52rdrrxx5vm69nx3w0qrijgjpwapnmcif13z55g4")))))
  312. (define %ungoogled-origin
  313. (origin
  314. (method git-fetch)
  315. (uri (git-reference (url "https://github.com/Eloston/ungoogled-chromium")
  316. (commit %ungoogled-revision)))
  317. (file-name (git-file-name "ungoogled-chromium"
  318. (string-take %ungoogled-revision 7)))
  319. (sha256
  320. (base32
  321. "1bqvcq3dj6615198j7cz3ylyyic5zpis06capvl6ybl1na3ainb0"))))
  322. ;; This is a source 'snippet' that does the following:
  323. ;; *) Applies various patches for unbundling purposes and libstdc++ compatibility.
  324. ;; *) Runs the ungoogled patch-, domain substitution-, and scrubbing scripts.
  325. ;; *) Prunes all third_party directories that are not explicitly preserved.
  326. ;; *) Adjusts "GN" build files such that system libraries are preferred.
  327. (define ungoogled-chromium-snippet
  328. ;; Note: delay to cope with cyclic module imports at the top level.
  329. (delay
  330. #~(begin
  331. (let ((chromium-dir (getcwd)))
  332. (set-path-environment-variable
  333. "PATH" '("bin")
  334. (list #+patch #+python-wrapper #+xz))
  335. ;; Apply patches before running the ungoogled scripts because
  336. ;; domain substitution may break some of the patches.
  337. (format #t "Applying assorted build fixes...~%")
  338. (force-output)
  339. (for-each (lambda (patch)
  340. (invoke "patch" "-p1" "--force" "--input"
  341. patch "--no-backup-if-mismatch"))
  342. (append
  343. '#+%gentoo-patches '#+%debian-patches '#+%arch-patches
  344. (find-files #$%chromium-gcc-patches "\\.patch$")
  345. '#+(list (local-file
  346. (search-patch
  347. "ungoogled-chromium-system-nspr.patch")))))
  348. (with-directory-excursion #+%ungoogled-origin
  349. (format #t "Ungooglifying...~%")
  350. (force-output)
  351. (invoke "python" "utils/prune_binaries.py" chromium-dir
  352. "pruning.list")
  353. (invoke "python" "utils/patches.py" "apply"
  354. chromium-dir "patches")
  355. (invoke "python" "utils/domain_substitution.py" "apply" "-r"
  356. "domain_regex.list" "-f" "domain_substitution.list"
  357. "-c" "/tmp/domainscache.tar.gz" chromium-dir))
  358. ;; Run after the ungoogled scripts to avoid interfering with
  359. ;; patches or file lists.
  360. (format #t "Removing blacklisted files...~%")
  361. (force-output)
  362. (for-each delete-file-recursively '#$%blacklisted-files)
  363. (format #t "Pruning third party files...~%")
  364. (force-output)
  365. (apply invoke (string-append #+python-2 "/bin/python")
  366. "build/linux/unbundle/remove_bundled_libraries.py"
  367. "--do-remove" '#$%preserved-third-party-files)
  368. (format #t "Replacing GN files...~%")
  369. (force-output)
  370. (substitute* "tools/generate_shim_headers/generate_shim_headers.py"
  371. ;; The "is_official_build" configure option enables certain
  372. ;; release optimizations like those used in the commercial
  373. ;; Chrome browser. Unfortunately it also requires using the
  374. ;; bundled libraries: lose that restriction.
  375. (("#if defined\\(OFFICIAL_BUILD\\)")
  376. "#if 0"))
  377. (invoke "python" "build/linux/unbundle/replace_gn_files.py"
  378. "--system-libraries" "ffmpeg" "flac" "fontconfig"
  379. "freetype" "harfbuzz-ng" "icu" "libdrm" "libevent"
  380. "libjpeg" "libpng" "libvpx" "libwebp" "libxml"
  381. "libxslt" "openh264" "opus" "re2" "snappy" "zlib")
  382. #t))))
  383. (define opus+custom
  384. (package/inherit opus
  385. (name "opus+custom")
  386. (arguments
  387. (substitute-keyword-arguments (package-arguments opus)
  388. ((#:configure-flags flags ''())
  389. ;; Opus Custom is an optional extension of the Opus
  390. ;; specification that allows for unsupported frame
  391. ;; sizes. Chromium requires that this is enabled.
  392. `(cons "--enable-custom-modes"
  393. ,flags))))))
  394. ;; Chromium still has Python2-only code, so we need this special Python 2
  395. ;; variant of xcb-proto.
  396. (define xcb-proto/python2
  397. (package/inherit
  398. xcb-proto
  399. (name "python2-xcb-proto")
  400. (native-inputs
  401. `(("pkg-config" ,pkg-config)
  402. ("python" ,python-2)))))
  403. ;; 'make-ld-wrapper' can only work with an 'ld' executable, so we need
  404. ;; this trick to make it wrap 'lld'.
  405. (define (make-lld-wrapper lld)
  406. (define lld-as-ld
  407. (computed-file "lld-ld"
  408. #~(begin
  409. (mkdir #$output)
  410. (mkdir (string-append #$output "/bin"))
  411. (symlink #$(file-append lld "/bin/lld")
  412. (string-append #$output "/bin/ld")))))
  413. ;; Create a wrapper for LLD that inserts appropriate -rpath entries.
  414. (define lld-wrapper
  415. (make-ld-wrapper "lld-wrapper"
  416. #:binutils lld-as-ld))
  417. ;; Clang looks for an 'ld.lld' executable, so we need to symlink it back.
  418. (computed-file "lld-wrapped"
  419. #~(begin
  420. (mkdir #$output)
  421. (mkdir (string-append #$output "/bin"))
  422. (symlink #$(file-append lld-wrapper "/bin/ld")
  423. (string-append #$output "/bin/lld"))
  424. (symlink "lld" (string-append #$output "/bin/ld.lld")))))
  425. (define-public ungoogled-chromium
  426. (package
  427. (name "ungoogled-chromium")
  428. (version (string-append "84.0.4147.89-0."
  429. (string-take %ungoogled-revision 7)))
  430. (synopsis "Graphical web browser")
  431. (source (origin
  432. (method url-fetch)
  433. (uri (string-append "https://commondatastorage.googleapis.com"
  434. "/chromium-browser-official/chromium-"
  435. (car (string-split version #\-)) ".tar.xz"))
  436. (sha256
  437. (base32
  438. "0yf6j0459qzr677zsa2apmfz0x0ndlscvwj1a5v40nqjijchv5qp"))
  439. (modules '((guix build utils)))
  440. (snippet (force ungoogled-chromium-snippet))))
  441. (build-system gnu-build-system)
  442. (arguments
  443. `(#:tests? #f
  444. ;; FIXME: Chromiums RUNPATH lacks entries for some libraries.
  445. #:validate-runpath? #f
  446. #:modules ((guix build gnu-build-system)
  447. (guix build utils)
  448. (ice-9 ftw)
  449. (ice-9 regex)
  450. (srfi srfi-26))
  451. #:configure-flags
  452. ;; See tools/gn/docs/cookbook.md and
  453. ;; https://www.chromium.org/developers/gn-build-configuration
  454. ;; for usage. Run "./gn args . --list" in the Release
  455. ;; directory for an exhaustive list of supported flags.
  456. ;; (Note: The 'configure' phase will do that for you.)
  457. (list "is_debug=false"
  458. ;; Use the "official" release optimizations, as opposed to
  459. ;; a developer build.
  460. "is_official_build=true"
  461. (string-append "max_jobs_per_link="
  462. (number->string (parallel-job-count)))
  463. "clang_use_chrome_plugins=false"
  464. "use_custom_libcxx=false"
  465. "use_sysroot=false"
  466. "goma_dir=\"\""
  467. "enable_nacl=false"
  468. "enable_nacl_nonsfi=false"
  469. "use_allocator=\"none\""
  470. "use_unofficial_version_number=false"
  471. "treat_warnings_as_errors=false"
  472. "use_official_google_api_keys=false"
  473. "fieldtrial_testing_like_official_build=true"
  474. "safe_browsing_mode=0"
  475. "enable_mdns=false"
  476. "enable_one_click_signin=false"
  477. "enable_reading_list=false"
  478. "enable_remoting=false"
  479. "enable_reporting=false"
  480. "enable_service_discovery=false"
  481. "enable_vr=false"
  482. "enable_widevine=false"
  483. ;; Disable type-checking for the Web UI to avoid a Java dependency.
  484. "closure_compile=false"
  485. ;; Define a custom toolchain that simply looks up CC, AR and
  486. ;; friends from the environment.
  487. "custom_toolchain=\"//build/toolchain/linux/unbundle:default\""
  488. "host_toolchain=\"//build/toolchain/linux/unbundle:default\""
  489. (string-append "xcbproto_path=\""
  490. (assoc-ref %build-inputs "xcb-proto") "/share/xcb\"")
  491. ;; Prefer system libraries.
  492. "use_system_freetype=true"
  493. "use_system_harfbuzz=true"
  494. "use_system_lcms2=true"
  495. "use_system_libdrm=true"
  496. "use_system_libjpeg=true"
  497. "use_system_libopenjpeg2=true"
  498. "use_system_libpng=true"
  499. "use_system_zlib=true"
  500. "use_gnome_keyring=false" ;deprecated by libsecret
  501. "use_openh264=true"
  502. "use_pulseaudio=true"
  503. "link_pulseaudio=true"
  504. "icu_use_data_file=false"
  505. ;; FIXME: Using system protobuf with "is_official_build" causes an
  506. ;; invalid opcode and "protoc-gen-plugin: Plugin killed by signal 4".
  507. ;;"perfetto_use_system_protobuf=true"
  508. ;; VA-API acceleration is currently only supported on x86_64-linux.
  509. ,@(if (string-prefix? "x86_64" (or (%current-target-system)
  510. (%current-system)))
  511. '("use_vaapi=true")
  512. '())
  513. ;; Do not artifically restrict formats supported by system ffmpeg.
  514. "proprietary_codecs=true"
  515. "ffmpeg_branding=\"Chrome\""
  516. ;; WebRTC stuff.
  517. "rtc_use_h264=true"
  518. ;; Don't use bundled sources.
  519. "rtc_build_json=false"
  520. "rtc_build_libevent=false"
  521. "rtc_build_libvpx=false"
  522. "rtc_build_opus=false"
  523. "rtc_build_ssl=false"
  524. "rtc_build_libsrtp=true" ;FIXME: fails to find headers
  525. "rtc_build_usrsctp=true" ;TODO: package this
  526. (string-append "rtc_jsoncpp_root=\""
  527. (assoc-ref %build-inputs "jsoncpp")
  528. "/include/jsoncpp/json\"")
  529. (string-append "rtc_ssl_root=\""
  530. (assoc-ref %build-inputs "openssl")
  531. "/include/openssl\""))
  532. #:phases
  533. (modify-phases %standard-phases
  534. (add-after 'unpack 'patch-stuff
  535. (lambda _
  536. ;; Fix build with newer re2. Taken from:
  537. ;; https://chromium-review.googlesource.com/c/chromium/src/+/2145261
  538. (substitute* "components/autofill/core/browser/address_rewriter.cc"
  539. (("options\\.set_utf8\\(true\\)")
  540. "options.set_encoding(RE2::Options::EncodingUTF8)"))
  541. (substitute*
  542. '("base/process/launch_posix.cc"
  543. "base/third_party/dynamic_annotations/dynamic_annotations.c"
  544. "sandbox/linux/seccomp-bpf/sandbox_bpf.cc"
  545. "sandbox/linux/services/credentials.cc"
  546. "sandbox/linux/services/namespace_utils.cc"
  547. "sandbox/linux/services/syscall_wrappers.cc"
  548. "sandbox/linux/syscall_broker/broker_host.cc")
  549. (("include \"base/third_party/valgrind/") "include \"valgrind/"))
  550. (for-each (lambda (file)
  551. (substitute* file
  552. ;; Fix opus include path.
  553. ;; Do not substitute opus_private.h.
  554. (("#include \"opus\\.h\"")
  555. "#include \"opus/opus.h\"")
  556. (("#include \"opus_custom\\.h\"")
  557. "#include \"opus/opus_custom.h\"")
  558. (("#include \"opus_defines\\.h\"")
  559. "#include \"opus/opus_defines.h\"")
  560. (("#include \"opus_multistream\\.h\"")
  561. "#include \"opus/opus_multistream.h\"")
  562. (("#include \"opus_types\\.h\"")
  563. "#include \"opus/opus_types.h\"")))
  564. (find-files (string-append "third_party/webrtc/modules"
  565. "/audio_coding/codecs/opus")))
  566. (substitute* "chrome/common/chrome_paths.cc"
  567. (("/usr/share/chromium/extensions")
  568. ;; TODO: Add ~/.guix-profile.
  569. "/run/current-system/profile/share/chromium/extensions"))
  570. ;; Many files try to include ICU headers from "third_party/icu/...".
  571. ;; Remove the "third_party/" prefix to use system headers instead.
  572. (substitute* (find-files "chrome" "\\.cc$")
  573. (("third_party/icu/source/(common|i18n)/")
  574. ""))
  575. ;; XXX: Should be unnecessary when use_system_lcms2=true.
  576. (substitute* "third_party/pdfium/core/fxcodec/icc/iccmodule.h"
  577. (("include \"third_party/lcms/include/lcms2\\.h\"")
  578. "include \"lcms2.h\""))
  579. (substitute*
  580. "third_party/breakpad/breakpad/src/common/linux/libcurl_wrapper.h"
  581. (("include \"third_party/curl") "include \"curl"))
  582. (substitute* "third_party/webrtc/rtc_base/strings/json.h"
  583. (("#include \"third_party/jsoncpp/") "#include \"json/"))
  584. (substitute* '("components/viz/common/gpu/vulkan_context_provider.h"
  585. "components/viz/common/resources/resource_format_utils.h"
  586. "gpu/config/gpu_util.cc")
  587. (("third_party/vulkan_headers/include/") ""))
  588. (substitute* "third_party/skia/include/gpu/vk/GrVkVulkan.h"
  589. (("include/third_party/vulkan/") ""))
  590. ;; Building chromedriver embeds some files using the ZIP
  591. ;; format which doesn't support timestamps before
  592. ;; 1980. Therefore, advance the timestamps of the files
  593. ;; which are included so that building chromedriver
  594. ;; works.
  595. (let ((circa-1980 (* 10 366 24 60 60)))
  596. (for-each (lambda (file)
  597. (utime file circa-1980 circa-1980))
  598. '("chrome/test/chromedriver/extension/background.js"
  599. "chrome/test/chromedriver/extension/manifest.json")))
  600. #t))
  601. (add-after 'patch-stuff 'add-absolute-references
  602. (lambda* (#:key inputs #:allow-other-keys)
  603. (let ((cups (assoc-ref inputs "cups"))
  604. (nss (assoc-ref inputs "nss"))
  605. (mesa (assoc-ref inputs "mesa"))
  606. (udev (assoc-ref inputs "udev")))
  607. (substitute* "printing/cups_config_helper.py"
  608. (("cups_config =.*")
  609. (string-append "cups_config = '" cups
  610. "/bin/cups-config'\n")))
  611. (substitute* "crypto/nss_util.cc"
  612. (("libnssckbi\\.so")
  613. (string-append nss "/lib/nss/libnssckbi.so")))
  614. (substitute* "device/udev_linux/udev1_loader.cc"
  615. (("libudev\\.so\\.1")
  616. (string-append udev "/lib/libudev.so.1")))
  617. #t)))
  618. (add-before 'configure 'prepare-build-environment
  619. (lambda* (#:key inputs #:allow-other-keys)
  620. ;; Make sure the right build tools are used.
  621. (setenv "AR" "llvm-ar") (setenv "NM" "llvm-nm")
  622. (setenv "CC" "clang") (setenv "CXX" "clang++")
  623. (setenv "CXXFLAGS"
  624. (string-join
  625. '(;; Do not optimize away null pointer safety checks.
  626. "-fno-delete-null-pointer-checks"
  627. ;; Disable warnings about unknown warnings that require
  628. ;; Clang plugins or newer versions.
  629. "-Wno-unknown-warning-option")))
  630. (setenv "CFLAGS" "-Wno-unknown-warning-option")
  631. ;; TODO: pre-compile instead. Avoids a race condition.
  632. (setenv "PYTHONDONTWRITEBYTECODE" "1")
  633. ;; XXX: How portable is this.
  634. (mkdir-p "third_party/node/linux/node-linux-x64")
  635. (symlink (string-append (assoc-ref inputs "node") "/bin")
  636. "third_party/node/linux/node-linux-x64/bin")
  637. #t))
  638. (replace 'configure
  639. (lambda* (#:key configure-flags #:allow-other-keys)
  640. (let ((args (string-join configure-flags " ")))
  641. ;; Generate ninja build files.
  642. (invoke "gn" "gen" "out/Release"
  643. (string-append "--args=" args))
  644. ;; Print the full list of supported arguments as well as
  645. ;; their current status for convenience.
  646. (format #t "Dumping configure flags...\n")
  647. (invoke "gn" "args" "out/Release" "--list"))))
  648. (add-before 'build 'increase-resource-limits
  649. (lambda _
  650. ;; XXX: Chromiums linking step requires a lot of simultaneous file
  651. ;; accesses. Having a too low ulimit will result in bogus linker
  652. ;; errors such as "foo.a: error adding symbols: malformed archive".
  653. ;; Try increasing the soft resource limit of max open files to 2048,
  654. ;; or equal to the hard limit, whichever is lower.
  655. (call-with-values (lambda () (getrlimit 'nofile))
  656. (lambda (soft hard)
  657. (when (and soft (< soft 2048))
  658. (if hard
  659. (setrlimit 'nofile (min hard 2048) hard)
  660. (setrlimit 'nofile 2048 #f))
  661. (format #t
  662. "increased maximum number of open files from ~d to ~d~%"
  663. soft (if hard (min hard 2048) 2048)))))
  664. #t))
  665. (replace 'build
  666. (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
  667. (invoke "ninja" "-C" "out/Release"
  668. "-j" (if parallel-build?
  669. (number->string (parallel-job-count))
  670. "1")
  671. "chrome"
  672. "chromedriver")))
  673. (replace 'install
  674. (lambda* (#:key inputs outputs #:allow-other-keys)
  675. (let* ((out (assoc-ref outputs "out"))
  676. (bin (string-append out "/bin"))
  677. (exe (string-append bin "/chromium"))
  678. (lib (string-append out "/lib"))
  679. (man (string-append out "/share/man/man1"))
  680. (applications (string-append out "/share/applications"))
  681. (install-regexp (make-regexp "\\.(bin|pak|so)$"))
  682. (locales (string-append lib "/locales"))
  683. (resources (string-append lib "/resources"))
  684. (preferences (assoc-ref inputs "master-preferences"))
  685. (gtk+ (assoc-ref inputs "gtk+"))
  686. (sh (which "sh")))
  687. (substitute* '("chrome/app/resources/manpage.1.in"
  688. "chrome/installer/linux/common/desktop.template")
  689. (("@@MENUNAME@@") "Chromium")
  690. (("@@PACKAGE@@") "chromium")
  691. (("/usr/bin/@@USR_BIN_SYMLINK_NAME@@") exe))
  692. (mkdir-p man)
  693. (copy-file "chrome/app/resources/manpage.1.in"
  694. (string-append man "/chromium.1"))
  695. (mkdir-p applications)
  696. (copy-file "chrome/installer/linux/common/desktop.template"
  697. (string-append applications "/chromium.desktop"))
  698. (mkdir-p lib)
  699. (copy-file preferences (string-append lib "/master_preferences"))
  700. (with-directory-excursion "out/Release"
  701. (for-each (lambda (file)
  702. (install-file file lib))
  703. (scandir "." (cut regexp-exec install-regexp <>)))
  704. (copy-file "chrome" (string-append lib "/chromium"))
  705. (copy-recursively "locales" locales)
  706. (copy-recursively "resources" resources)
  707. (mkdir-p bin)
  708. (symlink "../lib/chromium" exe)
  709. (install-file "chromedriver" bin)
  710. (for-each (lambda (so)
  711. (install-file so (string-append lib "/swiftshader")))
  712. (find-files "swiftshader" "\\.so$"))
  713. (wrap-program exe
  714. ;; Avoid file manager crash. See <https://bugs.gnu.org/26593>.
  715. `("XDG_DATA_DIRS" ":" prefix (,(string-append gtk+ "/share")))))
  716. (with-directory-excursion "chrome/app/theme/chromium"
  717. (for-each
  718. (lambda (size)
  719. (let ((icons (string-append out "/share/icons/hicolor/"
  720. size "x" size "/apps")))
  721. (mkdir-p icons)
  722. (copy-file (string-append "product_logo_" size ".png")
  723. (string-append icons "/chromium.png"))))
  724. '("24" "48" "64" "128" "256")))
  725. #t))))))
  726. (native-inputs
  727. `(("bison" ,bison)
  728. ("clang" ,clang-10)
  729. ("gn" ,gn)
  730. ("gperf" ,gperf)
  731. ("ld-wrapper" ,(make-lld-wrapper lld))
  732. ("ninja" ,ninja)
  733. ("node" ,node)
  734. ("pkg-config" ,pkg-config)
  735. ("which" ,which)
  736. ;; This file contains defaults for new user profiles.
  737. ("master-preferences" ,(local-file "aux-files/chromium/master-preferences.json"))
  738. ("python-beautifulsoup4" ,python2-beautifulsoup4)
  739. ("python-html5lib" ,python2-html5lib)
  740. ("python" ,python-2)))
  741. (inputs
  742. `(("alsa-lib" ,alsa-lib)
  743. ("atk" ,atk)
  744. ("cups" ,cups)
  745. ("curl" ,curl)
  746. ("dbus" ,dbus)
  747. ("dbus-glib" ,dbus-glib)
  748. ("expat" ,expat)
  749. ("flac" ,flac)
  750. ("ffmpeg" ,ffmpeg)
  751. ("fontconfig" ,fontconfig)
  752. ("freetype" ,freetype)
  753. ("gdk-pixbuf" ,gdk-pixbuf)
  754. ("glib" ,glib)
  755. ("gtk+" ,gtk+)
  756. ("harfbuzz" ,harfbuzz)
  757. ("icu4c" ,icu4c-67)
  758. ("jsoncpp" ,jsoncpp)
  759. ("lcms" ,lcms)
  760. ("libevent" ,libevent)
  761. ("libffi" ,libffi)
  762. ("libjpeg-turbo" ,libjpeg-turbo)
  763. ("libpng" ,libpng)
  764. ("libva" ,libva)
  765. ("libvpx" ,libvpx)
  766. ("libwebp" ,libwebp)
  767. ("libx11" ,libx11)
  768. ("libxcb" ,libxcb)
  769. ("libxcomposite" ,libxcomposite)
  770. ("libxcursor" ,libxcursor)
  771. ("libxdamage" ,libxdamage)
  772. ("libxext" ,libxext)
  773. ("libxfixes" ,libxfixes)
  774. ("libxi" ,libxi)
  775. ("libxml2" ,libxml2)
  776. ("libxrandr" ,libxrandr)
  777. ("libxrender" ,libxrender)
  778. ("libxscrnsaver" ,libxscrnsaver)
  779. ("libxslt" ,libxslt)
  780. ("libxtst" ,libxtst)
  781. ("mesa" ,mesa)
  782. ("minizip" ,minizip)
  783. ("mit-krb5" ,mit-krb5)
  784. ("nss" ,nss)
  785. ("openh264" ,openh264)
  786. ("openjpeg" ,openjpeg) ;PDFium only
  787. ("openssl" ,openssl)
  788. ("opus" ,opus+custom)
  789. ("pango" ,pango)
  790. ("pciutils" ,pciutils)
  791. ("pulseaudio" ,pulseaudio)
  792. ("re2" ,re2)
  793. ("snappy" ,snappy)
  794. ("speech-dispatcher" ,speech-dispatcher)
  795. ("udev" ,eudev)
  796. ("valgrind" ,valgrind)
  797. ("vulkan-headers" ,vulkan-headers)
  798. ("xcb-proto" ,xcb-proto/python2)))
  799. ;; Building Chromium takes ... a very long time. On a single core, a busy
  800. ;; mid-end x86 system may need more than 24 hours to complete the build.
  801. (properties '((timeout . 144000) ;40 hours
  802. ;; The linking step may take more than an hour on some hardware.
  803. (max-silent-time . 7200)
  804. (cpe-name . "chrome")))
  805. (home-page "https://github.com/Eloston/ungoogled-chromium")
  806. (description
  807. "Ungoogled-Chromium is the Chromium web browser, with some functionality
  808. disabled in order to protect the users privacy.")
  809. ;; Chromium is developed as BSD-3, but bundles a large number of third-party
  810. ;; components with other licenses. For full information, see chrome://credits.
  811. (license (list license:bsd-3
  812. license:bsd-2
  813. license:expat
  814. license:asl2.0
  815. license:mpl1.1
  816. license:mpl2.0
  817. license:public-domain
  818. license:isc
  819. (license:non-copyleft "chrome://credits"
  820. "See chrome://credits for more information.")
  821. license:lgpl2.1+))))
  822. (define-public ungoogled-chromium/wayland
  823. (package/inherit ungoogled-chromium
  824. (name "ungoogled-chromium-wayland")
  825. (inputs
  826. `(("wayland" ,wayland)
  827. ("wayland-protocols" ,wayland-protocols)
  828. ,@(package-inputs ungoogled-chromium)))
  829. (arguments
  830. (substitute-keyword-arguments (package-arguments ungoogled-chromium)
  831. ((#:configure-flags flags)
  832. `(append (list "use_ozone=true"
  833. "ozone_platform_wayland=true"
  834. "ozone_platform_x11=true"
  835. "ozone_auto_platforms=false"
  836. "ozone_platform=\"wayland\""
  837. "use_xkbcommon=true"
  838. "use_system_minigbm=true"
  839. "use_system_libwayland=true"
  840. (string-append "system_wayland_scanner_path=\""
  841. (assoc-ref %build-inputs "wayland")
  842. "/bin/wayland-scanner\""))
  843. (delete "use_vaapi=true" ,flags)))))))