chromium-browser 89.0.4389.90
This commit is contained in:
@@ -17,15 +17,17 @@ ARCH = "x64"
|
||||
|
||||
def setup():
|
||||
shelltools.export("LC_ALL", "C")
|
||||
shelltools.export("JAVA_CMD", "/usr/bin/java_8")
|
||||
#shelltools.export("JAVA_CMD", "/usr/bin/java_8")
|
||||
shelltools.system("mkdir -p third_party/node/linux/node-linux-x64/bin")
|
||||
shelltools.system("ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/")
|
||||
|
||||
#shelltools.system("sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' tools/generate_shim_headers/generate_shim_headers.py")
|
||||
|
||||
#for LIB in ["freetype", "flac", "ffmpeg", "fontconfig", "harfbuzz-ng", "libdrm", "libjpeg", "libxml" ,"libxslt", "libwebp", "opus", "re2", "snappy", "yasm"]:
|
||||
#shelltools.system('find -type f -path "*third_party/$LIB/*" \! -path "*third_party/$LIB/chromium/*" \! -path "*third_party/$LIB/google/*" \! -regex ".*\.\(gn\|gni\|isolate\|py\)" -delete')
|
||||
#for LIB in ["freetype", "flac", "fontconfig", "libevent", "libwebp", "re2", "snappy"]:
|
||||
#shelltools.system('find -type f -path "*third_party/%s/*" \! -path "*third_party/%s/chromium/*" \! -path "*third_party/%s/google/*" \! -regex ".*\.\(gn\|gni\|isolate\|py\)" -delete' %(LIB, LIB, LIB))
|
||||
|
||||
|
||||
#shelltools.system("build/linux/unbundle/replace_gn_files.py --system-libraries flac ffmpeg fontconfig freetype harfbuzz-ng libdrm libjpeg libxml libxslt libwebp opus re2 snappy yasm")
|
||||
#shelltools.system("build/linux/unbundle/replace_gn_files.py --system-libraries flac fontconfig freetype libevent libwebp re2 snappy")
|
||||
|
||||
shelltools.system("sed -i -e 's/\<xmlMalloc\>/malloc/' -e 's/\<xmlFree\>/free/' \
|
||||
third_party/blink/renderer/core/xml/*.cc \
|
||||
@@ -37,9 +39,9 @@ def setup():
|
||||
use_sysroot=false \
|
||||
chrome_pgo_phase=0 \
|
||||
enable_nacl=true \
|
||||
enable_nacl_nonsfi=true \
|
||||
enable_nacl_nonsfi=false \
|
||||
rtc_use_pipewire=true \
|
||||
use_custom_libcxx=true \
|
||||
use_custom_libcxx=false \
|
||||
clang_use_chrome_plugins=false \
|
||||
is_official_build=true \
|
||||
fieldtrial_testing_like_official_build=true \
|
||||
@@ -64,12 +66,13 @@ def setup():
|
||||
closure_compile=false \
|
||||
symbol_level=0'
|
||||
|
||||
|
||||
#clangpath = "%s/chromium-%s/third_party/llvm-build/Release+Asserts/bin/" %(get.workDIR(), get.srcVERSION())
|
||||
|
||||
shelltools.system("/usr/bin/python3 tools/clang/scripts/update.py")
|
||||
clangpath = "%s/chromium-%s/third_party/llvm-build/Release+Asserts/bin/" %(get.workDIR(), get.srcVERSION())
|
||||
|
||||
shelltools.export("CC", "clang" )
|
||||
shelltools.export("CXX", "clang++" )
|
||||
shelltools.export("AR", "ar" )
|
||||
shelltools.export("CC", "%s/clang" %clangpath)
|
||||
shelltools.export("CXX", "%s/clang++" %clangpath)
|
||||
shelltools.export("AR", "%s/llvm-ar" %clangpath)
|
||||
shelltools.export("NM", "nm" )
|
||||
shelltools.export("RANLIB", "ranlib" )
|
||||
|
||||
@@ -79,7 +82,6 @@ def setup():
|
||||
shelltools.export("CPPFLAGS", "-D__DATE__= -D__TIME__= -D__TIMESTAMP__=")
|
||||
|
||||
shelltools.system("/usr/bin/python3 build/download_nacl_toolchains.py --packages nacl_x86_newlib,pnacl_newlib,pnacl_translator sync --extract")
|
||||
#shelltools.system("/usr/bin/python3 tools/clang/scripts/update.py")
|
||||
shelltools.system("/usr/bin/python3 tools/gn/bootstrap/bootstrap.py --gn-gen-args '%s'"% opt)
|
||||
shelltools.system("out/Release/gn gen out/Release --args='%s'"% opt)
|
||||
|
||||
@@ -96,13 +98,21 @@ def install():
|
||||
|
||||
#should be checked should for the missing folder "out/Release"
|
||||
for vla in ["*.pak", "*.json", "chrome", "locales", "resources", "icudtl.dat", "mksnapshot", "chromedriver", "snapshot_blob.bin", "character_data_generator", \
|
||||
"libEGL.so", "libGLESv2.so", "libVk*.so", "v8_context_snapshot.bin", "MEIPreload", "nacl_helper", "nacl_helper_bootstrap", "nacl_helper_nonsfi", "nacl_irt_x86_64.nexe"]:
|
||||
"libEGL.so", "libGLESv2.so", "libVk*.so", "v8_context_snapshot.bin", "MEIPreload", "nacl_helper", "nacl_helper_bootstrap", "nacl_irt_x86_64.nexe"]:
|
||||
pisitools.insinto("/usr/lib/chromium-browser", "%s" % vla)
|
||||
|
||||
|
||||
pisitools.insinto("/usr/lib/chromium-browser", "chrome_sandbox", "chrome-sandbox")
|
||||
pisitools.dosym("/usr/lib/chromium-browser/chrome", "/usr/bin/chromium-browser")
|
||||
|
||||
shelltools.system("chmod -v 4755 %s/usr/lib/chromium-browser/chrome-sandbox" %get.installDIR())
|
||||
|
||||
shelltools.system("sed -ni \
|
||||
-e '/<update_contact>/d' \
|
||||
-e '/<p>/N;/<p>\n.*\(We invite\|Chromium supports Vorbis\)/,/<\/p>/d' \
|
||||
-e '/^<?xml/,$p' \
|
||||
'../../chrome/installer/linux/common/chromium-browser/chromium-browser.appdata.xml'")
|
||||
pisitools.insinto("/usr/share/metainfo", "../../chrome/installer/linux/common/chromium-browser/chromium-browser.appdata.xml")
|
||||
pisitools.insinto("/usr/share/man/man1", "../../chrome/app/resources/manpage.1.in", "chromium-browser.1")
|
||||
|
||||
#pisitools.newman("chrome.1", "chromium-browser.1")
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ Comment[vi]=Truy cập Internet
|
||||
Comment[zh_CN]=访问互联网
|
||||
Comment[zh_HK]=連線到網際網路
|
||||
Comment[zh_TW]=連線到網際網路
|
||||
Exec=chromium-browser %U --ppapi-flash-path=/usr/lib/chromium-browser/PepperFlash/libpepflashplayer.so --ppapi-flash-version=$version
|
||||
Exec=chromium-browser %U
|
||||
Terminal=false
|
||||
Icon=chromium-browser
|
||||
Type=Application
|
||||
@@ -112,3 +112,54 @@ MimeType=text/html;text/xml;application/xhtml_xml;
|
||||
StartupWMClass=Chromium
|
||||
StartupNotify=true
|
||||
|
||||
[Desktop Action new-private-window]
|
||||
Name=New Incognito Window
|
||||
Name[ar]=نافذة جديدة للتصفح المتخفي
|
||||
Name[bg]=Нов прозорец „инкогнито“
|
||||
Name[bn]=নতুন ছদ্মবেশী উইন্ডো
|
||||
Name[ca]=Finestra d'incògnit nova
|
||||
Name[cs]=Nové anonymní okno
|
||||
Name[da]=Nyt inkognitovindue
|
||||
Name[de]=Neues Inkognito-Fenster
|
||||
Name[el]=Νέο παράθυρο για ανώνυμη περιήγηση
|
||||
Name[en_GB]=New Incognito window
|
||||
Name[es]=Nueva ventana de incógnito
|
||||
Name[et]=Uus inkognito aken
|
||||
Name[fa]=پنجره جدید حالت ناشناس
|
||||
Name[fi]=Uusi incognito-ikkuna
|
||||
Name[fil]=Bagong Incognito window
|
||||
Name[fr]=Nouvelle fenêtre de navigation privée
|
||||
Name[gu]=નવી છુપી વિંડો
|
||||
Name[hi]=नई गुप्त विंडो
|
||||
Name[hr]=Novi anoniman prozor
|
||||
Name[hu]=Új Inkognitóablak
|
||||
Name[id]=Jendela Penyamaran baru
|
||||
Name[it]=Nuova finestra di navigazione in incognito
|
||||
Name[iw]=חלון חדש לגלישה בסתר
|
||||
Name[ja]=新しいシークレット ウィンドウ
|
||||
Name[kn]=ಹೊಸ ಅಜ್ಞಾತ ವಿಂಡೋ
|
||||
Name[ko]=새 시크릿 창
|
||||
Name[lt]=Naujas inkognito langas
|
||||
Name[lv]=Jauns inkognito režīma logs
|
||||
Name[ml]=പുതിയ വേഷ പ്രച്ഛന്ന വിന്ഡോ
|
||||
Name[mr]=नवीन गुप्त विंडो
|
||||
Name[nl]=Nieuw incognitovenster
|
||||
Name[no]=Nytt inkognitovindu
|
||||
Name[pl]=Nowe okno incognito
|
||||
Name[pt]=Nova janela de navegação anónima
|
||||
Name[pt_BR]=Nova janela anônima
|
||||
Name[ro]=Fereastră nouă incognito
|
||||
Name[ru]=Новое окно в режиме инкогнито
|
||||
Name[sk]=Nové okno inkognito
|
||||
Name[sl]=Novo okno brez beleženja zgodovine
|
||||
Name[sr]=Нови прозор за прегледање без архивирања
|
||||
Name[sv]=Nytt inkognitofönster
|
||||
Name[ta]=புதிய மறைநிலைச் சாளரம்
|
||||
Name[te]=క్రొత్త అజ్ఞాత విండో
|
||||
Name[th]=หน้าต่างใหม่ที่ไม่ระบุตัวตน
|
||||
Name[tr]=Yeni Gizli pencere
|
||||
Name[uk]=Нове вікно в режимі анонімного перегляду
|
||||
Name[vi]=Cửa sổ ẩn danh mới
|
||||
Name[zh_CN]=新建隐身窗口
|
||||
Name[zh_TW]=新增無痕式視窗
|
||||
Exec=/usr/bin/chromium-browser --incognito %U
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
--- chromium-89.0.4389.90/base/third_party/libevent/evutil.h.orig 2021-03-13 02:57:15.000000000 +0300
|
||||
+++ chromium-89.0.4389.90/base/third_party/libevent/evutil.h 2021-03-18 22:45:10.144899935 +0300
|
||||
@@ -52,10 +52,10 @@
|
||||
#endif
|
||||
#include <stdarg.h>
|
||||
|
||||
-#ifdef _EVENT_HAVE_UINT64_T
|
||||
+/* #ifdef _EVENT_HAVE_UINT64_T */
|
||||
#define ev_uint64_t uint64_t
|
||||
#define ev_int64_t int64_t
|
||||
-#elif defined(WIN32)
|
||||
+#if defined(WIN32)
|
||||
#define ev_uint64_t unsigned __int64
|
||||
#define ev_int64_t signed __int64
|
||||
#elif _EVENT_SIZEOF_LONG_LONG == 8
|
||||
@@ -68,9 +68,9 @@
|
||||
#error "No way to define ev_uint64_t"
|
||||
#endif
|
||||
|
||||
-#ifdef _EVENT_HAVE_UINT32_T
|
||||
+/* #ifdef _EVENT_HAVE_UINT32_T */
|
||||
#define ev_uint32_t uint32_t
|
||||
-#elif defined(WIN32)
|
||||
+#if defined(WIN32)
|
||||
#define ev_uint32_t unsigned int
|
||||
#elif _EVENT_SIZEOF_LONG == 4
|
||||
#define ev_uint32_t unsigned long
|
||||
@@ -80,9 +80,9 @@
|
||||
#error "No way to define ev_uint32_t"
|
||||
#endif
|
||||
|
||||
-#ifdef _EVENT_HAVE_UINT16_T
|
||||
+/* #ifdef _EVENT_HAVE_UINT16_T */
|
||||
#define ev_uint16_t uint16_t
|
||||
-#elif defined(WIN32)
|
||||
+#if defined(WIN32)
|
||||
#define ev_uint16_t unsigned short
|
||||
#elif _EVENT_SIZEOF_INT == 2
|
||||
#define ev_uint16_t unsigned int
|
||||
@@ -92,11 +92,12 @@
|
||||
#error "No way to define ev_uint16_t"
|
||||
#endif
|
||||
|
||||
-#ifdef _EVENT_HAVE_UINT8_T
|
||||
+/* #ifdef _EVENT_HAVE_UINT8_T */
|
||||
#define ev_uint8_t uint8_t
|
||||
+/*
|
||||
#else
|
||||
#define ev_uint8_t unsigned char
|
||||
-#endif
|
||||
+#endif */
|
||||
|
||||
int evutil_socketpair(int d, int type, int protocol, int sv[2]);
|
||||
int evutil_make_socket_nonblocking(int sock);
|
||||
@@ -65,6 +65,7 @@
|
||||
<Dependency>libxslt-devel</Dependency>
|
||||
<Dependency>llvm-clang-devel</Dependency>
|
||||
<Dependency>lld-devel</Dependency>
|
||||
<Dependency>llvm</Dependency>
|
||||
<Dependency>compiler-rt</Dependency>
|
||||
<Dependency>minizip-devel</Dependency>
|
||||
<Dependency>mit-kerberos</Dependency>
|
||||
@@ -97,6 +98,7 @@
|
||||
<Dependency>libxkbcommon-devel</Dependency>
|
||||
<Dependency>jre8-openjdk-headless</Dependency>
|
||||
<Dependency>pipewire-0.2-devel</Dependency>
|
||||
<Dependency>libevent-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">add-dependency-on-opus-in-webcodecs.patch</Patch>
|
||||
@@ -131,7 +133,7 @@
|
||||
<Dependency>at-spi2-core</Dependency>
|
||||
<!--Dependency>gtk2</Dependency-->
|
||||
<Dependency>gtk3</Dependency>
|
||||
<!--Dependency>libevent</Dependency-->
|
||||
<Dependency>libevent</Dependency>
|
||||
<Dependency>libXcomposite</Dependency>
|
||||
<Dependency>libXcursor</Dependency>
|
||||
<Dependency>libXdamage</Dependency>
|
||||
@@ -180,6 +182,7 @@
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="data">/usr/share/icons</Path>
|
||||
<Path fileType="data">/usr/share/metainfo</Path>
|
||||
<Path fileType="data">/usr/share/pixmaps</Path>
|
||||
<Path fileType="data">/usr/share/applications</Path>
|
||||
<Path fileType="data">/usr/share/drirc.d/10-chromium-browser.conf</Path>
|
||||
|
||||
Reference in New Issue
Block a user