<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">PS: This on macOS Sonoma 14.7<div><br></div><div><span style="caret-color: rgb(19, 19, 19); color: rgb(19, 19, 19); font-family: Monaco; background-color: rgb(255, 255, 255);">patch 2.0-12u11-Apple</span><br><div><span style="caret-color: rgb(19, 19, 19); color: rgb(19, 19, 19); font-family: Monaco; background-color: rgb(255, 255, 255);">-rwxr-xr-x 1 root wheel 220560 Sep 5 04:17 /usr/bin/patch</span></div><div><br id="lineBreakAtBeginningOfMessage"><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Marius</div><div>--</div><div>Marius Schamschula</div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div>On Sep 22, 2024, at 8:34 PM, Marius Schamschula <lists@schamschula.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>I’ve been trying to apply a trivial patch to enable libjpeg-turbo (v3) to update py-imagecodecs to 2024.9.22.</div><div><br></div><div>I generated the patch using the standard procedure in the MacPorts Guide.</div><div><br></div><div>The patch:</div><div><br></div><div><div>--- setup.py.orig<span class="Apple-tab-span" style="white-space:pre"> </span>2024-09-21 00:14:09</div><div>+++ setup.py<span class="Apple-tab-span" style="white-space:pre"> </span>2024-09-22 20:10:24</div><div>@@ -594,7 +594,7 @@</div><div> del EXTENSIONS['zlibng']</div><div> </div><div> # uncomment if building with libjpeg-turbo 3</div><div>- # EXTENSIONS['jpeg8']['sources'] = []</div><div>+ EXTENSIONS['jpeg8']['sources'] = []</div><div> </div><div> EXTENSIONS['szip']['library_dirs'] = ['%PREFIX%/lib/libaec/lib']</div><div> EXTENSIONS['szip']['include_dirs'] = ['%PREFIX%/lib/libaec/include’]</div></div><div><br></div><div>When I run port -d patch py312-<span style="caret-color: rgb(0, 0, 0);">imagecodecs, </span><span style="caret-color: rgb(0, 0, 0);">I get</span></div><div><br></div><div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">Executing: cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_python_py-imagecodecs/py312-imagecodecs/work/imagecodecs-2024.9.22" && /usr/bin/patch -t -N -p0 < '/Users/marius/Development/MacPorts/ports/python/py-imagecodecs/files/patch-setup.py.diff'</span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">DEBUG: system: cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_python_py-imagecodecs/py312-imagecodecs/work/imagecodecs-2024.9.22" && /usr/bin/patch -t -N -p0 < '/Users/marius/Development/MacPorts/ports/python/py-imagecodecs/files/patch-setup.py.diff'</span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">patching file setup.py</span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">1 out of 1 hunks failed--saving rejects to setup.py.rej</span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="font-variant-ligatures: no-common-ligatures">Command failed: cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_python_py-imagecodecs/py312-imagecodecs/work/imagecodecs-2024.9.22" && /usr/bin/patch -t -N -p0 < '/Users/marius/Development/MacPorts/ports/python/py-imagecodecs/files/patch-setup.py.diff'</span></div></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">With the following rejects file</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures"><div>@@ -594,7 +594,7 @@</div><div> del EXTENSIONS['zlibng']</div><div> </div><div> # uncomment if building with libjpeg-turbo 3</div><div>- # EXTENSIONS['jpeg8']['sources'] = []</div><div>+ EXTENSIONS['jpeg8']['sources'] = []</div><div> </div><div> EXTENSIONS['szip']['library_dirs'] = ['%PREFIX%/lib/libaec/lib']</div><div> EXTENSIONS['szip']['include_dirs'] = ['%PREFIX%/lib/libaec/include']</div></span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div>Patches in other ports seem to apply normally.</div><br><div>
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-alternates: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Marius</div><div>--</div><div>Marius Schamschula</div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></div></blockquote></div><br></div></div></div><br><br><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Marius</div><div>--</div><div>Marius Schamschula</div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>