[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#67781: marked as done (Update Standards-Version for the tetex-* packages)



On Mon, Aug 21, 2000 at 09:11:32PM +0200, Christoph Martin wrote:
>  > > The Standards-Version for the tetex-* packages should be updated. This
>  > > includes to add Build-Depends to the control files.
>  > 
>  > >  tetex-bin (1.0.7+20000807-1) unstable; urgency=low
>  > >  .
>  > >    * new upstream beta
>  > >    * update Standards-Version to 3.2.0
>  > >    * include Build-Depends (closes: #67781)
>  > 
>  > Did you add checking of DEB_BUILD_OPTIONS, as described in Policy 3.2.0,
>  > section `Binaries'? If so, changelog should say it; if not, this bug is not
>  > fixed.
> 
> Hmm. We have to look into that.

There are a few modifications to the debian/rules file needed.

Something like this at the top:

CFLAGS := -O2
ifneq "$(findstring debug,$(DEB_BUILD_OPTIONS))" ""
CFLAGS += -g
endif

And then, in the build rule, pass $(CFLAGS) to configure or make or whatever
is used to build the programs.

Presuming the install/binary rule installs unstripped files by default and
you strip them with dh_strip afterwards, this is needed (for now):

ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
        dh_strip
endif

Even if not, it's not hard, you get the idea.

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: