Red Hat Bugzilla – Bug 626807
Requires: dependency in Makefile doesn't work correctly
Last modified: 2010-09-08 08:39:20 EDT
Description of problem:
I've met unpleasant problem.
I've had dependency in Makefile, but it seems that it doesn't eork as in RHTS:
I have there
@echo "Requires: $(PACKAGE_NAME) krb5-workstation" >> $(METADATA)
but package "krb5-workstation" isn't installed.
It is very strange
and when I've added line
rpm -q krb5-workstation || yum -y install krb5-workstation
into runtest.sh it begins to work correctly
name of test: /CoreOS/tcsh/Sanity/bad_guid
package isn't installed in intall phase
package should be installed there
Not sure if this is related but the test has 'nothing' in the RunFor metadata field even though both makefile and testinfo.desc say "RunFor: tcsh".
And it is not nothing as an empty string, it is 'nothing':
$ bkr task-list --package nothing |grep tcsh
I think we were just out of sync. I did a make tag and a make bkradd and it looks correct to me now.
Please consider this run: https://beaker.engineering.redhat.com/jobs/16545
All the pre-requisities are mentioned in the Makefile:
@echo "Requires: openwsman-server openwsman-client wsmancli" >> $(METADATA)
But finally they were not installed():
package openwsman-server is not installed
:: [ FAIL ] :: Checking for the presence of openwsman-server rpm
package openwsman-client is not installed
:: [ FAIL ] :: Checking for the presence of openwsman-client rpm
package wsmancli is not installed
:: [ FAIL ] :: Checking for the presence of wsmancli rpm
May be this bug symptoms.
And the kickstart %packages section includes it
#RHEL6 and Fedora12
And we add these repos to the install:
repo --name=beaker-debug-optional --cost=100 --baseurl=http://lab2.rhts.eng.bos.redhat.com/distros/vol/engineering/devarchive/redhat/rel-eng/RHEL6.0-20100826.1/6/Client/i386/os/../../optional/i386/debug
repo --name=beaker-os-optional --cost=100 --baseurl=http://lab2.rhts.eng.bos.redhat.com/distros/vol/engineering/devarchive/redhat/rel-eng/RHEL6.0-20100826.1/6/Client/i386/os/../../optional/i386/os
repo --name=beaker-addon--os --cost=100 --baseurl=http://lab2.rhts.eng.bos.redhat.com/distros/vol/engineering/devarchive/redhat/rel-eng/RHEL6.0-20100826.1/6/Client/i386/os
repo --name=beaker-debug --cost=100 --baseurl=http://lab2.rhts.eng.bos.redhat.com/distros/vol/engineering/devarchive/redhat/rel-eng/RHEL6.0-20100826.1/6/Client/i386/os/../debug
repo --name=beaker-os --cost=100 --baseurl=http://lab2.rhts.eng.bos.redhat.com/distros/vol/engineering/devarchive/redhat/rel-eng/RHEL6.0-20100826.1/6/Client/i386/os/.
Is it possible the packages don't exist in the OS? Where should they come from?
I solved this by adding /distribution/reservesys as the first test, then modifying the repo like this:
and installing packages manually. Maybe they come from some Optional repo or something, but IMO all repos should be registered in Beaker..
So if the packages aren't in the repo I can't install them. closing.