On Wed, Jan 27, 2016 at 8:43 PM, Orion Poplawski <orion@cora.nwra.com> wrote:
On 01/27/2016 04:43 PM, Dave Johansen wrote:
On Wed, Jan 27, 2016 at 10:42 AM, Orion Poplawski <orion@cora.nwra.com
<mailto:orion@cora.nwra.com>> wrote:

    On 01/27/2016 09:43 AM, Dave Johansen wrote:
    > I was trying to do some test builds with EL 5 using mock on CentOS 7.2 and I
    > kept getting the following error:
    >   Installing :
    > 2:shadow-utils-4.0.17-23.el5.x86_64
    > 82/114
    > /usr/sbin/groupadd: error while loading shared libraries: libselinux.so.1:
    > cannot open shared object file: No such file or directory
    > /usr/sbin/groupadd: error while loading shared libraries: libselinux.so.1:
    > cannot open shared object file: No such file or directory
    >   Installing :
    > libutempter-1.1.4-4.el5.x86_64
    > 83/114
    > warning: group utmp does not exist - using root
    >
    > Any ideas?

    There must be some kind of dependency loop going on.  It may be:

    libselinux -> setransd (mcstrans) -> /sbin/chkconfig (initscripts) ->
    coreutils -> libselinux


Should I open a bugzilla? Or is this an issue that's already being worked?

I didn't find anything in bugzilla.  But this being EL5, I'm not sure it would be fixed at this point...

I'm pretty sure that this is a new issue because even just initializing mock fails for EL 5 and I'm pretty sure that hasn't always been the case.

For example, I ran the following and got the same error:
mock -r epel-5-x86_64 --init