Stop using locate in autogen.sh (#702040)
If the gnome-doc-utils package isn't installed and you try to compile GParted from git it will fail with this: $ ./autogen.sh /usr/bin/gnome-autogen.sh Cannot find file: gnome-doc-utils.make You need to install gnome-doc-utils After installing the gnome-doc-utils package the same error will be reported again unless you also update the locate database. Instead query the full path to the gnome-doc-utils.make file from the gnome-doc-utils' pkg-config metadata. Closes Bug #702040 - very strange gnome-doc-utils check in gparted
This commit is contained in:
parent
4c9c70d697
commit
f77d4e65a9
|
@ -27,8 +27,9 @@ fi
|
|||
|
||||
# Check for GNOME-DOC-UTILS
|
||||
GDUMAKE="gnome-doc-utils.make"
|
||||
GDUMAKEFULLPATH=`locate $GDUMAKE | grep -m 1 "gnome-doc-utils/"`
|
||||
if test "x${GDUMAKEFULLPATH}" = "x" ; then
|
||||
datadir=`pkg-config --variable=datadir gnome-doc-utils`
|
||||
GDUMAKEFULLPATH="$datadir/gnome-doc-utils/$GDUMAKE"
|
||||
if test "X$datadir" = 'X' || ! test -f "${GDUMAKEFULLPATH}" ; then
|
||||
echo "Cannot find file: $GDUMAKE"
|
||||
echo "You need to install gnome-doc-utils"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue