On Thu, 19 Jun 2008 20:05:31 -0400, Felipe Sateler wrote: > David Paleino wrote: > > > VERSION=$(shell parsechangelog | grep ^Version | awk -F": " '{print $$2}' | > > cut -d"-" -f1) REV=$(shell echo $(VERSION) | awk -F"~svn" '{print $$2}') > > GOS_TMP=$(CURDIR)/get-orig-source-tmp > > AFAIK, get-orig-source shouldn't rely on other files to do it's job. I have > always hardcoded the version or date to make the checkout from, to ensure that > only debian/rules is used, and that it can be used from anywhere > (eg, ../src/package/debian/rules get-orig-source). Uhm... that was meant to be "one code to fit them all" -- I believe I'll hardcode those things as well, thanks. > > > > [..] > > > > get-orig-source: > > rm -rf $(GOS_TMP) && mkdir $(GOS_TMP) > > svn co -r $(REV) svn://anonsvn.mono-project.com/source/trunk/Mono.Nat > > $(GOS_TMP)/mono-nat-sharp-$(VERSION) > > You can use svn export and skip the next instruction. > > > find $(GOS_TMP)/mono-nat-sharp-$(VERSION) > > -name ".svn" -type d | xargs rm -rf Doh :) I didn't think to svn export, thanks for the hint. > > cd $(GOS_TMP) && tar zcf > > mono-nat-sharp_$(VERSION).orig.tar.gz mono-nat-sharp-$(VERSION)/ mv > > $(GOS_TMP)/mono-nat-sharp_$(VERSION).orig.tar.gz $(CURDIR)/../ rm -rf > > $(GOS_TMP) echo "The original source tarball is located at $(CURDIR)/../ ." > > Policy 4.9 says it should be left at the current directory. Ok, I just missed that part, thanks. > > Now, the fact is that the resulting tarball has very different md5sums at > > each run -- and I found no way to have the same exact md5sum of the > > .orig.tar.gz that would be uploaded to Debian: > > > > [..] > > > > I thought that this could be related to timestamps -- but I found no option > > in `man tar` to remove timestamps from archived files (I thought that, > > removing timestamps, the files would have been all the same). > > I can also confirm that the files in the archives are always the same > > (checked with `tar -tf` and diffing the lists). > > > > What can I do here? > > AFAIK the problem is not tar, but gzip. If I read correctly man gzip, your > solution would be to use tar first, and then gzip -9n. -n... I'll try that, thanks :) David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
Attachment:
signature.asc
Description: PGP signature