Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] img2pdf: update to 0.4.1.
@ 2021-05-11  6:46 oynqr
  2021-05-11 16:06 ` [PR PATCH] [Merged]: " ericonr
  0 siblings, 1 reply; 2+ messages in thread
From: oynqr @ 2021-05-11  6:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1788 bytes --]

There is a new pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages img2pdf
https://github.com/void-linux/void-packages/pull/30795

img2pdf: update to 0.4.1.
This also drops most of the patches since they were either included upstream or made obsolete.
There was also a weird typo in fix_color_profile_path.patch at line 23, I wonder why I never caught that.

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30795.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-img2pdf-30795.patch --]
[-- Type: text/x-diff, Size: 21018 bytes --]

From 8f826c0ef5b0b2640d391d8ba237de7f43e539b3 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Tue, 11 May 2021 08:36:29 +0200
Subject: [PATCH] img2pdf: update to 0.4.1.

---
 srcpkgs/img2pdf/patches/disableicc.patch      |  11 -
 .../patches/endianess-endianness.patch        | 245 ------------------
 .../patches/fix_color_profile_path.patch      |  50 ++--
 srcpkgs/img2pdf/patches/imdepth.patch         |  22 --
 srcpkgs/img2pdf/template                      |   5 +-
 5 files changed, 20 insertions(+), 313 deletions(-)
 delete mode 100644 srcpkgs/img2pdf/patches/disableicc.patch
 delete mode 100644 srcpkgs/img2pdf/patches/endianess-endianness.patch
 delete mode 100644 srcpkgs/img2pdf/patches/imdepth.patch

diff --git a/srcpkgs/img2pdf/patches/disableicc.patch b/srcpkgs/img2pdf/patches/disableicc.patch
deleted file mode 100644
index 1c60cf9ad6bf..000000000000
--- a/srcpkgs/img2pdf/patches/disableicc.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/img2pdf_test.py
-+++ b/src/img2pdf_test.py
-@@ -5320,7 +5320,7 @@ def test_png_palette8(tmp_path_factory,
- )
- def test_png_icc(tmp_path_factory, png_icc_img, png_icc_pdf):
-     tmpdir = tmp_path_factory.mktemp("png_icc")
--    compare_ghostscript(tmpdir, png_icc_img, png_icc_pdf, icc=True)
-+    # compare_ghostscript(tmpdir, png_icc_img, png_icc_pdf, icc=True)
-     # compare_poppler(tmpdir, png_icc_img, png_icc_pdf)
-     # compare_mupdf(tmpdir, png_icc_img, png_icc_pdf)
-     # compare_pdfimages_png(tmpdir, png_icc_img, png_icc_pdf)
diff --git a/srcpkgs/img2pdf/patches/endianess-endianness.patch b/srcpkgs/img2pdf/patches/endianess-endianness.patch
deleted file mode 100644
index f04a6b920969..000000000000
--- a/srcpkgs/img2pdf/patches/endianess-endianness.patch
+++ /dev/null
@@ -1,245 +0,0 @@
---- a/src/img2pdf_test.py
-+++ b/src/img2pdf_test.py
-@@ -863,7 +863,7 @@ def jpg_img(tmp_path_factory, tmp_normal
-     assert "resolution" not in identify[0]["image"]
-     assert identify[0]["image"].get("units") == "Undefined", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColor", str(identify)
--    assert identify[0]["image"].get("endianess") == "Undefined", str(identify)
-+    assert identify[0]["image"].get("endianness") == "Undefined", str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-     assert identify[0]["image"].get("pageGeometry") == {
-@@ -2219,7 +2219,7 @@ def tiff_float_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColor", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -2275,7 +2275,7 @@ def tiff_cmyk8_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "CMYK", str(identify)
-     assert identify[0]["image"].get("type") == "ColorSeparation", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -2335,7 +2335,7 @@ def tiff_cmyk16_img(tmp_path_factory, tm
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "CMYK", str(identify)
-     assert identify[0]["image"].get("type") == "ColorSeparation", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 16, str(identify)
-@@ -2385,7 +2385,7 @@ def tiff_rgb8_img(tmp_path_factory, tmp_
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColor", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -2436,7 +2436,7 @@ def tiff_rgb12_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColor", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 12, str(identify)
-@@ -2487,7 +2487,7 @@ def tiff_rgb14_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColor", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 14, str(identify)
-@@ -2538,7 +2538,7 @@ def tiff_rgb16_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColor", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 16, str(identify)
-@@ -2589,7 +2589,7 @@ def tiff_rgba8_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColorAlpha", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -2640,7 +2640,7 @@ def tiff_rgba16_img(tmp_path_factory, tm
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColorAlpha", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 16, str(identify)
-@@ -2689,7 +2689,7 @@ def tiff_gray1_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Bilevel", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 1, str(identify)
-@@ -2739,7 +2739,7 @@ def tiff_gray2_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Grayscale", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 2, str(identify)
-@@ -2789,7 +2789,7 @@ def tiff_gray4_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Grayscale", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 4, str(identify)
-@@ -2839,7 +2839,7 @@ def tiff_gray8_img(tmp_path_factory, tmp
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Grayscale", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -2889,7 +2889,7 @@ def tiff_gray16_img(tmp_path_factory, tm
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Grayscale", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 16, str(identify)
-@@ -2943,7 +2943,7 @@ def tiff_multipage_img(tmp_path_factory,
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColor", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -2986,7 +2986,7 @@ def tiff_multipage_img(tmp_path_factory,
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "TrueColor", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -3036,7 +3036,7 @@ def tiff_palette1_img(tmp_path_factory,
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "Palette", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -3087,7 +3087,7 @@ def tiff_palette2_img(tmp_path_factory,
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "Palette", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -3138,7 +3138,7 @@ def tiff_palette4_img(tmp_path_factory,
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "Palette", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -3189,7 +3189,7 @@ def tiff_palette8_img(tmp_path_factory,
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
-     assert identify[0]["image"].get("type") == "Palette", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 8, str(identify)
-@@ -3253,7 +3253,7 @@ def tiff_ccitt_lsb_m2l_white_img(tmp_pat
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Bilevel", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 1, str(identify)
-@@ -3334,7 +3334,7 @@ def tiff_ccitt_msb_m2l_white_img(tmp_pat
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Bilevel", str(identify)
--    assert identify[0]["image"].get("endianess") in [
-+    assert identify[0]["image"].get("endianness") in [
-         "Undefined",
-         "MSB",
-     ]  # FIXME: should be MSB
-@@ -3416,7 +3416,7 @@ def tiff_ccitt_msb_l2m_white_img(tmp_pat
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Bilevel", str(identify)
--    assert identify[0]["image"].get("endianess") in [
-+    assert identify[0]["image"].get("endianness") in [
-         "Undefined",
-         "MSB",
-     ]  # FIXME: should be MSB
-@@ -3503,7 +3503,7 @@ def tiff_ccitt_lsb_m2l_black_img(tmp_pat
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Bilevel", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 1, str(identify)
-@@ -3593,7 +3593,7 @@ def tiff_ccitt_nometa1_img(tmp_path_fact
-     }, str(identify)
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
-     assert identify[0]["image"].get("type") == "Bilevel", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("depth") == 1, str(identify)
-@@ -3677,7 +3677,7 @@ def tiff_ccitt_nometa2_img(tmp_path_fact
-     }, str(identify)
-     assert identify[0]["image"].get("units") == "PixelsPerInch", str(identify)
-     assert identify[0]["image"].get("type") == "Bilevel", str(identify)
--    assert identify[0]["image"].get("endianess") in ["Undefined", "LSB",], str(
-+    assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
-     assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
diff --git a/srcpkgs/img2pdf/patches/fix_color_profile_path.patch b/srcpkgs/img2pdf/patches/fix_color_profile_path.patch
index 84e69f13fb02..3fae35d81610 100644
--- a/srcpkgs/img2pdf/patches/fix_color_profile_path.patch
+++ b/srcpkgs/img2pdf/patches/fix_color_profile_path.patch
@@ -1,49 +1,35 @@
---- a/src/img2pdf.py
-+++ b/src/img2pdf.py
-@@ -3308,10 +3308,10 @@ RGB.""",
+--- src/img2pdf.py
++++ src/img2pdf.py
+@@ -3439,10 +3439,10 @@ RGB.""",
      outargs.add_argument(
          "--pdfa",
          nargs="?",
 -        const="/usr/share/color/icc/sRGB.icc",
 +        const="/usr/share/color/icc/colord/sRGB.icc",
          default=None,
-         help="Output a PDF/A-1b complient document. By default, this will "
+         help="Output a PDF/A-1b compliant document. By default, this will "
 -        "embed /usr/share/color/icc/sRGB.icc as the color profile.",
 +        "embed /usr/share/color/icc/colord/sRGB.icc as the color profile.",
      )
  
      sizeargs = parser.add_argument_group(
---- a/src/img2pdf_test.py
-+++ b/src/img2pdf_test.py
-@@ -312,7 +312,7 @@ def compare_ghostscript(tmpdir, img, pdf, gsdevice="png16m", exact=True, icc=Fal
-                     "AE",
+--- src/img2pdf_test.py
++++ src/img2pdf_test.py
+@@ -304,7 +304,7 @@ def compare(im1, im2, exact, icc, cmyk):
+     else:
+         iccargs = []
+         if icc:
+-            iccargs = ["-profile", "/usr/share/color/icc/sRGB.icc"]
++            iccargs = ["-profile", "/usr/share/color/icc/colord/sRGB.icc"]
+         psnr = subprocess.run(
+             ["compare"]
+             + iccargs
+@@ -424,7 +424,7 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True, icc=False):
+                     "PSNR",
                      "(",
                      "-profile",
 -                    "/usr/share/color/icc/ghostscript/srgb.icc",
-+                    "/usr/share/color/icc/colord/sRGS.icc",
++                    "/usr/share/color/icc/colord/sRGB.icc",
                      "-depth",
                      "8",
                      str(img),
-@@ -667,11 +667,11 @@ def tmp_icc_png(tmp_path_factory, alpha):
-         str(tmp_icc_png),
-         8,
-         2,
--        iccp="/usr/share/color/icc/sRGB.icc",
-+        iccp="/usr/share/color/icc/colord/sRGB.icc",
-     )
-     assert (
-         hashlib.md5(tmp_icc_png.read_bytes()).hexdigest()
--        == "d09865464626a87b4e7f398e1f914cca"
-+        == "b20cad5586ef280995bbf9afd30d2257"
-     )
-     yield tmp_icc_png
-     tmp_icc_png.unlink()
-@@ -4272,7 +4272,7 @@ def png_icc_pdf(tmp_path_factory, tmp_icc_png, request):
-         assert p.pages[0].Resources.XObject.Im0.ColorSpace[1].Alternate == "/DeviceRGB"
-         assert (
-             p.pages[0].Resources.XObject.Im0.ColorSpace[1].read_bytes()
--            == pathlib.Path("/usr/share/color/icc/sRGB.icc").read_bytes()
-+            == pathlib.Path("/usr/share/color/icc/colord/sRGB.icc").read_bytes()
-         )
-         assert p.pages[0].Resources.XObject.Im0.DecodeParms.BitsPerComponent == 8
-         assert p.pages[0].Resources.XObject.Im0.DecodeParms.Colors == 3
diff --git a/srcpkgs/img2pdf/patches/imdepth.patch b/srcpkgs/img2pdf/patches/imdepth.patch
deleted file mode 100644
index 489d34c8c582..000000000000
--- a/srcpkgs/img2pdf/patches/imdepth.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- a/src/img2pdf_test.py
-+++ b/src/img2pdf_test.py
-@@ -2439,7 +2439,8 @@ def tiff_rgb12_img(tmp_path_factory, tmp
-     assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
--    assert identify[0]["image"].get("depth") == 12, str(identify)
-+    assert identify[0]["image"].get("depth") == 16, str(identify)
-+    assert identify[0]["image"].get("baseDepth") == 12, str(identify)
-     assert identify[0]["image"].get("pageGeometry") == {
-         "width": 60,
-         "height": 60,
-@@ -2490,7 +2491,8 @@ def tiff_rgb14_img(tmp_path_factory, tmp
-     assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
-         identify
-     )  # FIXME: should be LSB
--    assert identify[0]["image"].get("depth") == 14, str(identify)
-+    assert identify[0]["image"].get("depth") == 16, str(identify)
-+    assert identify[0]["image"].get("baseDepth") == 14, str(identify)
-     assert identify[0]["image"].get("pageGeometry") == {
-         "width": 60,
-         "height": 60,
diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template
index cd2307f39f20..206bf3cbccc6 100644
--- a/srcpkgs/img2pdf/template
+++ b/srcpkgs/img2pdf/template
@@ -1,6 +1,6 @@
 # Template file for 'img2pdf'
 pkgname=img2pdf
-version=0.4.0
+version=0.4.1
 revision=1
 build_style=python3-module
 hostmakedepends="python3-pikepdf python3-setuptools"
@@ -11,5 +11,4 @@ maintainer="Philipp David <pd@3b.pm>"
 license="GPL-3.0-or-later"
 homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
 distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
-checksum=eaee690ab8403dd1a9cb4db10afee41dd3e6c7ed63bdace02a0121f9feadb0c9
-patch_args="-Np1"
+checksum=38a1229ca84b211d7782d1d65ad7251a9781bf24f6f6497c738c755fcfed5552

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: img2pdf: update to 0.4.1.
  2021-05-11  6:46 [PR PATCH] img2pdf: update to 0.4.1 oynqr
@ 2021-05-11 16:06 ` ericonr
  0 siblings, 0 replies; 2+ messages in thread
From: ericonr @ 2021-05-11 16:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1641 bytes --]

There's a merged pull request on the void-packages repository

img2pdf: update to 0.4.1.
https://github.com/void-linux/void-packages/pull/30795

Description:
This also drops most of the patches since they were either included upstream or made obsolete.
There was also a weird typo in fix_color_profile_path.patch at line 23, I wonder why I never caught that.

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-11 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11  6:46 [PR PATCH] img2pdf: update to 0.4.1 oynqr
2021-05-11 16:06 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).