Package: mock
Version: 1.1.33-1
Severity: normal
Dear Maintainer,
Installing mock from scratch does not create the mock group, which seems to be
required when calling mock even with sudo.
Running as root without mock in /etc/group yields:
ERROR: 'getgrnam(): name not found: mock'
Traceback (most recent call last):
File "/usr/sbin/mock", line 305, in <module>
def do_buildsrpm(config_opts, chroot, options, args):
File "/usr/sbin/mock", line 384, in main
mockgid = grp.getgrnam('mock').gr_gid
KeyError: 'getgrnam(): name not found: mock'
Running as non-root user yields:
The password you typed is invalid.
Please try again.
until both the group is created and the non-root user is added to the mock
group.
The default directories /var/cache/mock and /var/lib/mock should probably also
be created in the postinst script and made writable by the mock group,
otherwise:
ERROR: Could not create dir /var/lib/mock/epel-6-x86_64/result. Error: [Errno
13] Permission denied: '/var/lib/mock/epel-6-x86_64/result'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mockbuild/util.py", line 68, in
mkdirIfAbsent
os.makedirs(dirName)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/lib/mock/epel-6-x86_64/result'
ERROR:
Could not create output directory for built rpms. The directory specified was:
/var/lib/mock/epel-6-x86_64/result
Try using the --resultdir= option to select another location. Recommended
location is --resultdir=~/mock/.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mock depends on:
ii python 2.7.5-5
ii python-decoratortools 1.8-2
ii python-rpm 4.11.1-3
ii usermode 1.109-1
ii yum 3.4.3-2
ii yum-utils 1.1.31-2
mock recommends no packages.
Versions of packages mock suggests:
ii pigz 2.3-2
-- Configuration Files:
/etc/mock/site-defaults.cfg changed [not included]
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]