Package: darcs-buildpackage Version: 0.5.8 Severity: normal My directory layout for packaging is Packages/ Io/ io/ io.upstream/ io_0+20061017-1.diff.gz io_0+20061017-1.dsc ... Darcs-buildpackages/ darcs-buildpackages/ .... Remind/ ... ...
It would be a big mess if I had to keep all my packages in one directory, with all the resulting .debs and .diffs. However, the docs don't explain how to avoid the absolute path. I tried a relative path in ~/.darcs-buildpackage: ================================================================= #upstreamrepo = /home/kbk/Packages/Io/%(package)s.upstream #debianrepo = /home/kbk/Packages/Io/%(package)s upstreamrepo= ./%(package)s.upstream debianrepo= ./%(package)s ================================================================= However, it seems that dbp-importorig creates the new repo in the temporary directory, and then neatly deletes all that on exit! See below. The docs say "More sophisticated configurations are possible. (FIXME: write about them)" ================================================================= After going through all this, it occurred to me that the following would work, and it did. But it's somewhat surprising in effect, since the repo will be created in the cwd, not one level above. ================================================================== trader:IoFE$ cat ~/.darcs-buildpackage #upstreamrepo = /home/kbk/Packages/Io/%(package)s.upstream #debianrepo = /home/kbk/Packages/Io/%(package)s upstreamrepo= ../%(package)s.upstream debianrepo= ../%(package)s ================================================================= However, I find that darcs-buildpackage won't work correctly with this (or with one dot), though it works fine with the absolute paths commented out above. How does one use the darcs-buildpackage system with the directory structure outlined above? Right now, it seems that I have to modify .darcs-buildpackage every time I switch packages, or at least set an environment variable to call out the 'Io' etc. directory. ================================================================= (I added a line to darcs_load_dirs to print the cwd. It would be nice if dbp-importorig passed the verbose switch on to darcs_load_dirs, I hacked it on again.) trader:IoFE$ ls IoFE-2006-10-05.tgz trader:IoFE$ dbp-importorig -v IoFE-2006-10-05.tgz iofe 20061005 Running: tar ["-zxSpf","/home/kbk/Packages/IoFE/IoFE-2006-10-05.tgz"] Running: darcs ["initialize"] darcs ["changes","--patches=^TAG"] Running: darcs_load_dirs ["--wc=./iofe.upstream","--summary=Import upstream iofe version 20061005","/home/kbk/Packages/IoFE/,,dbp-importorigtargz-175VCt/IoFE-2006-10-05"] TLACMD: darcs *** cwd: /home/kbk/Packages/IoFE/,,dbp-importorigtargz-175VCt Scanning upstream tree... Scanning working copy tree... Calculating changes... *** Processing changes. Deleting 0 files Copying upstream directory to working copy... Running: tar ['-cSpf', '-', '.'] Running: tar ['-xSpf', '-'] Adding 14 files Adding LICENSE Adding Makefile Adding README Adding bin/ Running: darcs ['add', '--case-ok', 'bin'] Adding contrib/ Running: darcs ['add', '--case-ok', 'contrib'] Adding contrib/Completion.io Adding include/ Running: darcs ['add', '--case-ok', 'include'] Adding include/IoEditLine.h Adding include/IofeCompletion.h Adding src/ Running: darcs ['add', '--case-ok', 'src'] Adding src/IoCompletionInit.c Adding src/IoEditLine.c Adding src/IofeCompletion.c Adding src/iofe.c LOGTEXT Imported IoFE-2006-10-05 into Darcs repository Committing changes Running: darcs ['record', '-l', '-a', '-m', 'Import upstream iofe version 20061005', '--logfile', ',,darcslog', '--delete-logfile'] Finished recording patch 'Import upstream iofe version 20061005' Running: darcs ["tag","-m","UPSTREAM_iofe_20061005"] Finished tagging patch 'TAG UPSTREAM_iofe_20061005' trader:IoFE$ ls IoFE-2006-10-05.tgz -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.21-kbk Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages darcs-buildpackage depends on: ii darcs 1.0.8-1 an advanced revision control syste ii darcs-load-dirs 1.0.31b Import upstream archives into darc ii devscripts 2.9.21 Scripts to make the life of a Debi ii dpkg-dev 1.13.22 package building tools for Debian ii libc6 2.3.6.ds1-5 GNU C Library: Shared libraries ii libgmp3c2 2:4.2.1+dfsg-4 Multiprecision arithmetic library darcs-buildpackage recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]