Hi! [ Simon CCed for the dbus usage. ]
On Sat, 2025-12-20 at 14:11:51 +0100, Chris Hofstaedtler wrote: > On Tue, Mar 01, 2011 at 08:47:58AM +0100, Raphael Hertzog wrote: > > What is missing however is a way to have that alternate dependency > > embed the strict versioning scheme. For this we need to support a new > > #CURVER# substitution that is replaced with the current version so that > > we can keep the associated dependency in sync with the latest version of > > the package. > > I'd also like this. For src:multipath-tools I've for now copied the > solution from src:dbus: > > https://sources.debian.org/src/dbus/1.16.2-2/debian/libdbus-1-3.symbols.in#L2 > https://sources.debian.org/src/dbus/1.16.2-2/debian/rules#L265 I briefly looked how difficult this could be, and ended up with the following set of changes (not tested beyond the test suite): https://git.hadrons.org/cgit/debian/dpkg/dpkg.git/log/?h=next/dpkg-gensymbols-CURVER But then wondered whether it might be better to instead add a tag to mark each symbol with say "(internal)" or something along those lines, to make it more clear when looking at a particular symbol. Although if there is going to be a use for #CURVER# besides internal or ABI unstable symbols, then perhaps that makes sense to be implemented as it is anyway (or both could be provided). (This could be similar to: https://git.hadrons.org/cgit/debian/dpkg/dpkg.git/log/?h=pu/dpkg-shlibdeps-private-symbol-tags although there I was never happy with the usage of the magic -1 id, that's why I never merged it. :/) Thanks, Guillem

