Skip to content

Commit

Permalink
Add thunderbird-60.8.0-r1.ebuild; mask while testing
Browse files Browse the repository at this point in the history
Prevents --disable-elf-hack being selected for clang USE on arm64
  • Loading branch information
sakaki- committed Aug 12, 2019
1 parent aa42ea1 commit 1da535a
Show file tree
Hide file tree
Showing 10 changed files with 861 additions and 0 deletions.
58 changes: 58 additions & 0 deletions mail-client/thunderbird/Manifest

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions mail-client/thunderbird/files/1000_fix_gentoo_preferences.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From: Jory A. Pratt <[email protected]>

Add the gentoo preferences for the omni.jar creation

diff --git a/mail/installer/package-manifest.in b/mail/installer/package-manifest.in
--- a/mail/installer/package-manifest.in
+++ b/mail/installer/package-manifest.in
@@ -313,16 +313,17 @@
@RESPATH@/components/devtools-startup.manifest
@RESPATH@/components/devtools-startup.js

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Default Profile Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; default pref files
+@RESPATH@/defaults/pref/all-gentoo.js
@RESPATH@/defaults/pref/all-thunderbird.js
@RESPATH@/defaults/pref/channel-prefs.js
@RESPATH@/defaults/pref/composer.js
@RESPATH@/defaults/pref/mailnews.js
@RESPATH@/defaults/pref/mdn.js
@RESPATH@/defaults/pref/smime.js
@RESPATH@/defaults/pref/thunderbird-branding.js
@RESPATH@/greprefs.js
10 changes: 10 additions & 0 deletions mail-client/thunderbird/files/icon/thunderbird-unbranded.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Mozilla Thunderbird
Comment=Mail & News Reader
Exec=/usr/bin/thunderbird %u
Icon=thunderbird-icon-unbranded
Terminal=false
Type=Application
Categories=Office;Network;Email;
MimeType=x-scheme-handler/mailto;
StartupNotify=true
10 changes: 10 additions & 0 deletions mail-client/thunderbird/files/icon/thunderbird.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Mozilla Thunderbird
Comment=Mail & News Reader
Exec=/usr/bin/thunderbird %u
Icon=thunderbird-icon
Terminal=false
Type=Application
Categories=Office;Network;Email;
MimeType=x-scheme-handler/mailto;
StartupNotify=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# HG changeset patch
# User Arfrever Frehtes Taifersar Arahesis <[email protected]>
# Date 1543532530 0
# Thu Nov 29 23:02:10 2018 +0000
# Node ID 1c480085935783bd1d240860bb44f410e2d36322
# Parent 6453222232be364fb8ce3fd29b6cbcd480e5f2e3
Bug 1270882 - Enable support for SQLite custom FTS3 tokenizers at run time.

Do not require that SQLite has been built with support for custom FTS3
tokenizers enabled by default. This allows to use system SQLite in
distributions which provide SQLite configured in this way (which is SQLite
upstream's default configuration due to security concerns).

Requires exposing the sqlite3_db_config symbol in bundled SQLite.

Disable no longer needed setting of SQLITE_ENABLE_FTS3_TOKENIZER macro in
bundled SQLite build.

--- a/db/sqlite3/src/moz.build Thu Nov 29 19:08:28 2018 +0000
+++ b/db/sqlite3/src/moz.build Thu Nov 29 23:02:10 2018 +0000
@@ -58,10 +58,6 @@
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit':
DEFINES['SQLITE_ENABLE_LOCKING_STYLE'] = 0

-# Thunderbird needs the 2-argument version of fts3_tokenizer()
-if CONFIG['MOZ_THUNDERBIRD'] or CONFIG['MOZ_SUITE']:
- DEFINES['SQLITE_ENABLE_FTS3_TOKENIZER'] = 1
-
# Turn on SQLite's assertions in debug builds.
if CONFIG['MOZ_DEBUG']:
DEFINES['SQLITE_DEBUG'] = 1
--- a/db/sqlite3/src/sqlite.symbols Thu Nov 29 19:08:28 2018 +0000
+++ b/db/sqlite3/src/sqlite.symbols Thu Nov 29 23:02:10 2018 +0000
@@ -45,6 +45,7 @@
sqlite3_create_function16
sqlite3_create_module
sqlite3_data_count
+sqlite3_db_config
sqlite3_db_filename
sqlite3_db_handle
sqlite3_db_mutex
--- a/storage/mozStorageConnection.cpp Thu Nov 29 19:08:28 2018 +0000
+++ b/storage/mozStorageConnection.cpp Thu Nov 29 23:02:10 2018 +0000
@@ -679,6 +679,10 @@
return convertResultCode(srv);
}

+#ifdef INIT_SQLITE_FTS3_TOKENIZER
+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
+#endif
+
// Do not set mDatabaseFile or mFileURL here since this is a "memory"
// database.

