-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 05 September 2003 06:04 pm, Neil Roeth wrote: > You need to look in the package itself for the call to configure, not in > the apt source. Suppose you are attempting to download and compile > foo_1.2.3-4. > > apt-get source foo # no "--compile" option > cd foo-1.2.3 > vi debian/rules # find the call to configure, add "--with-mysql" > fakeroot dpkg-buildpackage -uc -us > > This will result in a .deb in the directory from which you called apt-get > source, which you can install with dpkg.
Ouch.. The reason I am asking is I am working with some people who are trying to enhance apt-build (www.debtoo.org).. I am in the process of writing some scripts that add "gentoo" like USE flag functionality - you can add "mysql" to the flags and on any package that has this functionality it will add - --enable-mysql or --with-mysql (or whatever is appropriate.) I know there will be the problem of dependancies.. Regardless, at this point I have a functioning script that will take a package name and determine the possible optional flags that can be passed to configure. I've taken a look at the files and I understand the source configuration process better. What I think this adds up to is, basically, is that my script is going to have to hack debian/rules on each package? There is no other way to pass optional configure flags to a compile? Thanks for any help you or pointers you can give me on this.... - -- Matt http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D81740A -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/WUFLZosHVX2BdAoRAvxoAJ9AiiD+6humhJ2K7f34MXjE/g3WXgCePVri cSCoRPLcLCBjE+n2BZMOiMw= =CgWB -----END PGP SIGNATURE-----