Le Thu, Aug 25, 2011 at 11:43:14AM +0400, Vsevolod Velichko a écrit : > > this the very thing I want to do, but as far as I can understand, I > should replace that variables myself, am I right? When I try to put > the variables in debian/changelog, dpkg-buildpackage fails with error: > dpkg-buildpackage: source version 1.1.0-7~bpo${debian_release}+${build_int} > dpkg-buildpackage: error: version number contains illegal character `$' > > I realize that I can add new ~bpoXX record into changelog myself each > time I'm building new version, but I want to find if there any way to > do it automatically during build-time? > > Obviously, I could use some build-script that would use sed to replace > version in changelog and then run dpkg-buildpackage, but this way > seems to be a not clear workaround.
Dear Vsevolod, yes, the use of variables when constructing a version number is not a necessity and you can see them more as a metaphor in the explanations of backports.d.o. For the automation, packages that modify their control information at build time are rejected from our archive (http://ftp-master.debian.org/REJECT-FAQ.html) and what you are trying to do with the version number looks similar in spirit. The usual way is to modify the source package before building, not during. You can see http://www.eyrie.org/~eagle/software/scripts/backport.html as one of the many examples. Have a nice day, -- Charles Plessy Tsurumi, Kanagawa, Japan -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110826012550.gc16...@merveille.plessy.net