Bug #95158 Can't build mysql-shell deb package if DEB_DEPS or DEB_BUILD_DEPS are not set
Submitted: 26 Apr 2019 13:39 Modified: 10 Dec 2019 10:21
Reporter: Evgeniy Patlan (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Shell General / Core Client Severity:S2 (Serious)
Version:8.0.16 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution, mysql-shell packaging

[26 Apr 2019 13:39] Evgeniy Patlan
Description:
In case if DEB_DEPS and/or DEB_BUILD_DEPS are empty there will be an empty lines in control file.
This empty lines will generate an issue during deb build syntax error in debian/control at line 21: block lacks the 'Package' field

How to repeat:
get source tarball using 
cpack -G TGZ --config CPackSourceConfig.cmake
after that untar file and try to build source deb package dpkg-buildpackage -S

Suggested fix:
https://github.com/mysql/mysql-shell/pull/3
[30 Apr 2019 15:09] OCA Admin
Contribution submitted via Github - [BUG-95158] Improve control file 
(*) Contribution by Evgeniy Patlan (Github EvgeniyPatlan, mysql-shell/pull/3#issuecomment-487307894): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_273896853.txt (text/plain), 1.28 KiB.

[20 May 2019 12:22] MySQL Verification Team
Hello Evgeniy Patlan,

Thank you for the report and contribution.

regards,
Umesh
[10 Dec 2019 10:21] Margaret Fisher
Posted by developer:
 
Changelog entry added for MySQL Shell 8.0.19:

The Debian control file for MySQL Shell has been corrected to remove packaging errors that occurred when certain variables were not defined. Thanks to Evgeniy Patlan for the fix.