mock-urpm fails to create mockbuild group and user and fails:

  Executing command: ['/usr/sbin/groupadd', '-g', '101', 'mockbuild']
  groupadd: GID '101' already exists
  Child returncode was: 4
Executing command: umount -n /home/vagrant/tmpfs/openmandriva-aarch64/root/dev/shm
  ...

In the correct build, groupadd should finish successfully, then "useradd" should be launched to create mockbuild user and so on.

GID for mockbuild group is taken by mock-urpm from system /etc/group file - it takes id of "mock-urpm" group (unless you specify smth else in its options) which in turn is created by mock-urpm package during installation.

In your case it looks like /etc/group in the host system has mock-urpm group with GID=101 while inside chroot there is some other group with this ID.

Actually such collisions can happen and the current behavior of mock-urpm (just take GID of mock-urpm from host system) is not perfect. But I wonder why it fails only for aarch64. As a workaround, you can try to set "chrootgid" option of mock-urpm to some other value.

On 23.06.2015 18:59, Alexander Khryukin wrote:
Hello.
Please take a look on build list:
https://abf.io/build_lists/2513052

I can't figure out, what's wrong. Minimal chroot created but abf always return bad exit code.


_______________________________________________
OM-Cooker mailing list
[email protected]
http://ml.openmandriva.org/listinfo.cgi/om-cooker-openmandriva.org

_______________________________________________
OM-Cooker mailing list
[email protected]
http://ml.openmandriva.org/listinfo.cgi/om-cooker-openmandriva.org

Reply via email to