- 0 files changed
+ arch/um/kernel/mem.c | 15 +++++++++++++++
+ 1 files changed, 15 insertions(+)
---- linux-2.4.18-17.8.0/arch/um/kernel/mem.c~uml_check_get_page 2002-12-06 14:52:30.000000000 -0800
-+++ linux-2.4.18-17.8.0-zab/arch/um/kernel/mem.c 2002-12-06 14:52:30.000000000 -0800
-@@ -529,6 +529,21 @@ struct page *pte_mem_map(pte_t pte)
+--- linux-2.4.20/arch/um/kernel/mem.c~uml_check_get_page 2003-04-08 23:34:50.000000000 -0600
++++ linux-2.4.20-braam/arch/um/kernel/mem.c 2003-04-08 23:34:50.000000000 -0600
+@@ -712,6 +712,21 @@ struct page *pte_mem_map(pte_t pte)
return(phys_mem_map(pte_val(pte)));
}
- 0 files changed
+ arch/um/kernel/mem.c | 8 ++++++--
+ 1 files changed, 6 insertions(+), 2 deletions(-)
---- linux-2.4.18-17.8.0/arch/um/kernel/mem.c~uml_no_panic 2002-12-06 14:52:30.000000000 -0800
-+++ linux-2.4.18-17.8.0-zab/arch/um/kernel/mem.c 2002-12-06 14:52:30.000000000 -0800
-@@ -559,7 +559,9 @@ struct mem_region *page_region(struct pa
+--- linux-2.4.20/arch/um/kernel/mem.c~uml_no_panic 2003-04-08 23:34:57.000000000 -0600
++++ linux-2.4.20-braam/arch/um/kernel/mem.c 2003-04-08 23:34:57.000000000 -0600
+@@ -742,7 +742,9 @@ struct mem_region *page_region(struct pa
return(region);
}
}
return(NULL);
}
-@@ -581,7 +583,9 @@ unsigned long region_pa(void *virt)
+@@ -814,7 +816,9 @@ extern unsigned long region_pa(void *vir
(addr <= region->start + region->len))
return(mk_phys(addr - region->start, i));
}
arch/um/kernel/mem.c
-arch/um/kernel/mem.c.uml-fixes
include/asm-um/pgtable.h
-include/asm-um/pgtable.h.orig
arch/um/kernel/mem.c
-arch/um/kernel/mem.c.uml-fixes
+++ /dev/null
-fs/dcache.c
-fs/namei.c
-fs/nfsd/vfs.c
-fs/open.c
-fs/stat.c
-include/linux/dcache.h
-include/linux/fs.h
-kernel/ksyms.c
[ $ABSINO != $REVINO ] && die "inodes differ, my reverse path is bad?"
-echo export PATCHSCRIPTS=$REVERSE
+echo export PATCHSCRIPTS_LIBDIR=$REVERSE
cd $TREE
ln -sf $REVERSE/series/$SERIES series
echo "Check your install, or go to the right directory"
exit 1
}
-
-
do_apply()
{
FILES=$(cat $P/pc/$PATCH_NAME.pc)
echo "$PATCH_NAME" is already applied
exit 1
fi
-
+
if [ $opt_force != 0 ]
then
echo FORCING PATCH
if [ $opt_force != 0 ] || can_apply $P/patches/"$PATCH_NAME".patch
then
+ check_pc_match $P/patches/"$PATCH_NAME".patch $P/pc/"$PATCH_NAME".pc
do_apply $P/patches/"$PATCH_NAME".patch
add_to_db "$PATCH_NAME"
echo applied $PATCH_NAME
# Otherwise use "."
#
-if [ x$PATCHSCRIPTS != x ]
+if [ x$PATCHSCRIPTS_LIBDIR != x ]
then
- P=$PATCHSCRIPTS
+ P=$PATCHSCRIPTS_LIBDIR
elif [ -d ./patch-scripts ]
then
P=./patch-scripts
return 1
fi
}
-
+check_pc_match()
+{
+ if [ -f /usr/bin/lsdiff ]; then
+ tmpfile=$(mktemp /tmp/p_XXXXXX) || exit 1
+ lsdiff --strip=1 $1 > $tmpfile
+ diff $2 $tmpfile > /dev/null
+ if [ $? != 0 ]; then
+ echo " $1 do not match with $2 "
+ echo " $2 will be changed to match $2"
+ cat $tmpfile > $P/pc/$PATCH_NAME.pc
+ fi
+ rm -rf $tmpfile
+ fi
+}
can_apply()
{
if patch -p1 --dry-run -i "$1" -f
if [ -e $file ]
then
- cp $file "$file"~"$patch"
+ cp -p $file "$file"~"$patch"
else
echo "file $file appears to be newly added"
fi
then
if [ $STOP_AT == $(toppatch) ]
then
+ sum-series applied-patch
exit 0
fi
fi
done
+sum-series applied-patch
then
if [ $STOP_AT == $(toppatch) ]
then
+ sum-series applied-patch
exit 0
fi
fi
done
+sum-series applied-patch
TOP_PATCH=$(top_patch)
mpatch $* $(top_patch)
+sum-series applied-patch
echo "Refreshed $TOP_PATCH"
exit 1
}
+# do_remove()
+# {
+# if patch -R -p1 -s -i $P/patches/"$1".patch
+# then
+# true
+# else
+# echo SOMETHING WENT WRONG
+# exit 1
+# fi
+# }
+
do_remove()
{
- if patch -R -p1 -s -i $P/patches/"$1".patch
- then
- true
- else
- echo SOMETHING WENT WRONG
- exit 1
- fi
+ FILES=$(cat $P/pc/$1.pc)
+ for file in $FILES ; do
+ if [ -f "$file"~"$1" ]; then
+ mv -f "$file"~"$1" "$file"
+ else
+ rm -f "$file"
+ fi
+ done
+ true
}
kill_old_ones()
if is_applied "$PATCH_NAME"
then
- if can_remove "$PATCH_NAME"
- then
+# if can_remove "$PATCH_NAME"
+# then
do_remove "$PATCH_NAME"
kill_old_ones "$PATCH_NAME"
remove_from_db "$PATCH_NAME"
- else
- echo "$PATCH_NAME" does not remove cleanly
- exit 1
- fi
+# else
+# echo "$PATCH_NAME" does not remove cleanly
+# exit 1
+# fi
else
echo "$PATCH_NAME" is not applied
exit 1
+++ /dev/null
-DESC
-(undescribed patch)
-EDESC