Explorar o código

[photoview] Fix building the api via linking blas

Colin Powell %!s(int64=3) %!d(string=hai) anos
pai
achega
119c699754
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      ansible/roles/photoview/tasks/main.yml

+ 9 - 0
ansible/roles/photoview/tasks/main.yml

@@ -50,6 +50,10 @@
   shell: "ln -s /usr/local/lib/libcblas* /usr/lib/"
   ignore_errors: true
 
+- name: Link openblas libraries
+  shell: "ln -s /usr/local/lib/libblas* /usr/lib/"
+  ignore_errors: true
+
 - name: Photoview source @ master
   git:
     repo: "https://github.com/photoview/photoview.git"
@@ -57,6 +61,11 @@
     update: yes
     force: yes
 
+- name: Hack libheif to work with FreeBSD
+  shell:
+    cmd: 'sed -i -e "/suberrorwrongtileimagepixeldepth = C.heif_suberror_Wrong_tile_image_pixel_depth/d"  /root/go/pkg/mod/github.com/strukturag/libheif@v1.12.0/go/heif/heif.go'
+    warn: false
+
 - name: API env file installed
   template:
     src: api.env.j2