0.50.2: configure should honour the DIFF variable for tests/selftest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intltool |
New
|
Undecided
|
Unassigned |
Bug Description
On some OS versions, diff(1) doesn't have '-u' by default, so we install the GNU coreutils version and gain it that way.
intltools 0.50.2 doesn't have an option to tune which diff to use, so errors are seen during the tests:
host:/var/
Running self test of the intltool module
1. Extract messages from simple desktop file: diff: illegal option -- u
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
diff [-bitw] [-C number] file1 file2
diff [-bitw] [-D string] file1 file2
diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name] directory1 directory2
[FAILED] (extract1.desktop)
2. Merge translations into a Bonobo UI style file: diff: illegal option -- u
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
diff [-bitw] [-C number] file1 file2
diff [-bitw] [-D string] file1 file2
diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name] directory1 directory2
[FAILED] (merge1.xml)
host:/var/
DIFF=/usr/
host:/var/
tests/selftest: check_command_
tests/selftest: check_command_
tests/selftest: check_command_
Since selftest is generated by selftest.pl.in --> selftest.pl --> selftest, the configure script can easily have a --use-diff= or test for DIFF env variable.
description: | updated |