[CONC-350] MariaDB Connector C builds not.reproducible (according to reproducible-builds.org) Created: 2018-08-02  Updated: 2018-08-02  Resolved: 2018-08-02

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.0.2
Fix Version/s: 3.0.7, 3.1.0

Type: Bug Priority: Minor
Reporter: Otto Kekäläinen Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

The LInux distributions have a joint effort to get all open source software build in a reproducible manner to increase the security and auditability of that distributed binaries actually stem from the source code they claim. See https://reproducible-builds.org/ for details.

MariaDB Connector C stores the build architecture inside mariadb_version.h which breaks the reproducibility. See details at https://tests.reproducible-builds.org/debian/rb-pkg/unstable/i386/diffoscope-results/mariadb-connector-c.html

}}
./usr/include/mariadb/mariadb_version.h
Offset 17, 15 lines modified	Offset 17, 15 lines modified
17	#define·​MARIADB_PORT»   ​·​·​·​·​·​·​·​·​»       ​3306	17	#define·​MARIADB_PORT»   ​·​·​·​·​·​·​·​·​»       ​3306
18	#define·​MARIADB_UNIX_ADDR·​·​·​·​·​·​·​·​·​·​·​·​·​·​·​"/​tmp/​mysql.​sock"	18	#define·​MARIADB_UNIX_ADDR·​·​·​·​·​·​·​·​·​·​·​·​·​·​·​"/​tmp/​mysql.​sock"
19	#define·​MYSQL_CONFIG_NAME»      ​»       ​"my"	19	#define·​MYSQL_CONFIG_NAME»      ​»       ​"my"
 	 
20	#define·​MARIADB_PACKAGE_VERSI​ON·​"3.​0.​3"	20	#define·​MARIADB_PACKAGE_VERSI​ON·​"3.​0.​3"
21	#define·​MARIADB_PACKAGE_VERSI​ON_ID·​30003	21	#define·​MARIADB_PACKAGE_VERSI​ON_ID·​30003
22	#define·​MARIADB_SYSTEM_TYPE·​"Linux"	22	#define·​MARIADB_SYSTEM_TYPE·​"Linux"
23	#define·​MARIADB_MACHINE_TYPE·​"x86_64"	23	#define·​MARIADB_MACHINE_TYPE·​"i686"
24	#define·​MARIADB_PLUGINDIR·​"lib/​i386-​linux-​gnu/​mariadb/​plugin"	24	#define·​MARIADB_PLUGINDIR·​"lib/​i386-​linux-​gnu/​mariadb/​plugin"
 	 
25	/​*·​mysqld·​compile·​time·​options·​*/​	25	/​*·​mysqld·​compile·​time·​options·​*/​
26	#ifndef·​MYSQL_CHARSET	26	#ifndef·​MYSQL_CHARSET
27	#define·​MYSQL_CHARSET»  ​»       ​»       ​""	27	#define·​MYSQL_CHARSET»  ​»       ​»       ​""
28	#endif	28	#endif
29	#endif	29	#endif
{{


Generated at Thu Feb 08 03:04:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.