Debian Bug report logs - #728753
mock: should create mock system group and directories

version graph

Package: mock; Maintainer for mock is Tzafrir Cohen <tzafrir@debian.org>; Source for mock is src:mock (PTS, buildd, popcon).

Reported by: Mike Miller <mtmiller@debian.org>

Date: Tue, 5 Nov 2013 02:54:01 UTC

Severity: normal

Merged with 723673

Found in version mock/1.1.33-1

Fixed in version mock/1.2.3-1

Done: Tzafrir Cohen <tzafrir@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Tzafrir Cohen <tzafrir@debian.org>:
Bug#728753; Package mock. (Tue, 05 Nov 2013 02:54:06 GMT) (full text, mbox, link).


Acknowledgement sent to Mike Miller <mtmiller@ieee.org>:
New Bug report received and forwarded. Copy sent to Tzafrir Cohen <tzafrir@debian.org>. (Tue, 05 Nov 2013 02:54:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Mike Miller <mtmiller@ieee.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mock: should create mock system group and directories
Date: Mon, 04 Nov 2013 21:50:13 -0500
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



Changed Bug submitter to 'Mike Miller <mtmiller@debian.org>' from 'Mike Miller <mtmiller@ieee.org>' Request was from Mike Miller <mtmiller@debian.org> to control@bugs.debian.org. (Thu, 12 Dec 2013 14:12:09 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Tzafrir Cohen <tzafrir@debian.org>:
Bug#728753; Package mock. (Sat, 07 Nov 2015 04:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Taylor Braun-Jones <taylor@braun-jones.org>:
Extra info received and forwarded to list. Copy sent to Tzafrir Cohen <tzafrir@debian.org>. (Sat, 07 Nov 2015 04:03:03 GMT) (full text, mbox, link).


Message #12 received at 728753@bugs.debian.org (full text, mbox, reply):

From: Taylor Braun-Jones <taylor@braun-jones.org>
To: 728753@bugs.debian.org
Subject: mock: should create mock system group and directories
Date: Fri, 6 Nov 2015 22:59:55 -0500
[Message part 1 (text/plain, inline)]
What's the status of this bug? I was just hit by this bug only to and was
surprised to discover that the bug report is actually quite old. Happy to
test any fixes.

Taylor
[Message part 2 (text/html, inline)]

Marked Bug as done Request was from Holger Levsen <holger@layer-acht.org> to control@bugs.debian.org. (Tue, 15 Dec 2015 14:09:07 GMT) (full text, mbox, link).


Notification sent to Mike Miller <mtmiller@debian.org>:
Bug acknowledged by developer. (Tue, 15 Dec 2015 14:09:09 GMT) (full text, mbox, link).


Marked as fixed in versions mock/1.2.3-1. Request was from Holger Levsen <holger@layer-acht.org> to control@bugs.debian.org. (Tue, 15 Dec 2015 14:09:09 GMT) (full text, mbox, link).


Merged 723673 728753 Request was from Holger Levsen <holger@layer-acht.org> to control@bugs.debian.org. (Tue, 15 Dec 2015 14:09:09 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 06 Jul 2016 07:28:32 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 06:30:04 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.