[MDEV-6016] Packaging error with cmake 2.8.12 and greater. Created: 2014-04-03 Updated: 2014-04-09 Resolved: 2014-04-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.36, 10.0.10 |
| Fix Version/s: | 5.5.37, 10.0.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Wes Bullard | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | packaging | ||
| Environment: |
Windows 7 x64, cmake 2.8.12.2 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
When building --target package the build process completes but then errors out while trying to package the zip file. The error is due to missing .pdb files. I've attached the output of the errors in the building of the zip file. Also attached is a .diff file that alters the cmake/install_macros.cmake file |
| Comments |
| Comment by Elena Stepanova [ 2014-04-03 ] | |||||||||||||||||||||
|
The attached workaround was suggested by Wlad. He also had additional thoughts on the subject, I hope he will comment with those. Meanwhile, here is a free translation of his notes:
| |||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-04-03 ] | |||||||||||||||||||||
|
I checked the provided patch on 5.5 tree with VS 11 / cmake 2.8.12.1, and also tried it in a test tree in buildbot to check there are no problems with older VS/cmake. Now pushed into 5.5 tree which will be merged up later. | |||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2014-04-04 ] | |||||||||||||||||||||
|
I tested the mentioned change for debuginfo format from /Zi to /Z7, and it seems to work well. The noticable change is that static libraries will be bigger in size (this of course applies to the libraries themselves, not to programs they link to). So I conclude, if the size of embedded library = 300M does not bother too many people, /Z7 should be quite ok. The whole patch is below.
| |||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-04-05 ] | |||||||||||||||||||||
|
This change is an addition to the previous one, not a replacement, right? Some numbers (revno 4131 is the previous patch):
| |||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2014-04-05 ] | |||||||||||||||||||||
|
Right, this is addition not a replacement. Bet the difference is due to mysqlserver.lib only, and is not noticable in MSIs. | |||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-04-05 ] | |||||||||||||||||||||
|
Some more sizes (mysqlserver.lib and the whole unpacked directory)
| |||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-04-09 ] | |||||||||||||||||||||
|
I created a separate issue |