[CONC-647] cmake won't create tar.gz packages unless run with root permissions Created: 2023-05-18  Updated: 2023-05-18

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Daniel Bartholomew Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates

 Description   

Starting with this commit, as can be seen in buildbot here, Connector/C builds started failing the zlib portion of the cmake CPack steps when creating the tar.gz binary packages.

From the output of the build logs it looks like the CPack packaging steps are trying to write to /usr/local/lib , /usr/local/include , and other directories like it is doing a "make install" instead of a "make package".

Here's an example build log: https://buildbot.mariadb.net/buildbot/builders/cc-bullseye-amd64/builds/95/steps/compile/logs/stdio

The only way to work around this seems to be to run cmake as root (e.g. with sudo), but you should not have to do that.


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