fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


 src/makealias |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9ffa2fa7efa7815b8808e744c3601631fe1810d7
Author: Ryan Schmidt <freedesktop-2008@xxxxxxxxxxxxxx>
Date:   Sat May 3 19:49:07 2008 -0700

    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.

diff --git a/src/makealias b/src/makealias
index 1f57742..fd9c3fd 100755
--- a/src/makealias
+++ b/src/makealias
@@ -17,7 +17,7 @@ while read name; do
 		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
Fontconfig mailing list

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux