[pkg-nvidia-devel] [patch 190xx] [35/k] add infrastructure for legacy drivers, part 1

Andreas Beckmann debian at abeckmann.de
Tue May 4 14:50:41 UTC 2010


here I'm adding some infrastructure for supporting legacy versions.
While this is not needed for nvidia-graphics-drivers itself (all new
placeholder substitutions and substvars will be empty), this will be
helpful for backporting all the recent changes in n-g-d to
n-g-d-legacy-XYZxx because the differences between the two sources will
be minimized. Also merging changes between the different source packages
will be easier because they no longer use different filenames.

 * debian/rules.defs, debian/rules: add variable/placeholder LEGACY
   and new subst vars nvidia:Legacy and nvidia:LegacyDesc
 * debian/rules: add support for control file templates with the LEGACY
   placeholder in their name

After applying the patch, a lot of files in debian/ need to be renamed,
I did it with the following script:

svn up
for f in debian/nvidia-glx*
        svn mv $f `echo $f | sed -e 's/glx/glx-LEGACY/;s/\.in$//'`
for f in debian/nvidia-kernel-source*
        svn mv $f `echo $f | sed -e 's/kernel/kernel-LEGACY/;s/\.in$//'`

As a result all control files concerning nvidia-glx* and
nvidia-kernel-source become templates that are subject to placeholder
substitution. That is an increase from 8 to 29 generated files (only
counting the renamed files) which is hopefully justified by the fact
that we can save a lot of duplicated work once we update the legacy

If this approach is OK, I'll continue by adding the appropriate legacy
placeholders to the individual control files.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ngd-190xx-35ofK-legacy-support-part1.diff
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20100504/ca2d8fdf/attachment.txt>

More information about the Pkg-nvidia-devel mailing list