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

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



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






Reply to: