[Build-common-hackers] Bug#208511: cdbs: suggestion for _package variables
Julian Gilbey
Julian Gilbey <jdg@debian.org>, 208511@bugs.debian.org
Wed, 3 Sep 2003 11:23:12 +0100
Package: cdbs
Version: 0.4.6
Just looking at the fix for 206955, thanks!
Thinking how it would apply to the package I was working on,
inetutils-syslogd. Now environment variables use alphanumerics and
underscores, whereas package names use alphanumerics, '+', '-' and '.'
It would make sense, therefore, if for the package specfic debhelper
variables such as DEB_INSTALL_DIRS_<package>, if the package name were
mangled so that '+', '-' and '.' were all translated to '_'. Would
that be easy to do? (Yes, just change the appropriate occurrences of
$(cdbs_curpkg) to either $(shell echo $(cdbs_curpkg) | tr '.+-' '_'),
or introduce a new variable $(cdbd_curpkg_mangled) or similar in
buildcore.mk and then use that instead.)
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, website: http://www.polya.uklinux.net/
Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
Visit http://www.thehungersite.com/ to help feed the hungry