The Debian packaging of OCRmyPDF is maintained using dgit.  For the
sake of an efficient workflow, Debian modifications to the upstream
source are squashed into a single diff, rather than a series of quilt
patches.  To obtain a patch queue for package version 1.2.3-1:

    # apt-get install dgit
    % dgit clone ocrmypdf
    % cd ocrmypdf
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
--- ocrmypdf-6.1.2.orig/docs/index.rst
+++ ocrmypdf-6.1.2/docs/index.rst
@@ -16,7 +16,6 @@ PDF is the best format for storing and e
 
    introduction
    release_notes
-   installation
    languages
 
 .. toctree::
--- ocrmypdf-6.1.2.orig/docs/languages.rst
+++ ocrmypdf-6.1.2/docs/languages.rst
@@ -7,10 +7,7 @@ OCRmyPDF uses Tesseract for OCR, and rel
 
 Tesseract supports `most languages <https://github.com/tesseract-ocr/tesseract/blob/master/doc/tesseract.1.asc#languages>`_.
 
-For Linux users, you can often find packages that provide language packs:
-
-Debian and Ubuntu users
------------------------
+You can often find packages that provide language packs:
 
 .. code-block:: bash
 
@@ -23,44 +20,6 @@ Debian and Ubuntu users
 You can then pass the ``-l LANG`` argument to OCRmyPDF to give a hint as to what languages it should search for. Multiple
 languages can be requested using either ``-l eng+fre`` (English and French) or ``-l eng -l fre``.
 
-macOS users
------------
-
-You can install additional language packs by :ref:`installing Tesseract using Homebrew with all language packs <macos-all-languages>`.
-
-Docker users
-------------
-
-Users of the Docker image may use the alternative :ref:`"polyglot" container <docker-polyglot>` which includes all languages.
-
-Adding individual language packs to a Docker image
-""""""""""""""""""""""""""""""""""""""""""""""""""
-
-If you wish to add a single language pack, you could do the following:
-
-* Download the desired ``.trainedata`` file from the `tessdata <https://github.com/tesseract-ocr/tessdata>`_ repository. Let's use Hebrew in this example (``heb.traineddata``)
-
-* Copy the file to ``/home/user/downloads/heb.traineddata``.
-
-* Create a new container based on the ocrmypdf-tess4 image and jump into it with a terminal:
-
-.. code-block:: bash
-
-	host$ docker run  -v /home/user/downloads:/home/docker -it --entrypoint /bin/bash ocrmypdf-tess4
-
-* Put the file where Tesseract expects it:
-
-.. code-block:: bash
-
-	docker$ cp /home/docker/heb.traineddata /usr/share/tesseract-ocr/tessdata
-
-* Note the container id, and save it as a new image (in this example, ``ocrmypdf-tess4-heb``)
-
-.. code-block:: bash
-
-    host$ docker commit <container_id> ocrmypdf-tess4-heb
-
-
 Known limitations
 -----------------
 
@@ -73,4 +32,4 @@ As of v4.2, users of ocrmypdf working la
 The reasons for this are:
 
 * The latest version of Ghostscript (9.19 as of this writing) has unfixed bugs in Unicode handling that generate invalid character maps, so Ghostscript cannot be used for PDF/A conversion
-* The default "hocr" PDF renderer does not handle Asian fonts properly
\ No newline at end of file
+* The default "hocr" PDF renderer does not handle Asian fonts properly
--- ocrmypdf-6.1.2.orig/setup.cfg
+++ ocrmypdf-6.1.2/setup.cfg
@@ -11,7 +11,6 @@ ignore =
 [tool:pytest]
 norecursedirs = lib .pc .git output cache resources
 testpaths = tests
-addopts = -n auto
 
 [metadata]
 license_file = LICENSE
\ No newline at end of file
--- ocrmypdf-6.1.2.orig/src/ocrmypdf/__main__.py
+++ ocrmypdf-6.1.2/src/ocrmypdf/__main__.py
@@ -124,17 +124,17 @@ your PDF, use --output-type pdf.
 
 If OCRmyPDF is given an image file as input, it will attempt to convert the
 image to a PDF before processing.  For more control over the conversion of
-images to PDF, use the Python package img2pdf or other image to PDF software.
+images to PDF, use img2pdf, or other image to PDF software.
 
 For example, this command uses img2pdf to convert all .png files beginning
 with the 'page' prefix to a PDF, fitting each image on A4-sized paper, and
-sending the result to OCRmyPDF through a pipe.  img2pdf is a dependency of
-ocrmypdf so it is already installed.
+sending the result to OCRmyPDF through a pipe.
 
     img2pdf --pagesize A4 page*.png | ocrmypdf - myfile.pdf
 
-Online documentation is located at:
-    https://ocrmypdf.readthedocs.io/en/latest/introduction.html
+HTML documentation is located at:
+    /usr/share/doc/ocrmypdf/html/index.html
+after installing the ocrmypdf-doc package.
 
 """)
 
--- ocrmypdf-6.1.2.orig/tests/test_main.py
+++ ocrmypdf-6.1.2/tests/test_main.py
@@ -41,6 +41,8 @@ check_ocrmypdf = pytest.helpers.check_oc
 run_ocrmypdf = pytest.helpers.run_ocrmypdf
 spoof = pytest.helpers.spoof
 
+bigendian = pytest.mark.xfail(sys.byteorder == 'big',
+                              reason="fails on big-endian")
 
 RENDERERS = ['hocr', 'tesseract']
 if tesseract.has_textonly_pdf():
@@ -692,6 +694,7 @@ def test_destination_not_writable(spoof_
     assert p.returncode == ExitCode.file_access_error, "Expected error"
 
 
+@bigendian
 def test_tesseract_config_valid(resources, outdir):
     cfg_file = outdir / 'test.cfg'
     with cfg_file.open('w') as f:
@@ -706,6 +709,7 @@ language_model_penalty_non_freq_dict_wor
         '--tesseract-config', cfg_file)
 
 
+@bigendian
 @pytest.mark.parametrize('renderer', RENDERERS)
 def test_tesseract_config_notfound(renderer, resources, outdir):
     cfg_file = outdir / 'nofile.cfg'
@@ -734,6 +738,7 @@ THIS FILE IS INVALID
     assert p.returncode == ExitCode.invalid_config
 
 
+@bigendian
 def test_user_words(resources, outdir):
     word_list = outdir / 'wordlist.txt'
     sidecar_before = outdir / 'sidecar_before.txt'
@@ -771,6 +776,7 @@ def test_form_xobject(spoof_tesseract_no
                    env=spoof_tesseract_noop)
 
 
+@bigendian
 @pytest.mark.parametrize('renderer', RENDERERS)
 def test_pagesize_consistency(renderer, resources, outpdf):
     from math import isclose
@@ -1076,4 +1082,4 @@ def test_skip_repair(spoof_tesseract_noo
         outpdf,
         '--skip-repair',
         env=spoof_tesseract_noop
-    )
\ No newline at end of file
+    )
--- ocrmypdf-6.1.2.orig/tests/test_tess4.py
+++ ocrmypdf-6.1.2/tests/test_tess4.py
@@ -28,6 +28,8 @@ from pathlib import Path
 # pylint: disable=no-member
 spoof = pytest.helpers.spoof
 
+bigendian = pytest.mark.xfail(sys.byteorder == 'big',
+                              reason="fails on big-endian")
 
 @pytest.fixture
 def ensure_tess4():
@@ -83,6 +85,7 @@ run_ocrmypdf = pytest.helpers.run_ocrmyp
 spoof = pytest.helpers.spoof
 
 
+@bigendian
 def test_textonly_pdf(ensure_tess4, resources, outdir):
     check_ocrmypdf(
         resources / 'linn.pdf',
@@ -91,6 +94,7 @@ def test_textonly_pdf(ensure_tess4, reso
         env=ensure_tess4)
 
 
+@bigendian
 def test_pagesize_consistency_tess4(ensure_tess4, resources, outpdf):
     from math import isclose
 
