summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch')
-rw-r--r--meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch b/meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch
new file mode 100644
index 0000000000..180d4a3178
--- /dev/null
+++ b/meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch
@@ -0,0 +1,37 @@
+--- man-1.6e-ro_usr/src/makewhatis.sh 2007-05-18 11:41:50.000000000 -0300
++++ man-1.6e/src/makewhatis.sh 2007-05-18 13:27:16.000000000 -0300
+@@ -162,10 +162,15 @@
+ fi
+ catpath=`echo ${catpath} | tr : ' '`
+
++#WHATIS_DIR=$DESTDIR/var/cache/man/`echo $here|sed -e 's!.*/man/!!g'`
++WHATIS_DIR=$DESTDIR/var/cache/man/$LANG
++[[ -d $WHATIS_DIR ]] || mkdir -p $WHATIS_DIR/
++
+ # first truncate all the whatis files that will be created new,
+ # then only update - we might visit the same directory twice
+ if [ x$update = x ]; then
+- cp /dev/null /var/cache/man/whatis
++ mkdir -p $WHATIS_DIR/
++ /bin/echo -n > $WHATIS_DIR/whatis
+ fi
+
+ for pages in man cat
+@@ -395,13 +400,13 @@
+
+ cd $here
+
+- if [ -f /var/cache/man/whatis ]
++ if [ -f $WHATIS_DIR/whatis ]
+ then
+- cat /var/cache/man/whatis >> $TMPFILE
++ cat $WHATIS_DIR/whatis >> $TMPFILE
+ fi
+- tr -s '\n' < $TMPFILE | sort -u > /var/cache/man/whatis
++ tr -s '\n' < $TMPFILE | sort -u > $WHATIS_DIR/whatis
+
+- chmod 644 /var/cache/man/whatis
++ chmod 644 $WHATIS_DIR/whatis
+ rm $TMPFILE
+ done
+ done