Bug 149175

Summary: Missing Build-Dependency on apmd
Product: Red Hat Enterprise Linux 4 Reporter: Andreas Thienemann <andreas>
Component: gnome-appletsAssignee: Mark McLoughlin <markmc>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-21 08:24:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andreas Thienemann 2005-02-20 02:19:18 UTC
There seems to be a bug in the Dependency defintion for the
gnome-applets-2.8.0-5.1 package.

Even though the apmd_archs is defined in the specfile

# apmd is built on %{ix86} and ppc
%define apmd_archs %{ix86} ppc

and the Build-Dependency on apmd is defined in the spec

%ifarch ${apmd_archs}
BuildRequires:  apmd >= %{apmd_version}
%endif

rebuilding without apmd does result in the following message:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.20091
+ umask 022
+ cd /usr/src/redhat/BUILD
+ test -e /usr/lib/libapm.a
+ echo 'You must have apmd installed'
You must have apmd installed
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.20091 (%prep)


This should actually not happen as rpm should be able to notice that no apmd
package is available and complain right after the dependency check.

Substituting ${apmd_archs} with %{apmd_archs} in the %ifarch statement seems to
fix this problem.

Comment 1 Mark McLoughlin 2005-02-21 08:24:26 UTC
Nicely spotted, many thanks.

This was already fixed in the FC-4 development branch, but I've put
the fix into the RHEL-4 and FC-3 branches too now. However, I didn't
release an update with just this fix, but it will be in the next
update that gets releasted.