diff options
author | Ryan Schmidt <freedesktop-2008@ryandesign.com> | 2008-05-03 19:49:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-05-03 19:49:07 -0700 |
commit | 9ffa2fa7efa7815b8808e744c3601631fe1810d7 (patch) | |
tree | 11cf95eb659d8c5d444e45182596feeb909a68ae /src | |
parent | 6d65081e35fc1ffae1212f173853b0693645192e (diff) |
fontconfig build fails if "head" is missing or unusable (bug 14304)
If the /usr/bin/head program is missing or unusable, or if an unusable head
program is listed first in the PATH, fontconfig fails to build
using "sed -n 1p" instead of "head -1" would be a suitable workaround.
Diffstat (limited to 'src')
-rwxr-xr-x | src/makealias | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makealias b/src/makealias index 1f57742d..fd9c3fd1 100755 --- a/src/makealias +++ b/src/makealias @@ -17,7 +17,7 @@ while read name; do hattr='__attribute((visibility("hidden")))' echo "extern __typeof ($name) $alias $hattr;" >> $HEAD echo "#define $name $alias" >> $HEAD - grep -l '^'$name'[ (]' "$SRCDIR"/*.c | head -1 | sed -e 's/^.*\/\([^.]*\)\.c/#ifdef __\1__/' >> $TAIL + grep -l '^'$name'[ (]' "$SRCDIR"/*.c | sed -n 1p | sed -e 's/^.*\/\([^.]*\)\.c/#ifdef __\1__/' >> $TAIL echo "#undef $name" >> $TAIL cattr='__attribute((alias("'$alias'"), visibility("default")))' echo "extern __typeof ($name) $name $cattr;" >> $TAIL |