On Thu, May 17, 2012 at 12:35:27PM +0200, Gergely Nagy wrote: > Package: dh-autoreconf > Version: 6 > Severity: wishlist > > I'm working on a package that has all the sources in a subdirectory, so > I'm using the --sourcedirectory option recognised by the dh_auto_* tools > to make them play nice, and put their files in the current directory, > but otherwise work in the specified dir. > > I ran into a problem with dh-autoreconf, however, because I needed to > run an autogen.sh script within the source tree, but dh-autoreconf does > not respect the --sourecirectory option, sadly. I ended up with > something like: > > dh_autoreconf -- sh -c 'cd upstream && ./autogen.sh' > > But that's very ugly, in my opinion, and I'd rather write: > > dh_autoreconf -Dupstream -- ./autogen.sh > > I could, of course, create a debian/autogen.sh that cds to the > appropriate place too, and call that, but that also sounds wrong to me.
We can do this, but we also need to find out how to integrate this with debian/autoreconf lists, as in one of the following cases: (1) The directories in debian/autoreconf are relative to base directory (2) The directories in debian/autoreconf are relative to source directory (3) You cannot use debian/autoreconf and -D together (1) is the easiest option, (3) is also easy, (2) might require some more work. > > Furthermore, I have all of the common debhelper options (including > -Dupstream) exported via DH_OPTIONS, so I don't repeat them all over the > place. It would be very nice if dh-autoreconf would support that too (I > haven't checked whether that's possible, it might not be). It uses standard debhelper functions, like all dh_* tools. So it should support them. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
pgp3jkTlr1LAO.pgp
Description: PGP signature

