diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh index f426cfb..f8e76c3 100755 --- a/debian/orig-tar.sh +++ b/debian/orig-tar.sh @@ -7,7 +7,15 @@ # clean up the upstream tarball unzip -x $3 cd $DIR +#Remove shipped jar + doc without sources rm -rf lib/ src/doc/pressRelease.pdf doc/pressRelease.pdf build-lib/ +mkdir build/ +# Upstream is using a patched version of bcel ... +# https://sourceforge.net/p/findbugs/support-requests/24/ +patch -p1 < ../debian/patches/bcel-package.diff +ant patchbcel +rm build/bcel-5.2-src.zip +patch -R -p1 < ../debian/patches/bcel-package.diff cd .. tar jcvf ../$TAR $DIR rm -rf $DIR $3 diff --git a/debian/patches/use-system-jar.patch b/debian/patches/use-system-jar.patch index f1e5bf1..23cad2e 100644 --- a/debian/patches/use-system-jar.patch +++ b/debian/patches/use-system-jar.patch @@ -1,16 +1,7 @@ -Index: findbugs/build.xml +Index: findbugs-2.0.2/build.xml =================================================================== ---- findbugs.orig/build.xml 2013-08-29 15:48:36.000000000 +0200 -+++ findbugs/build.xml 2013-08-29 17:02:00.000000000 +0200 -@@ -59,7 +59,7 @@ - - - -- -+ - - - +--- findbugs-2.0.2.orig/build.xml 2013-08-29 17:52:51.000000000 +0200 ++++ findbugs-2.0.2/build.xml 2013-08-29 17:54:27.000000000 +0200 @@ -67,8 +67,9 @@ @@ -23,15 +14,6 @@ -@@ -125,7 +126,7 @@ - - -- -+ - - - @@ -133,8 +134,8 @@ @@ -43,15 +25,6 @@ -@@ -346,7 +347,7 @@ - - - -- -+ - - - @@ -357,8 +358,8 @@ @@ -63,13 +36,20 @@ -@@ -994,14 +995,14 @@ - +@@ -512,7 +513,7 @@ + jvmargs="-ea -Xmx1200m" + projectName="Byte code Engineering Library (BCEL)" + outputFile="${sampleoutput.dir}/bcel-cloud.xml" > +- ++ + + --> + +@@ -995,13 +996,13 @@ -- + - -+ +