Bug 1539112 - Mock centos 7.x epel fails to build epel-5 due to wrong arguments passed to usermod
Summary: Mock centos 7.x epel fails to build epel-5 due to wrong arguments passed to u...
Keywords:
Status: CLOSED DUPLICATE of bug 1535328
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-26 17:18 UTC by Michael Shipper
Modified: 2018-02-14 12:21 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-14 12:21:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Shipper 2018-01-26 17:18:09 UTC
Description of problem:

Mock fails to build epel-5 due to wrong arguments passed to usermod
Please do not confuse this bug with: https://bugzilla.redhat.com/show_bug.cgi?id=1535328


Version-Release number of selected component (if applicable):
[mshipper@vbox-dev tmp]$ cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 
[mshipper@vbox-dev tmp]$ rpm -qi mock
Name        : mock
Version     : 1.4.8
Release     : 1.el7
Architecture: noarch
Install Date: Thu 25 Jan 2018 08:21:36 PM CST
Group       : Unspecified
Size        : 442065
License     : GPLv2+
Signature   : RSA/SHA256, Fri 22 Dec 2017 06:57:14 AM CST, Key ID 6a2faea2352c64e5
Source RPM  : mock-1.4.8-1.el7.src.rpm
Build Date  : Fri 22 Dec 2017 06:38:41 AM CST
Build Host  : buildvm-ppc64le-08.ppc.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://github.com/rpm-software-management/mock/
Summary     : Builds packages inside chroots
Description :
Mock takes an SRPM and builds it in a chroot.

How reproducible:
100%

Steps to Reproduce:
1. mock -r /etc/mock/epel-5-x86_64.cfg --scrub=root-cache --scrub=c-cache --scrub=cache --scrub=yum-cache --scrub=chroot
2. mock -r /etc/mock/epel-5-x86_64.cfg --init
3. mock -r /etc/mock/epel-5-x86_64.cfg -i vim


Actual results:
mshipper@vbox-dev charter-it-telemetrylander]$ mock -r /etc/mock/epel-5-x86_64.cfg -i vim
INFO: mock.py version 1.4.8 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.8
INFO: Mock Version: 1.4.8
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 2b9b4b1e880d49f98f387a9999682e61 -D /var/lib/mock/epel-5-x86_64/root --setenv=LANG=en_US.UTF-8 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOSTNAME=mock --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=HOME=/builddir --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1=<mock-chroot> \s-\v\$  /usr/sbin/usermod --non-unique -u 1000 mockbuild

Expected results:
The package is expected to install

Additional info:
I am not sure if this is a new bug or the fix was not pushed into epel?

Comment 1 Miroslav Suchý 2018-01-29 14:40:40 UTC
> Please do not confuse this bug with: https://bugzilla.redhat.com/show_bug.cgi?id=1535328

Why? It seems as duplicate to me.

Comment 2 Michael Shipper 2018-01-29 14:51:50 UTC
(In reply to Miroslav Suchý from comment #1)
> > Please do not confuse this bug with: https://bugzilla.redhat.com/show_bug.cgi?id=1535328
> 
> Why? It seems as duplicate to me.

When will the fix be pushed to epel out of curiosity?

Comment 3 Miroslav Suchý 2018-02-14 12:21:08 UTC

*** This bug has been marked as a duplicate of bug 1535328 ***


Note You need to log in before you can comment on or make changes to this bug.