Package Details: mock 5.6-1.1

Git Clone URL: (read-only, click to copy)
Package Base: mock
Description: A simple chroot build environment manager for building RPMs
Upstream URL:
Licenses: GPL-2.0-or-later
Submitter: td123
Maintainer: larchunix
Last Packager: larchunix
Votes: 3
Popularity: 0.000000
First Submitted: 2011-02-23 05:50 (UTC)
Last Updated: 2024-06-03 15:12 (UTC)

Dependencies (16)

Required by (0)

Sources (3)

Latest Comments

1 2 Next › Last »

MarsSeed commented on 2024-02-27 11:35 (UTC)

I suggest that you please kindly remove optdepend yum-utils: not just EOL for a decade now, but has been broken on AUR for almost 3 years.

patatahooligan commented on 2020-09-23 16:13 (UTC) (edited on 2020-09-23 16:18 (UTC) by patatahooligan)

There's a bigger issue than just convenience when removing system users. The id of a user should not be reused because if there are leftover files owned by the old user, they will now be owned by the one that replaces it. So you actually want to keep system users indefinitely for security reasons!

EDIT: I misread the post_remove script as deleting the user, when instead it deletes the group. I think the same issue applies if files are created with the group set as mock.

anatolik commented on 2020-09-15 20:19 (UTC)

IMHO it makes sense not to remove mock group in post_remove(). Otherwise it makes harder to re-install this package

post_remove() {
  getent group mock >/dev/null && groupdel mock
  echo 'Make sure to empty out /var/lib/mock and /var/cache/mock'

larchunix commented on 2020-05-23 18:10 (UTC)


It would be great if the package installed a default config file.

Which config should be used as default? Fedora? CentOS? ...? IMHO, none of them make sense as default on Arch Linux systems.

anatolik commented on 2020-05-22 04:39 (UTC) (edited on 2020-05-22 04:39 (UTC) by anatolik)

I installed the package and at the first run it says:

$ mock
ERROR: Could not find required config file: /etc/mock/default.cfg
ERROR:   Did you forget to specify the chroot to use with '-r'?
ERROR:   If you're trying to specify a path, include the .cfg extension, e.g. -r ./target.cfg

It would be great if the package installed a default config file.

larchunix commented on 2017-11-17 19:05 (UTC)

@pnorcks: should be OK now, thanks for the report

pnorcks commented on 2017-11-17 14:15 (UTC)

When trying to use mock 1.4.7-1, I run into an exception: Traceback (most recent call last): File "/usr/bin/mock", line 79, in <module> from mockbuild import util File "/usr/lib/python3.6/site-packages/mockbuild/", line 41, in <module> from pyroute2 import IPRoute ModuleNotFoundError: No module named 'pyroute2'

pnorcks commented on 2016-03-14 04:00 (UTC)

@Duologic: I'm not sure what you mean by "collaborate". Can you clarify? I really prefer to run mock with 'sudo', both for reason I mentioned in my previous comment, and also because it makes clear that I'm running the program as root. Running mock with 'usermode' blurs that distinction...

Duologic commented on 2016-03-13 14:25 (UTC)

Can you collaborate on getting it running in 'usermode'?