← Back to team overview

maria-developers team mailing list archive

Re: Debian and reproducible builds errors for MariaDB

 

Hi, Otto!

On Feb 05, Otto Kekäläinen wrote:
> Hello!
> 
> The errors in the build log
> https://reproducible.debian.net/rbuild/mariadb-10.0_10.0.16-1.rbuild.log
> look like this:
> 
> /tmp/buildd/mariadb-10.0-10.0.16/storage/connect/ha_connect.cc:174:46:
> error: macro "__DATE__" might prevent reproducible builds
> [-Werror=date-time]
>         char  compver[]= "Version 1.03.0006 " __DATE__ " "  __TIME__;
>                                               ^
> /tmp/buildd/mariadb-10.0-10.0.16/storage/connect/ha_connect.cc:174:60:
> error: macro "__TIME__" might prevent reproducible builds
> [-Werror=date-time]
>         char  compver[]= "Version 1.03.0006 " __DATE__ " "  __TIME__;
>                                                             ^
> Could somebody look into this and send me a patch that fixes it? (and
> commit the same patch upstream, ofcourse)

Here:
=== modified file 'storage/connect/ha_connect.cc'
--- storage/connect/ha_connect.cc       2015-01-20 00:21:56 +0000
+++ storage/connect/ha_connect.cc       2015-02-06 18:05:16 +0000
@@ -171,7 +171,7 @@
 
 extern "C" {
        char  version[]= "Version 1.03.0006 January 13, 2015";
-       char  compver[]= "Version 1.03.0006 " __DATE__ " "  __TIME__;
+       char  compver[]= "Version 1.03.0006";
 
 #if defined(WIN32)
        char slash= '\\';

> PS. While searching the log for errors I also noticed these unrelated
> ones, how do we fix them?:
> 
> troff: fatal error: can't find macro file m

This is safe to ignore, it neither stops nor affects the build in any way.

Regards,
Sergei


References