[MXS-2933] installing Maxscale RPM makes home directory belong to root Created: 2020-03-16  Updated: 2020-04-01  Resolved: 2020-04-01

Status: Closed
Project: MariaDB MaxScale
Component/s: Packaging
Affects Version/s: 2.5
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: Timofey Turenko Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

Centos 8


Sprint: MXS-SPRINT-103

 Description   

1. build RPM
2. check home directory:

drwx------. 8 vagrant vagrant 192 Mar 16 22:35 vagrant

3. install rpm:
sudo rpm -i *.rpm

4. check home directory
drwxr-xr-x. 8 root root 192 Mar 16 23:05 vagrant



 Comments   
Comment by Timofey Turenko [ 2020-03-16 ]

it breaks 'develop' build - after building and installing package, create_repo script fails due to permission denied error:

+ ssh -i /home/vagrant/vms/centos_8_libvirt-build-106/.vagrant/machines/build/libvirt/private_key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=120 vagrant@192.168.121.133 'rm -rf dest; rm -rf src;'
Warning: Permanently added '192.168.121.133' (RSA) to the list of known hosts.
+ echo ' creating dirs on VM'
+ ssh -i /home/vagrant/vms/centos_8_libvirt-build-106/.vagrant/machines/build/libvirt/private_key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=120 vagrant@192.168.121.133 'mkdir -p dest ; mkdir -p src; mkdir gpg_keys'
creating dirs on VM
Warning: Permanently added '192.168.121.133' (RSA) to the list of known hosts.
mkdir: cannot create directory ‘dest’: Permission denied
mkdir: cannot create directory ‘src’: Permission denied
mkdir: cannot create directory ‘gpg_keys’: Permission denied

Comment by markus makela [ 2020-03-30 ]

Looks like the problem is the INSTALL_COMMAND line in the BuildHiredis.cmake file. Changing it so that the install step is skipped and the build step results are used as-is solves it but understanding why this happens would still be good.

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