Package Details: mock 2.10-1.1

Git Clone URL: https://aur.archlinux.org/mock.git (read-only, click to copy)
Package Base: mock
Description: A simple chroot build environment manager for building RPMs
Upstream URL: https://github.com/rpm-software-management/mock
Licenses: GPL2
Submitter: td123
Maintainer: larchunix
Last Packager: larchunix
Votes: 3
Popularity: 0.000046
First Submitted: 2011-02-23 05:50
Last Updated: 2021-05-04 10:35

Dependencies (16)

Required by (0)

Sources (4)

Latest Comments

1 2 Next › Last »

patatahooligan commented on 2020-09-23 16:13

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

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

@anatolik

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

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

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

pnorcks commented on 2017-11-17 14:15

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/util.py", line 41, in <module>
from pyroute2 import IPRoute
ModuleNotFoundError: No module named 'pyroute2'

pnorcks commented on 2016-03-14 04:00

@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

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

pnorcks commented on 2015-06-04 22:46

I adopted the package.

Note that I removed the 'usermode' dependency from this package, since I prefer running mock with 'sudo', and it simplifies packaging.

pnorcks commented on 2015-02-05 20:35

@roheim: Thanks!

I'm now seeing an install failure. Error output is below.

error: failed to commit transaction (conflicting files)
mock: /usr/sbin exists in filesystem
mock: /usr/sbin/mock exists in filesystem
Errors occurred, no packages were upgraded.