lilohuang/PyTurboJPEG

lib paths missing on NetBSD

gdt opened this issue · 3 comments

gdt commented

The current situation is that the pkgsrc package libjpeg-turbo-2.1.2 installs

-rw-r--r--  1 root  wheel  427360 Dec 25 16:28 /usr/pkg/lib/libturbojpeg.a
lrwxr-xr-x  1 root  wheel      17 Dec 25 16:31 /usr/pkg/lib/libturbojpeg.so -> libturbojpeg.so.0
lrwxr-xr-x  1 root  wheel      21 Dec 25 16:31 /usr/pkg/lib/libturbojpeg.so.0 -> libturbojpeg.so.0.2.0
-rwxr-xr-x  1 root  wheel  345916 Dec 25 16:25 /usr/pkg/lib/libturbojpeg.so.0.2.0

so it should be sufficient to copy the FreeBSD block with /usr/local changed to /usr/pkg.

gdt commented
--- turbojpeg.py~       2021-12-31 12:59:28.933307336 -0500
+++ turbojpeg.py        2021-12-31 13:47:17.385653576 -0500
@@ -46,6 +46,10 @@
         '/usr/local/lib/libturbojpeg.so.0',
         '/usr/local/lib/libturbojpeg.so'
     ],
+    'NetBSD': [
+        '/usr/pkg/lib/libturbojpeg.so.0',
+        '/usr/pkg/lib/libturbojpeg.so'
+    ],
     'Windows': ['C:/libjpeg-turbo64/bin/turbojpeg.dll']
 }
 

has been tested to work, by hand-patching within a home assistant venv

@gdt, Thanks for reporting this issue. I will fix this issue soon.

gdt commented

Thanks for the quick fix/merge/version!