c8359d
# HG changeset patch
c8359d
# User Rob Lemley <rob@thunderbird.net>
c8359d
# Date 1663866047 14400
c8359d
#      Thu Sep 22 13:00:47 2022 -0400
c8359d
# Node ID 8c718243f4e83fc18dfc88bf5d817c5c18f13937
c8359d
# Parent  17dc6bb322b5d40299bba0a90d59c0593137d4f6
c8359d
Bug 1790116 - update_rnp.sh changes for RNP v0.16.2. r=kaie
c8359d
c8359d
The changes in bug_1768424.patch are now included upstream in
c8359d
https://github.com/rnpgp/rnp/commit/ac6f58ef7ccea270b735b53f87da2c3ca5b34290.
c8359d
c8359d
bug_1763641.patch removed per bug 1790116 comment 26.
c8359d
c8359d
disable_obsolete_ciphers.patch no longer needed, use security rules instead.
c8359d
c8359d
Differential Revision: https://phabricator.services.mozilla.com/D157010
c8359d
c8359d
diff --git a/comm/third_party/update_rnp.sh b/comm/third_party/update_rnp.sh
c8359d
--- a/comm/third_party/update_rnp.sh
c8359d
+++ b/comm/third_party/update_rnp.sh
c8359d
@@ -43,11 +43,11 @@ TAGLIST=$(git -C "${RNPgit}" tag --list 
c8359d
 LATEST_VERSION=$($THIRDROC latest_version $TAGLIST)
c8359d
 REVISION=$(git -C "${RNPgit}" rev-parse --verify HEAD)
c8359d
 TIMESTAMP=$(git -C "${RNPgit}" show -s --format=%ct)
c8359d
 
c8359d
 # Cleanup rnp checkout
c8359d
-rm -rf ${RNPgit}/{.git,.github,.cirrus.yml,.clang-format,.gitignore}
c8359d
+rm -rf ${RNPgit}/{.git,.github,.cirrus.yml,.clang-format,.gitignore,.codespellrc}
c8359d
 rm -rf ${RNPgit}/{_config.yml,docker.sh,ci,cmake,git-hooks,travis.sh,vcpkg.txt}
c8359d
 rm -rf ${RNPgit}/{Brewfile,CMakeLists.txt,CMakeSettings.json}
c8359d
 
c8359d
 # Do the switch
c8359d
 rm -rf rnp
c8359d
@@ -60,17 +60,17 @@ mv "${RNPgit}" rnp
c8359d
 
c8359d
 # Restore moz.build
c8359d
 hg revert rnp/moz.build rnp/module.ver rnp/rnp.symbols rnp/src/lib/rnp/rnp_export.h \
c8359d
   rnp/src/rnp/moz.build  rnp/src/rnpkeys/moz.build
c8359d
 
c8359d
-# Reapply Thunderbird patch to disable obsolete ciphers
c8359d
-PATCH_FILES=("patches/rnp/disable_obsolete_ciphers.patch" \
c8359d
-             "patches/rnp/bug_1763641.patch" \
c8359d
-             "patches/rnp/bug_1768424.patch")
c8359d
-for PATCH_FILE in "${PATCH_FILES[@]}"; do
c8359d
-  patch -p2 -i "${PATCH_FILE}" -N -r "${MY_TEMP_DIR}/${PATCH_FILE}.rej"
c8359d
-done
c8359d
+# Patch librnp - currently not needed
c8359d
+#PATCH_FILES=("patches/rnp/disable_obsolete_ciphers.patch")
c8359d
+#for PATCH_FILE in "${PATCH_FILES[@]}"; do
c8359d
+#  # shellcheck disable=SC2086
c8359d
+#  echo "Applying patch $(basename ${PATCH_FILE})"
c8359d
+#  patch -p2 -i "${PATCH_FILE}" -N -r "${MY_TEMP_DIR}/${PATCH_FILE}.rej"
c8359d
+#done
c8359d
 
c8359d
 # Patch sometimes creates backup files that are not wanted.
c8359d
 find rnp -name '*.orig' -exec rm -f '{}' \;
c8359d
 
c8359d
 rm -rf "${MY_TEMP_DIR}"