- updated to 2.04
[packages/grub2.git] / grub2-fonts_path.patch
1 diff -ur grub-2.04.orig/configure.ac grub-2.04/configure.ac
2 --- grub-2.04.orig/configure.ac 2019-08-18 15:50:10.737000000 +0200
3 +++ grub-2.04/configure.ac      2019-08-18 15:50:22.087000000 +0200
4 @@ -1649,7 +1649,7 @@
5  
6  if test x"$starfield_excuse" = x; then
7     for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
8 -     for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/dejavu /usr/share/fonts/truetype; do
9 +     for dir in . /usr/share/fonts/TTF /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/dejavu /usr/share/fonts/truetype; do
10          if test -f "$dir/DejaVuSans.$ext"; then
11            DJVU_FONT_SOURCE="$dir/DejaVuSans.$ext"
12            break 2
13 @@ -1671,7 +1671,7 @@
14  FONT_SOURCE=
15  
16  for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
17 -  for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont /usr/share/fonts/uni /usr/share/fonts/truetype/unifont /usr/share/fonts/misc; do
18 +  for dir in . /usr/share/fonts/TTF /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont /usr/share/fonts/uni /usr/share/fonts/truetype/unifont /usr/share/fonts/misc; do
19      if test -f "$dir/unifont.$ext"; then
20        md5="$(md5sum "$dir/unifont.$ext"|awk '{ print $1; }')"
21        # PCF and BDF from version 6.3 isn't hanled properly by libfreetype.