aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/quilt/quilt-0.48
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-07-09 13:13:43 -0700
committerKhem Raj <raj.khem@gmail.com>2010-07-10 12:20:56 -0700
commit1f373112f4f957e70f8346e152d321dba76bdc2b (patch)
treea3e6d0bd6a92ca69f65b4cf84b3b38e9c56e0008 /recipes/quilt/quilt-0.48
parentfd049a8b9904348456b26ffa7ff25d834c477c6b (diff)
downloadopenembedded-1f373112f4f957e70f8346e152d321dba76bdc2b.tar.gz
quilt: Add option QUILT_NO_RM_SYMLINKS so follow symlinks with quilt refresh
* OE now creates symlinks into metadata. This patch allows quilt to follow the symlinks so when a patch is refreshed then the result happens in the metadata location. * Creating a new patch will still happen in local patches directory unless one uses path into metadata. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/quilt/quilt-0.48')
-rw-r--r--recipes/quilt/quilt-0.48/no_rm_symlinks.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes/quilt/quilt-0.48/no_rm_symlinks.patch b/recipes/quilt/quilt-0.48/no_rm_symlinks.patch
new file mode 100644
index 0000000000..6c8415acad
--- /dev/null
+++ b/recipes/quilt/quilt-0.48/no_rm_symlinks.patch
@@ -0,0 +1,34 @@
+#If you're so lucky as to be using a Windriver Linux product, and your
+#patch files are actually symlinks, this option set to yes will allow
+#the symlink to be preserved (resulting in the file the link is pointing to
+#to be refreshed).
+
+--- quilt-0.48.orig/quilt/scripts/patchfns.in.org 2010-07-09 11:35:07.992300000 -0700
++++ quilt-0.48/quilt/scripts/patchfns.in 2010-07-09 11:41:01.312300001 -0700
+@@ -783,7 +783,13 @@ cat_to_new_file()
+ {
+ local filename="$1"
+
+- [ -e "$filename" ] && rm -f "$filename"
++ if [ -e "$filename" ]
++ then
++ if [ "$QUILT_NO_RM_SYMLINKS" != "yes" ]
++ then
++ rm -f "$filename"
++ fi
++ fi
+
+ case "$filename" in
+ *.gz)
+--- quilt-0.48.orig/quilt.quiltrc.org 2010-07-09 11:45:07.582300001 -0700
++++ quilt-0.48/quilt.quiltrc 2010-07-09 11:46:35.222300001 -0700
+@@ -29,3 +29,9 @@ QUILT_PATCHES_PREFIX=yes
+ # Use a specific editor for quilt (defaults to the value of $EDITOR before
+ # sourcing this configuration file, or vi if $EDITOR wasn't set).
+ #EDITOR=nedit
++
++#If patch files are actually symlinks, this option set to yes will allow
++#the symlink to be preserved (resulting in the file the link is pointing to
++#to be refreshed).
++QUILT_NO_RM_SYMLINKS=yes
++