[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - external/pdfium

Andras Timar (via logerrit) logerrit at kemper.freedesktop.org
Wed May 5 21:34:49 UTC 2021


 external/pdfium/AndroidNDK19.patch.1      |   16 ++++++++++++++++
 external/pdfium/UnpackedTarball_pdfium.mk |    2 ++
 2 files changed, 18 insertions(+)

New commits:
commit 01765acee6b4931b6c69252b8357f81fd26e33bd
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Wed May 5 23:14:49 2021 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Wed May 5 23:34:14 2021 +0200

    pdfium build fix with Android NDK 19
    
    Change-Id: I618095efab0a7ed7babdabc36db6a473b1af78da
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115161
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/external/pdfium/AndroidNDK19.patch.1 b/external/pdfium/AndroidNDK19.patch.1
new file mode 100644
index 000000000000..b0d1f0deae80
--- /dev/null
+++ b/external/pdfium/AndroidNDK19.patch.1
@@ -0,0 +1,16 @@
+diff -Naur pdfium.org/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h
+--- pdfium.org/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h	2021-05-05 23:01:25.705057178 +0200
++++ pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h	2021-05-05 23:06:52.194081762 +0200
+@@ -15,6 +15,12 @@
+ #endif
+ #if defined(OS_ANDROID)
+ #include <sys/prctl.h>
++#ifndef PR_SET_VMA
++#define PR_SET_VMA 0x53564d41
++#endif
++#ifndef PR_SET_VMA_ANON_NAME
++#define PR_SET_VMA_ANON_NAME 0
++#endif
+ #endif
+ #if defined(OS_LINUX) || defined(OS_CHROMEOS)
+ #include <sys/resource.h>
diff --git a/external/pdfium/UnpackedTarball_pdfium.mk b/external/pdfium/UnpackedTarball_pdfium.mk
index 6bd94b0788c5..8eb17e1ddb59 100644
--- a/external/pdfium/UnpackedTarball_pdfium.mk
+++ b/external/pdfium/UnpackedTarball_pdfium.mk
@@ -20,6 +20,8 @@ pdfium_patches += AnnotationLineStartAndEnd.patch.1
 pdfium_patches += SignatureGetDocMDPPermission.patch.1
 # Use CoreGraphics.h instead of Carbon.h
 pdfium_patches += cg-instead-of-carbon.patch.1
+# Android NDK 19 - that is known to work well - does not have 2 defines
+pdfium_patches += AndroidNDK19.patch.1
 
 # Work around <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94141> "c++20 rewritten operator==
 # recursive call mixing friend and external operators for template class" in GCC with


More information about the Libreoffice-commits mailing list