On Mon, 01 Oct 2007, Joey Hess wrote: > dpkg-gensymbols -p<package> -Pdebian/<package> > > So, dpkg-gensymbols looks for the symbols file itself? It sound like > you may have copied the method debhelper uses to search for a file in > debian/ in dpkg-gensybols. Problem with that of course is that it may > change.
Right. I have not copied it (I'm not sure I gave the exact same precedence between the various files) but it's the same spirit. > Can the specific symbols file to use be passed to dpkg-gensybols as an > option? Then debhelper could just search the file out and explicitly > tell it what to use, and I wouldn't have to worry about keeping these > things in sync. Yes, sort of, there's the "-O<file>" option which controls where the file is output (and if the file already exists it uses it as input). When -O is not given, it uses debian/*.symbols.* as input and outputs in in <build-tree>/DEBIAN/symbols. To have the same behaviour with an explicit -O you could: cp debian/<theselectedsymbolsfile> debian/<pkg>/DEBIAN/symbols dpkg-gensymbols -p<pkg> -Pdebian/<pkg> -Odebian/<pkg>/DEBIAN/symbols # Remove the file if the result is empty [ -s debian/<pkg>/DEBIAN/symbols ] || rm debian/<pkg>/DEBIAN/symbols > I'm not sure whether calling it in dh_makeshlibs, or adding a new > command is better. Leaning toward not adding a new command, but > I don't want to make dh_makeshlibs too complex. I'll play around with it > once it's in unstable and see what I think then. I made the experimental upload so that we could prepare with a bit of advance towards its inclusion in unstable. Would be nice if you could take a look before. :) Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/

