I’m often rebuilding software packages (mostly Debian) for older versions (of both Debian and Ubuntu, including oldoldstable). Some of these packages use the lsb_release
command to figure out the current distribution, in order to change behaviour, Build-Depends
, etc.
I’ve got a multiple-distribution and CPU architecture cowbuilder setup, but to prepare the source packages (which are then built in a clean environment that matches the target distribution), I still need to do something like:
dpkg-source -x openjdk-7_7u55-2.4.7-1~deb7u1.dsc
cd openjdk-7-7u55-2.4.7
dch --bpo
dpkg-buildpackage -S
The dpkg-buildpackage -S
step creates a source package (*.dsc
and assorted files) after running the clean target (which regenerates debian/control in many packages). But for this, the lsb_release
output needs to be, for instance, squeeze
or even lenny
.
From my work on Debian/m68k I know I can create an /etc/lsb-release
file containing magic, underdocumented lines to control the output of lsb_release
, which otherwise looks into, for example, the APT sources.list
file, preferences
, etc. to determine the distribution. But there is no easy way to make the output mirror another existing distribution.
Has anyone a collection of such files, to mirror the target distribution?
0 Answers