[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Handling macro change in an exported library header



* Nikita Youshchenko [Thu, 26 Jun 2008 13:22:19 +0400]:

> Hello.

> To fix #486693, I need to apply a patch that changes #define'd macro in an 
> exported library header.

> The pattern is:

> extern int foo(char *param1, int param2);
> #define bar(param) foo(param, expr(param))

> and changed thing is expr(param)

> Looks like binary interface of the shared library does not change, however 
> strictly saying any user of the library that uses bar() macro needs to 
> recompile his code.

> Any comments on how to handle this change in packaging properly?

My understanding from reading the bug and seeing the diff, is that you
should just apply the patch.

Recompiling code that uses the bar() macro would be indeed nice, so
maybe you could unpack all the packages that build-depend on your
library, and grep them for bar()? If you send a list of matches to
debian-release@lists.debian.org, we can rebuild them with binNMUs then.

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
La música es de los que la quieren escuchar y de nadie más.
                -- Andrés Calamaro


Reply to: