[Pkg-octave-devel] Bug#292917: needs to depend on f2c on m68k?

Adam Conrad adconrad@0c3.net, 292917@bugs.debian.org
Tue, 1 Feb 2005 17:50:02 +1000 (EST)


Dirk Eddelbuettel said:
>
> I am not aware of packages modifying debian/control on the fly. That
> sounds a little fishy to me.

Are you sure about that?  All of my packages modify debian/control on the
fly via substvars.  Sure, most just use shlibs:Depends, but others use
custom vars (like the PHP packages, using phpapi:Depends and
apache:Depends, for instance).  That's what it's there for.  Certainly,
some more complex packages also have substvars that are filled in on a
per-architecture basis, as we're describing here.  Something like:

if [ `dpkg-architecture -qDEB_BUILD_ARCH` = "m68k" ];then \
echo "m68k:Depends=f2c" >> debian/octave2.1-headers \
fi

Before you run dh_gencontrol

... Adam