Bug#154514: dpkg-dev: need alternate way to tell dpkg-gencontrol which binary package to use
Package: dpkg-dev
Version: 1.10.4
Severity: wishlist
Sometimes the-p flag for dpkg-gencontrol is just not a valid option, and
so there is no way to tell it what package to act on. Consider:
Source: linux-wlan-ng
...
Package: linux-wlan-ng-modules-${kvers}
...
Package: linux-wlan-ng
To run dpkg-gencontrol using this control file, I need to use -p since
there are multiple packages, but the name of the modules package is not
known until after the expansion is done.
joey@dragon:~package/linux-wlan-ng>dpkg-gencontrol -p'linux-wlan-ng-modules-${kvers}'
dpkg-gencontrol: error: Illegal package name `linux-wlan-ng-modules-${kvers}'
zsh: exit 13 dpkg-gencontrol -p'linux-wlan-ng-modules-${kvers}'
joey@dragon:~package/linux-wlan-ng>dpkg-gencontrol -p'linux-wlan-ng-modules-2.4.18' -Vkvers=2.4.18
dpkg-gencontrol: error: package linux-wlan-ng-modules-2.4.18 not in control info
The only way out at the moment is the hack of trimming the second entry
from the control file temporarily before calling dpkg-gencontrol, and then
running it wihout a -p, in which case it automatically uses the first
(and only) package.
I think that what it should do is expand variables when scanning the control
file the first time, so I can call it with -plinux-wlan-ng-modules-2.4.18.
I guess another approach could be a --package-num=1 option to pick by number,
but I don't like that idea.
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux dragon 2.4.18 #1 Thu Jul 25 18:10:57 EDT 2002 i586
Locale: LANG=C, LC_CTYPE=C
Versions of packages dpkg-dev depends on:
ii binutils 2.12.90.0.1-4 The GNU assembler, linker and bina
ii cpio 2.5-1 GNU cpio -- a program to manage ar
ii make 3.79.1-14 The GNU version of the "make" util
ii patch 2.5.4-11 Apply a diff file to an original
ii perl [perl5] 5.6.1-7 Larry Wall's Practical Extraction
ii perl-modules 5.6.1-7 Core Perl modules.
--
To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: