[evince/wip/gpoo/build-fix-dvi-dependency] build: Ony fail to build DVI by missing libkpathsea




commit 95603971809d1a440722df3ae9a1970b52258326
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Wed Mar 2 01:08:25 2022 -0300

    build: Ony fail to build DVI by missing libkpathsea
    
    libspectre usage in the dvi backend is used conditionally on
    a cairo device. Therefore, the lack of headers for libspectre
    should not disable the support for DVI files.

 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index bd7591ba8..f5ec697de 100644
--- a/meson.build
+++ b/meson.build
@@ -372,7 +372,7 @@ endif
 
 # *** DVI ***
 kpathsea_dep = cc.find_library('kpathsea', required: get_option('dvi'))
-enable_dvi = libspectre_dep.found() and kpathsea_dep.found() and cc.has_function('kpse_init_prog', 
dependencies: kpathsea_dep)
+enable_dvi = kpathsea_dep.found() and cc.has_function('kpse_init_prog', dependencies: kpathsea_dep)
 if enable_dvi
   config_h.set10('STDC_HEADERS', true)
 
@@ -395,7 +395,7 @@ if enable_dvi
   backends += {'dvi': mime_types_list.get('dvi')}
   evince_mime_types += mime_types_list.get('dvi')
 elif get_option('dvi').auto()
-  warning('Dvi support is disabled since kpathsea library or libspectre are not found. Check your 
installation.')
+  warning('Dvi support is disabled since kpathsea library was not found. Check your installation.')
 endif
 
 # *** PDF ***


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]