Red Hat Bugzilla – Bug 472879
mock cannot build the f10 environment anymore
Last modified: 2016-02-29 09:02:44 EST
Created attachment 324594 [details]
mock command standard output
Description of problem:
Failure during environment setup.
Version-Release number of selected component (if applicable):
Was OK yesterday, but fails today.
Steps to Reproduce:
mock -r fedora-10-i386 --rebuild somepackage.src.rpm
Successful package building
Created attachment 324595 [details]
Created attachment 324596 [details]
That's a pam %post bug.
Not that pam changed recently.
I suppose the failure of %post of pam is probably caused by missing /dev/null in the chroot in time the pam package is installed?
I'd really like to be able to do install -m 600 /dev/null /var/log/tallylog in the %post.
Or is it a missing /var/log directory? Then adding -D would suffice.
I don't think so: errors are (from root.log):
/var/tmp/rpm-tmp.80192: line 3: install: command not found
/var/tmp/rpm-tmp.80192: line 6: install: command not found
error: %post(pam-1.0.2-2.fc10.i386) scriptlet failed, exit status 127
I can't tell more, because it's under mock control (standard fedora-10-i386 mock config).
I think it's a cyclic dependency problem: coreutils requires pam, and pam uses install that is in coreutils.
I've temporarily solved the problem by excluding package coreutils from the update repository. That does not mean the updated coreutils package is wrong: it only tells us the pam %post is executed before coreutils files are installed.
I'm not sure I understand Tomas's comment in #4 about missing /dev/null in the chroot. That's one of the stock devices mock sets up when we build a chroot; the /dev/null file will always be there.
OK, so the problem is actually missing coreutils when %post of pam is run.
But coreutils always had 'Requires: pam' and pam has 'Requires(post): coreutils' so to me it seems that coreutils should be installed first in the transaction. So what changed recently in yum/rpm that the install order is different?
Install loops are hard to get right. We'll likely need panu looking at this with debugging to figure out why the loop is getting cut where it is. Of course, it's using the F8 version of rpm to do the install ordering, that always adds fun.
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '8'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 8's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 8 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
I confirm this bug does NOT occur on Fedora 10.
Since I do not have a Fedora 9 machine up and running, perhaps someone can check this bug on F9 and post a comment here: this will help reclassify or close the bug. Thanks in advance.
Any F9 user mocking for F10 ? If yes, please tell here if successful. Thanks.
Fedora 8 changed to end-of-life (EOL) status on 2009-01-07. Fedora 8 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version.
Thank you for reporting this bug and we are sorry it could not be fixed.