Package: apt-build
Severity: wishlist

----- Forwarded message from iSteve <[EMAIL PROTECTED]> -----

> From: iSteve <[EMAIL PROTECTED]>
> To: Julien Danjou <[EMAIL PROTECTED]>
> Subject: Re: apt-build and configure-time options
> Date: Tue, 18 Jan 2005 20:46:43 +0100
> User-Agent: Debian Thunderbird 1.0 (X11/20050116)
> X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham 
>       version=3.0.2
> 
> Okay, I've actually written it in perl now ... Patch is attached.
> 
>  - iSteve
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]

> +++ /root/apt-build   2005-01-18 20:45:17.000000000 +0100
> @@ -125,6 +125,7 @@
> +  --conftime <opts> - Specify configure-time options (they are inserted as 
> first).
>  
>  ";
>  exit 1
> @@ -317,7 +318,19 @@
>       
>       system "debchange --append \"$buildoptions\"";
>  
> -     # Now build
> +     # Now build, and patch the debian/rules configure
> +     print STDERR "-----> Applying conf-time opts <-----";   
> +     my $newconf;
> +     open DEBRULES, "< debian/rules";
> +     while (<DEBRULES>) {
> +             if (/\.\/configure/) { while (/\\$/) {$newconf .= $_; $_ = 
> <DEBRULES>} chomp; $newconf .= $_ . " " . $conf->conftime;} else { $newconf 
> .= $_; }
> +     }
> +     close DEBRULES;
> +     
> +     open DEBRULES, "> debian/rules";
> +     print DEBRULES $newconf;
> +     close DEBRULES;
> +     
>       my  $r = !system $conf->build_command;
>       
>       if ($conf->cleanup) {
> @@ -743,6 +756,7 @@
>               "mcpu=s",             {},
>               "options=s",          {},
>               "make_options=s",          {},
> +             "conftime=s",           {},
>               "version",            {
>                       ACTION => sub { print "apt-build version $VERSION"; 
> exit 0 }
>               },


----- End forwarded message -----

-- 
Julien Danjou
.''`.  Debian developer
: :' : http://julien.danjou.info
`. `'  http://people.debian.org/~acid
  `-   9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD

Attachment: signature.asc
Description: Digital signature

Reply via email to