Thanks for this work!  i was able to rebuild 4.0b8-1 from your diff
with something like the following:

# fetch original sources and patch them:
wget 'http://hea-www.harvard.edu/saord/download/ds9/source/ds9.4.0b8.tar.gz'
wget 
'http://bugs.debian.org/cgi-bin/bugreport.cgi/saods9_4.0b8-1.diff.gz?bug=357123;msg=10;att=1'
 -O saods9_4.0b8-1.diff.gz
tar xzf ds9.4.0b8.tar.gz
cd saods9/
zcat ../saods9_4.0b8-1.diff.gz | patch -p1

# repack the dfsg tarball:
sh ./debian/repack
mv newsource/saods9_4.0b8.orig.tar.gz ../

# cleanup and rebuild from the dfsg tarball:
cd ..
rm -rf saods9
tar xvzf saods9_4.0b8.orig.tar.gz
cd saods9-4.0b8.orig
zcat ../saods9_4.0b8-1.diff.gz | patch -p1 
debuild -uc -us


sadly, 4.0b9 is now out upstream, so this is out-of-date again...  Any
chance of packaging for the new new version?  Just running repack on
4.0b9 yielded a couple (minor) errors:

find: ./saods9/funtools-1.3.0b9/: No such file or directory

  and

cp: cannot stat `./tcl8.4.9/library/auto.tcl': No such file or directory

(presumably because upstream has moved to funtools-1.3.0b21 and tcl8.4.12)

However, i haven't tried rebuilding from this 4.0b9 setup yet (i don't
understand debian/repack well enough to be confident i'm doing the
right thing).


One last thing: it occurred to me that might be nice to check the
integrity of the downloaded tarball against an expected source.  The
following diffs (patch with -p2) should enable a simple integrity
check with sha1sum:

diff -ruN 4.0b8/saods9-4.0b8.orig/debian/sha1sums/4.0b8 
4.0b9/saods9-4.0b9/debian/sha1sums/4.0b8
--- 4.0b8/saods9-4.0b8.orig/debian/sha1sums/4.0b8       1969-12-31 
19:00:00.000000000 -0500
+++ 4.0b9/saods9-4.0b9/debian/sha1sums/4.0b8    2006-05-10 15:26:50.426016768 
-0400
@@ -0,0 +1 @@
+dc05eaab2f149eb43219132013ae9d7767ec58a4  ds9.4.0b8.tar.gz
diff -ruN 4.0b8/saods9-4.0b8.orig/debian/sha1sums/4.0b9 
4.0b9/saods9-4.0b9/debian/sha1sums/4.0b9
--- 4.0b8/saods9-4.0b8.orig/debian/sha1sums/4.0b9       1969-12-31 
19:00:00.000000000 -0500
+++ 4.0b9/saods9-4.0b9/debian/sha1sums/4.0b9    2006-05-10 15:26:51.287902740 
-0400
@@ -0,0 +1 @@
+eca4913b24e64c28089b4e0ac5486e2db4d766eb  ds9.4.0b9.tar.gz
diff -ruN 4.0b8/saods9-4.0b8.orig/debian/repack 4.0b9/saods9-4.0b9/debian/repack
--- 4.0b8/saods9-4.0b8.orig/debian/repack       2006-05-10 15:20:38.281944856 
-0400
+++ 4.0b9/saods9-4.0b9/debian/repack    2006-05-10 15:27:15.251732254 -0400
@@ -8,7 +8,7 @@
 
 set -e;
 
-ver="4.0b8";
+ver="4.0b9";
 tarball="http://hea-www.harvard.edu/saord/download/ds9/source/ds9.$ver.tar.gz";;
 base=$(basename "$tarball");
 orig="saods9_$ver.orig.tar.gz";
@@ -24,6 +24,11 @@
        wget "$tarball";
 fi;
 
+if ( ! sha1sum --status -c ../debian/sha1sums/$ver ); then
+    echo "the upstream tarball does not match the expected checksum!"
+    exit 1
+fi
+
 tar xzf "$base";
 find ./saods9/ -name config.status |xargs rm -f;
 find ./saods9/ -name conf.h |xargs rm -f;


Of course, this integrity check doesn't account for the integrity of
anything drawn from starlink CVS...

Thanks for packaging this tool for debian!

        --dkg


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to