diff options
author | nia <nia@pkgsrc.org> | 2021-06-18 13:30:31 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-06-18 13:30:31 +0000 |
commit | ec96bce61700107df2709465309ef17479b21c4e (patch) | |
tree | 32041dddd0e56add8a1bab2e2d7fdda737ebf63a | |
parent | 31ebc7444022bf64b2af6a8a3373602abee7e36f (diff) | |
download | pkgsrc-ec96bce61700107df2709465309ef17479b21c4e.tar.gz |
firefox68: Fix build with latest NSS.
8 files changed, 255 insertions, 1 deletions
diff --git a/www/firefox68/distinfo b/www/firefox68/distinfo index a8bb6431e6a..849ce9f8a61 100644 --- a/www/firefox68/distinfo +++ b/www/firefox68/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.23 2020/08/29 18:39:34 nia Exp $ +$NetBSD: distinfo,v 1.24 2021/06/18 13:30:31 nia Exp $ SHA1 (firefox-68.12.0esr.source.tar.xz) = 976fae5c3cdee8b7929e4f17eca6cf44513d08b4 RMD160 (firefox-68.12.0esr.source.tar.xz) = c7871e1d9f8eaff2c0eaff7c70f49c2488e616f8 @@ -10,6 +10,13 @@ SHA1 (patch-build_moz.configure_rust.configure) = b57a9b1451dc426d75774f73d7c05f SHA1 (patch-config_gcc-stl-wrapper.template.h) = 11b45e0c7a9399c5b74b170648280a388dd67d89 SHA1 (patch-config_makefiles_rust.mk) = 564169b2a1ef7f378caa8ba8962b9cf3baf01735 SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49 +SHA1 (patch-dom_indexedDB_ActorsParent.cpp) = ebc9890d2973bcb59d387033509cb158799d4778 +SHA1 (patch-dom_indexedDB_IDBCursor.cpp) = 5a4120964c983526c877d19d9b2bdacb1b1f951a +SHA1 (patch-dom_indexedDB_IDBDatabase.cpp) = a617b2ed89809b7026580e315329114b1e87a939 +SHA1 (patch-dom_indexedDB_IDBObjectStore.cpp) = cf2bcb19bf24f82a0bab181999ad44f5d297e16e +SHA1 (patch-dom_indexedDB_IDBTransaction.cpp) = c07207e5c95425f5f291857a4fa130879463d09a +SHA1 (patch-dom_indexedDB_IDBTransaction.h) = 7a8f72531abd14a7763e21898135aa3032b41d00 +SHA1 (patch-dom_indexedDB_ProfilerHelpers.h) = 755a20c5d4c84968e1759f189d24bd9b3c8c7d30 SHA1 (patch-dom_media_CubebUtils.cpp) = 3cd2c65ab281d802c56216565970450767a3fb24 SHA1 (patch-dom_webauthn_u2f-hid-rs_src_lib.rs) = c0dfe8b1e7ebbc7c1d6066c204030f13b063b8d7 SHA1 (patch-dom_webauthn_u2f-hid-rs_src_netbsd_device.rs) = 091ffab5bd6a15425acb2ab023cc26f6b23324c6 diff --git a/www/firefox68/patches/patch-dom_indexedDB_ActorsParent.cpp b/www/firefox68/patches/patch-dom_indexedDB_ActorsParent.cpp new file mode 100644 index 00000000000..211951b6aeb --- /dev/null +++ b/www/firefox68/patches/patch-dom_indexedDB_ActorsParent.cpp @@ -0,0 +1,106 @@ +$NetBSD: patch-dom_indexedDB_ActorsParent.cpp,v 1.1 2021/06/18 13:30:32 nia Exp $ + +Avoid macro conflict with NSS 3.66 +https://bugzilla.mozilla.org/show_bug.cgi?id=1714311 + +--- dom/indexedDB/ActorsParent.cpp.orig 2020-08-17 18:26:22.000000000 +0000 ++++ dom/indexedDB/ActorsParent.cpp +@@ -10071,7 +10071,7 @@ DatabaseConnection::AutoSavepoint::~Auto + MOZ_ASSERT(mDEBUGTransaction->GetMode() == IDBTransaction::READ_WRITE || + mDEBUGTransaction->GetMode() == + IDBTransaction::READ_WRITE_FLUSH || +- mDEBUGTransaction->GetMode() == IDBTransaction::CLEANUP || ++ mDEBUGTransaction->GetMode() == IDBTransaction::TRANSACTION_CLEANUP || + mDEBUGTransaction->GetMode() == IDBTransaction::VERSION_CHANGE); + + if (NS_FAILED(mConnection->RollbackSavepoint())) { +@@ -10085,7 +10085,7 @@ nsresult DatabaseConnection::AutoSavepoi + MOZ_ASSERT(aTransaction); + MOZ_ASSERT(aTransaction->GetMode() == IDBTransaction::READ_WRITE || + aTransaction->GetMode() == IDBTransaction::READ_WRITE_FLUSH || +- aTransaction->GetMode() == IDBTransaction::CLEANUP || ++ aTransaction->GetMode() == IDBTransaction::TRANSACTION_CLEANUP || + aTransaction->GetMode() == IDBTransaction::VERSION_CHANGE); + + DatabaseConnection* connection = aTransaction->GetDatabase()->GetConnection(); +@@ -12947,7 +12947,7 @@ PBackgroundIDBTransactionParent* Databas + if (NS_WARN_IF(aMode != IDBTransaction::READ_ONLY && + aMode != IDBTransaction::READ_WRITE && + aMode != IDBTransaction::READ_WRITE_FLUSH && +- aMode != IDBTransaction::CLEANUP)) { ++ aMode != IDBTransaction::TRANSACTION_CLEANUP)) { + ASSERT_UNLESS_FUZZING(); + return nullptr; + } +@@ -12956,7 +12956,7 @@ PBackgroundIDBTransactionParent* Databas + // has write access. + if (NS_WARN_IF((aMode == IDBTransaction::READ_WRITE || + aMode == IDBTransaction::READ_WRITE_FLUSH || +- aMode == IDBTransaction::CLEANUP) && ++ aMode == IDBTransaction::TRANSACTION_CLEANUP) && + mPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && + !mChromeWriteAccessAllowed)) { + return nullptr; +@@ -13019,7 +13019,7 @@ mozilla::ipc::IPCResult Database::RecvPB + MOZ_ASSERT(aMode == IDBTransaction::READ_ONLY || + aMode == IDBTransaction::READ_WRITE || + aMode == IDBTransaction::READ_WRITE_FLUSH || +- aMode == IDBTransaction::CLEANUP); ++ aMode == IDBTransaction::TRANSACTION_CLEANUP); + MOZ_ASSERT(!mClosed); + + if (IsInvalidated()) { +@@ -13161,7 +13161,7 @@ nsresult Database::StartTransactionOp::D + + Transaction()->SetActiveOnConnectionThread(); + +- if (Transaction()->GetMode() == IDBTransaction::CLEANUP) { ++ if (Transaction()->GetMode() == IDBTransaction::TRANSACTION_CLEANUP) { + nsresult rv = aConnection->DisableQuotaChecks(); + if (NS_WARN_IF(NS_FAILED(rv))) { + return rv; +@@ -13453,7 +13453,7 @@ bool TransactionBase::VerifyRequestParam + case RequestParams::TObjectStoreDeleteParams: { + if (NS_WARN_IF(mMode != IDBTransaction::READ_WRITE && + mMode != IDBTransaction::READ_WRITE_FLUSH && +- mMode != IDBTransaction::CLEANUP && ++ mMode != IDBTransaction::TRANSACTION_CLEANUP && + mMode != IDBTransaction::VERSION_CHANGE)) { + ASSERT_UNLESS_FUZZING(); + return false; +@@ -13477,7 +13477,7 @@ bool TransactionBase::VerifyRequestParam + case RequestParams::TObjectStoreClearParams: { + if (NS_WARN_IF(mMode != IDBTransaction::READ_WRITE && + mMode != IDBTransaction::READ_WRITE_FLUSH && +- mMode != IDBTransaction::CLEANUP && ++ mMode != IDBTransaction::TRANSACTION_CLEANUP && + mMode != IDBTransaction::VERSION_CHANGE)) { + ASSERT_UNLESS_FUZZING(); + return false; +@@ -21975,7 +21975,7 @@ nsresult TransactionBase::CommitOp::Writ + mTransaction->AssertIsOnConnectionThread(); + MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::READ_WRITE || + mTransaction->GetMode() == IDBTransaction::READ_WRITE_FLUSH || +- mTransaction->GetMode() == IDBTransaction::CLEANUP || ++ mTransaction->GetMode() == IDBTransaction::TRANSACTION_CLEANUP || + mTransaction->GetMode() == IDBTransaction::VERSION_CHANGE); + + const nsTArray<RefPtr<FullObjectStoreMetadata>>& metadataArray = +@@ -22039,7 +22039,7 @@ void TransactionBase::CommitOp::CommitOr + mTransaction->AssertIsOnConnectionThread(); + MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::READ_WRITE || + mTransaction->GetMode() == IDBTransaction::READ_WRITE_FLUSH || +- mTransaction->GetMode() == IDBTransaction::CLEANUP || ++ mTransaction->GetMode() == IDBTransaction::TRANSACTION_CLEANUP || + mTransaction->GetMode() == IDBTransaction::VERSION_CHANGE); + + nsTArray<RefPtr<FullObjectStoreMetadata>>& metadataArray = +@@ -22163,7 +22163,7 @@ TransactionBase::CommitOp::Run() { + + connection->FinishWriteTransaction(); + +- if (mTransaction->GetMode() == IDBTransaction::CLEANUP) { ++ if (mTransaction->GetMode() == IDBTransaction::TRANSACTION_CLEANUP) { + connection->DoIdleProcessing(/* aNeedsCheckpoint */ true); + + connection->EnableQuotaChecks(); diff --git a/www/firefox68/patches/patch-dom_indexedDB_IDBCursor.cpp b/www/firefox68/patches/patch-dom_indexedDB_IDBCursor.cpp new file mode 100644 index 00000000000..a8a9e4505ad --- /dev/null +++ b/www/firefox68/patches/patch-dom_indexedDB_IDBCursor.cpp @@ -0,0 +1,16 @@ +$NetBSD: patch-dom_indexedDB_IDBCursor.cpp,v 1.1 2021/06/18 13:30:32 nia Exp $ + +Avoid macro conflict with NSS 3.66 +https://bugzilla.mozilla.org/show_bug.cgi?id=1714311 + +--- dom/indexedDB/IDBCursor.cpp.orig 2020-08-17 18:26:22.000000000 +0000 ++++ dom/indexedDB/IDBCursor.cpp +@@ -630,7 +630,7 @@ already_AddRefed<IDBRequest> IDBCursor:: + return nullptr; + } + +- if (mTransaction->GetMode() == IDBTransaction::CLEANUP || IsSourceDeleted() || ++ if (mTransaction->GetMode() == IDBTransaction::TRANSACTION_CLEANUP || IsSourceDeleted() || + !mHaveValue || mType == Type_ObjectStoreKey || mType == Type_IndexKey || + mContinueCalled) { + aRv.Throw(NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR); diff --git a/www/firefox68/patches/patch-dom_indexedDB_IDBDatabase.cpp b/www/firefox68/patches/patch-dom_indexedDB_IDBDatabase.cpp new file mode 100644 index 00000000000..8db17eb5f5c --- /dev/null +++ b/www/firefox68/patches/patch-dom_indexedDB_IDBDatabase.cpp @@ -0,0 +1,43 @@ +$NetBSD: patch-dom_indexedDB_IDBDatabase.cpp,v 1.1 2021/06/18 13:30:32 nia Exp $ + +Avoid macro conflict with NSS 3.66 +https://bugzilla.mozilla.org/show_bug.cgi?id=1714311 + +--- dom/indexedDB/IDBDatabase.cpp.orig 2020-08-17 18:26:22.000000000 +0000 ++++ dom/indexedDB/IDBDatabase.cpp +@@ -599,7 +599,7 @@ nsresult IDBDatabase::Transaction(JSCont + break; + case IDBTransactionMode::Readwrite: + if (mQuotaExceeded) { +- mode = IDBTransaction::CLEANUP; ++ mode = IDBTransaction::TRANSACTION_CLEANUP; + mQuotaExceeded = false; + } else { + mode = IDBTransaction::READ_WRITE; +@@ -609,7 +609,7 @@ nsresult IDBDatabase::Transaction(JSCont + mode = IDBTransaction::READ_WRITE_FLUSH; + break; + case IDBTransactionMode::Cleanup: +- mode = IDBTransaction::CLEANUP; ++ mode = IDBTransaction::TRANSACTION_CLEANUP; + mQuotaExceeded = false; + break; + case IDBTransactionMode::Versionchange: +@@ -643,7 +643,7 @@ nsresult IDBDatabase::Transaction(JSCont + + transaction->SetBackgroundActor(actor); + +- if (mode == IDBTransaction::CLEANUP) { ++ if (mode == IDBTransaction::TRANSACTION_CLEANUP) { + ExpireFileActors(/* aExpireAll */ true); + } + +@@ -787,7 +787,7 @@ void IDBDatabase::AbortTransactions(bool + // We warn for any transactions that could have written data. + case IDBTransaction::READ_WRITE: + case IDBTransaction::READ_WRITE_FLUSH: +- case IDBTransaction::CLEANUP: ++ case IDBTransaction::TRANSACTION_CLEANUP: + case IDBTransaction::VERSION_CHANGE: + transactionsThatNeedWarning.AppendElement(transaction); + break; diff --git a/www/firefox68/patches/patch-dom_indexedDB_IDBObjectStore.cpp b/www/firefox68/patches/patch-dom_indexedDB_IDBObjectStore.cpp new file mode 100644 index 00000000000..a76eafeeec6 --- /dev/null +++ b/www/firefox68/patches/patch-dom_indexedDB_IDBObjectStore.cpp @@ -0,0 +1,16 @@ +$NetBSD: patch-dom_indexedDB_IDBObjectStore.cpp,v 1.1 2021/06/18 13:30:32 nia Exp $ + +Avoid macro conflict with NSS 3.66 +https://bugzilla.mozilla.org/show_bug.cgi?id=1714311 + +--- dom/indexedDB/IDBObjectStore.cpp.orig 2020-08-17 18:26:22.000000000 +0000 ++++ dom/indexedDB/IDBObjectStore.cpp +@@ -1526,7 +1526,7 @@ already_AddRefed<IDBRequest> IDBObjectSt + MOZ_ASSERT(aCx); + MOZ_ASSERT_IF(aFromCursor, aOverwrite); + +- if (mTransaction->GetMode() == IDBTransaction::CLEANUP || mDeletedSpec) { ++ if (mTransaction->GetMode() == IDBTransaction::TRANSACTION_CLEANUP || mDeletedSpec) { + aRv.Throw(NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR); + return nullptr; + } diff --git a/www/firefox68/patches/patch-dom_indexedDB_IDBTransaction.cpp b/www/firefox68/patches/patch-dom_indexedDB_IDBTransaction.cpp new file mode 100644 index 00000000000..c2fd7630756 --- /dev/null +++ b/www/firefox68/patches/patch-dom_indexedDB_IDBTransaction.cpp @@ -0,0 +1,25 @@ +$NetBSD: patch-dom_indexedDB_IDBTransaction.cpp,v 1.1 2021/06/18 13:30:32 nia Exp $ + +Avoid macro conflict with NSS 3.66 +https://bugzilla.mozilla.org/show_bug.cgi?id=1714311 + +--- dom/indexedDB/IDBTransaction.cpp.orig 2020-08-17 18:26:22.000000000 +0000 ++++ dom/indexedDB/IDBTransaction.cpp +@@ -177,7 +177,7 @@ already_AddRefed<IDBTransaction> IDBTran + aDatabase->AssertIsOnOwningThread(); + MOZ_ASSERT(!aObjectStoreNames.IsEmpty()); + MOZ_ASSERT(aMode == READ_ONLY || aMode == READ_WRITE || +- aMode == READ_WRITE_FLUSH || aMode == CLEANUP); ++ aMode == READ_WRITE_FLUSH || aMode == TRANSACTION_CLEANUP); + + RefPtr<IDBTransaction> transaction = + new IDBTransaction(aDatabase, aObjectStoreNames, aMode); +@@ -819,7 +819,7 @@ IDBTransactionMode IDBTransaction::GetMo + case READ_WRITE_FLUSH: + return IDBTransactionMode::Readwriteflush; + +- case CLEANUP: ++ case TRANSACTION_CLEANUP: + return IDBTransactionMode::Cleanup; + + case VERSION_CHANGE: diff --git a/www/firefox68/patches/patch-dom_indexedDB_IDBTransaction.h b/www/firefox68/patches/patch-dom_indexedDB_IDBTransaction.h new file mode 100644 index 00000000000..8c1132c52f4 --- /dev/null +++ b/www/firefox68/patches/patch-dom_indexedDB_IDBTransaction.h @@ -0,0 +1,25 @@ +$NetBSD: patch-dom_indexedDB_IDBTransaction.h,v 1.1 2021/06/18 13:30:32 nia Exp $ + +Avoid macro conflict with NSS 3.66 +https://bugzilla.mozilla.org/show_bug.cgi?id=1714311 + +--- dom/indexedDB/IDBTransaction.h.orig 2020-08-17 18:26:23.000000000 +0000 ++++ dom/indexedDB/IDBTransaction.h +@@ -54,7 +54,7 @@ class IDBTransaction final : public DOME + READ_ONLY = 0, + READ_WRITE, + READ_WRITE_FLUSH, +- CLEANUP, ++ TRANSACTION_CLEANUP, + VERSION_CHANGE, + + // Only needed for IPC serialization helper, should never be used in code. +@@ -169,7 +169,7 @@ class IDBTransaction final : public DOME + bool IsWriteAllowed() const { + AssertIsOnOwningThread(); + return mMode == READ_WRITE || mMode == READ_WRITE_FLUSH || +- mMode == CLEANUP || mMode == VERSION_CHANGE; ++ mMode == TRANSACTION_CLEANUP || mMode == VERSION_CHANGE; + } + + bool IsAborted() const { diff --git a/www/firefox68/patches/patch-dom_indexedDB_ProfilerHelpers.h b/www/firefox68/patches/patch-dom_indexedDB_ProfilerHelpers.h new file mode 100644 index 00000000000..6339a8f141e --- /dev/null +++ b/www/firefox68/patches/patch-dom_indexedDB_ProfilerHelpers.h @@ -0,0 +1,16 @@ +$NetBSD: patch-dom_indexedDB_ProfilerHelpers.h,v 1.1 2021/06/18 13:30:32 nia Exp $ + +Avoid macro conflict with NSS 3.66 +https://bugzilla.mozilla.org/show_bug.cgi?id=1714311 + +--- dom/indexedDB/ProfilerHelpers.h.orig 2020-08-17 18:26:22.000000000 +0000 ++++ dom/indexedDB/ProfilerHelpers.h +@@ -119,7 +119,7 @@ class MOZ_STACK_CLASS LoggingString fina + case IDBTransaction::READ_WRITE_FLUSH: + AppendLiteral("\"readwriteflush\""); + break; +- case IDBTransaction::CLEANUP: ++ case IDBTransaction::TRANSACTION_CLEANUP: + AppendLiteral("\"cleanup\""); + break; + case IDBTransaction::VERSION_CHANGE: |