@@ -715,6 +719,10 @@
return convertResultCode(srv);
}

+#ifdef INIT_SQLITE_FTS3_TOKENIZER
+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
+#endif
+
// Do not set mFileURL here since this is database does not have an associated
// URL.
mDatabaseFile = aDatabaseFile;
@@ -746,6 +754,10 @@
return convertResultCode(srv);
}

+#ifdef INIT_SQLITE_FTS3_TOKENIZER
+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
+#endif
+
// Set both mDatabaseFile and mFileURL here.
mFileURL = aFileURL;
mDatabaseFile = databaseFile;
--- a/storage/moz.build 2018-11-14 10:14:14.000000000 -0500
+++ b/storage/moz.build 2018-11-29 17:05:42.106058951 -0500
@@ -101,16 +101,20 @@
#
# Note: On Windows our sqlite build assumes we use jemalloc. If you disable
# MOZ_STORAGE_MEMORY on Windows, you will also need to change the "ifdef
# MOZ_MEMORY" options in db/sqlite3/src/Makefile.in.
if CONFIG['MOZ_MEMORY'] and not CONFIG['MOZ_SYSTEM_SQLITE']:
if CONFIG['OS_TARGET'] != 'Android':
DEFINES['MOZ_STORAGE_MEMORY'] = True

+# Thunderbird needs the 2-argument version of fts3_tokenizer()
+if CONFIG['MOZ_THUNDERBIRD'] or CONFIG['MOZ_SUITE']:
+ DEFINES['INIT_SQLITE_FTS3_TOKENIZER'] = 1
+
# This is the default value. If we ever change it when compiling sqlite, we
# will need to change it here as well.
DEFINES['SQLITE_MAX_LIKE_PATTERN_LENGTH'] = 50000

# See Sqlite moz.build for reasoning about TEMP_STORE.
# For system sqlite we cannot use the compile time option, so we use a pragma.
if CONFIG['MOZ_SYSTEM_SQLITE'] and (CONFIG['OS_TARGET'] == 'Android'
or CONFIG['HAVE_64BIT_BUILD']):
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pref("app.update.enabled", false);
pref("app.update.autoInstallEnabled", false);
pref("browser.display.use_system_colors", true);
pref("intl.locale.matchOS", true);
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
pref("mail.shell.checkDefaultClient", false);
# Do not switch to Smart Folders after upgrade to 3.0b4
pref("mail.folder.views.version", "1");
pref("extensions.autoDisableScopes", 0);
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pref("app.update.enabled", false);
pref("app.update.autoInstallEnabled", false);
pref("browser.display.use_system_colors", true);
pref("intl.locale.matchOS", true);
pref("intl.locale.requested", "");
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
pref("mail.shell.checkDefaultClient", false);
# Do not switch to Smart Folders after upgrade to 3.0b4
pref("mail.folder.views.version", "1");
pref("extensions.autoDisableScopes", 0);
36 changes: 36 additions & 0 deletions mail-client/thunderbird/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Mozilla Team</name>
</maintainer>
<use>
<flag name="bindist">Disable official Thunderbird branding (icons, name) which
are not binary-redistributable according to upstream.</flag>
<flag name="clang">Use Clang compiler instead of GCC</flag>
<flag name="crypt"> Enable encryption support with enigmail</flag>
<flag name="mozdom">Enable Mozilla's DOM inspector</flag>
<flag name="lightning">Enable app-global calendar support
(note 38.0 and above bundles calendar support when this flag is off)</flag>
<flag name="custom-optimization">Build with user-specified compiler optimizations
(-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported)</flag>
<flag name="gtk2">Use the cairo-gtk2 rendering engine instead of the default cairo-gtk3</flag>
<flag name="rust">Enable support for using rust compiler (experimental)</flag>
<flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg>
instead of bundled.</flag>
<flag name="system-harfbuzz">Use the system-wide <pkg>media-libs/harfbuzz</pkg>
and <pkg>media-gfx/graphite2</pkg> instead of bundled.</flag>
<flag name="system-icu">Use the system-wide <pkg>dev-libs/icu</pkg>
instead of bundled.</flag>
<flag name="system-jpeg">Use the system-wide <pkg>media-libs/libjpeg-turbo</pkg>
instead of bundled.</flag>
<flag name="system-libevent">Use the system-wide <pkg>dev-libs/libevent</pkg>
instead of bundled.</flag>
<flag name="system-libvpx">Use the system-wide <pkg>media-libs/libvpx</pkg>
instead of bundled.</flag>
<flag name="system-sqlite">Use the system-wide <pkg>dev-db/sqlite</pkg>
installation with secure-delete enabled</flag>
<flag name="minimal">Remove the software development kit and headers</flag>
</use>
</pkgmetadata>
Loading

0 comments on commit 1da535a

Please sign in to comment.