all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob f27f32f30ba71f6dba97ac9bd0102a6d0ad1a6a3 1133 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
The way the configure script determines the version of libwmf is by temporarily
making dots separator characters, but since the file name of the program which
returns the version contains dots in Guix (the version in the store entry name),
doing it this way will always fail.

This is a simple guix-specific fix for the problem.

--- a/configure	2010-06-13 23:17:37.000000000 +0200
+++ b/configure	2014-09-08 17:31:52.102371800 +0200
@@ -21140,13 +21140,11 @@
 $as_echo "$as_me: WARNING: wmf plugin: program libwmf-config not found in path" >&2;}
 		fi
 	else
-		IFS_old="$IFS"
-		IFS='.'
-		set -- `$libwmfconfig --version`
-		libwmf_major_found="${1}"
-		libwmf_minor_found="${2}"
-		libwmf_micro_found="${3}"
-		IFS="$IFS_old"
+		libwmf_fullver_found=`$libwmfconfig --version`
+		libwmf_major_found=$(echo $libwmf_fullver_found |  cut -d . -f 1)
+		libwmf_minor_found=$(echo $libwmf_fullver_found |  cut -d . -f 2)
+		libwmf_micro_found=$(echo $libwmf_fullver_found |  cut -d . -f 3)
+
 		if test "$libwmf_major_found" -gt "$libwmf_major_req"; then
 			wmf_deps="yes"
 		elif test "$libwmf_major_found" -eq "$libwmf_major_req" &&

debug log:

solving f27f32f30 ...
found f27f32f30 in https://git.savannah.gnu.org/cgit/guix.git

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.