maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #05107
Re: [Commits] Rev 3657: MDEV-4127 : Export additional symbols when building RPM
> -----Original Message-----
> From: commits-bounces@xxxxxxxxxxx [mailto:commits-
> bounces@xxxxxxxxxxx] On Behalf Of Sergei Golubchik
> Sent: Sonntag, 3. Februar 2013 18:17
> To: maria-developers@xxxxxxxxxxxxxxxxxxx
> Cc: commits@xxxxxxxxxxx
> Subject: Re: [Commits] Rev 3657: MDEV-4127 : Export additional symbols
> when building RPM
>
> Hi, Vladislav!
>
> May be you'd rather rename symbols with #define, just as redhat does?
Hi Sergei,
It is possible.
However, unless it is done conditionally (e.g #ifdef
BUILD_MARIADB_AS_RPM), it is likely to break something (e.g odbc) on other
(Debian-style) Linuxes.
So I see 2 variants
1. Introduce BUILD_MARIADB_AS_RPM preprocessor constant, set to 1 if build
with RPM. If BUILD_MARIADB_AS_RPM is set, do rename functions via #define
, Redhat-style .
2. Export both original and renamed symbols, as in my patch.
Both are ok to me. Which one would be better, what do you think?
> On Feb 03, Vladislav Vaintroub wrote:
> > At file:///H:/bzr/5.5/
> >
> > ------------------------------------------------------------
> > revno: 3657
> > revision-id: wlad@xxxxxxxxxxxxxxxx-20130203164516-ex2ftmyca5b507g3
> > parent: elenst@xxxxxxxxxxxxx-20130202225357-za9bglcf2ngv36xj
> > committer: Vladislav Vaintroub <wlad@xxxxxxxxxxxxxxxx>
> > branch nick: 5.5
> > timestamp: Sun 2013-02-03 17:45:16 +0100
> > message:
> > MDEV-4127 : Export additional symbols when building RPM,
> > to enable both recompiling mysqli or odbc from sources in addition
> > to drop-in replacement functionality.
> >
> > The case in question is compiling mysqli from sources, that needs
> > client_errors via ER() macro.
> >
> > Previously, we exported it as mysql_client_errors (compatibly to
> > Fedora's style symbol renaming, see MDEV-3842).
> > However, if MariaDB header files are used when compiling mysqli,
> > client_errors needs to be exported with its original name.
>
> Regards,
> Sergei
> _______________________________________________
> commits mailing list
> commits@xxxxxxxxxxx
> https://lists.askmonty.org/cgi-bin/mailman/listinfo/commits
Follow ups
References