From: Brian J. Murrell Date: Mon, 7 Mar 2011 22:37:44 +0000 (-0500) Subject: LU-120 the perfect storm X-Git-Tag: 2.0.59-llnl2-base~11 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2941269c348cfed9c22d02c45eb00687339adaaa;ds=sidebyside LU-120 the perfect storm There is a corner case in the debian patching/unpatching process where a patch converts the use of a given file to a file.in that is to be substed. The problem is that between the configure and the make debs, a file, which a debian patch wants to remove already exists (it was created by the configure) and dpkg-buildpackage's unpatch step fails becuase it wants to try to create a file which configure already created. Signed-off-by: Brian J. Murrell Change-Id: I185e496b82687d21ea3d744e939536c106b702f9 Reviewed-on: http://review.whamcloud.com/308 Tested-by: Hudson Reviewed-by: Robert Read Reviewed-by: Oleg Drokin --- diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index ab02af9..6f45678 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -161,6 +161,7 @@ debs: if [ -d .git ]; then \ build/extract_patches .; \ fi + cat debian/patches/* | sed -ne '/^diff --git/h' -e '/^deleted file/{G;s/^.* b\/\(.*\)/\1/p;}' | xargs rm -f; \ rm -rf debs dpkg-buildpackage -I.git -I\*.out[0-9]\* -I\*.swp || { \ rc=$${PIPESTATUS[0]}; \