Bug 11239 - sernet-samba-ctdb fails to install because requires awk package to be installed
Summary: sernet-samba-ctdb fails to install because requires awk package to be installed
Alias: None
Product: CTDB 2.5.x or older
Classification: Unclassified
Component: ctdb (show other bugs)
Version: 4.2.1
Hardware: x64 Linux
: P5 normal
Target Milestone: ---
Assignee: Karolin Seeger
QA Contact: Samba QA Contact
Depends on:
Reported: 2015-04-28 18:46 UTC by Patrick Goodwin
Modified: 2015-05-05 10:04 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Goodwin 2015-04-28 18:46:12 UTC
When attempting to install the sernet-samba-ctdb-4.2.1-16.el6.x86_64.rpm via Yum, it fails to install as it is listing awk as a requirement. 

# yum install sernet-samba-ctdb
Loaded plugins: downloadonly, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ctdb.x86_64 0:2.5.3-1 will be obsoleted
---> Package sernet-samba-ctdb.x86_64 99:4.2.1-16.el6 will be obsoleting
--> Processing Dependency: awk for package: 99:sernet-samba-ctdb-4.2.1-16.el6.x86_64
--> Finished Dependency Resolution
Error: Package: 99:sernet-samba-ctdb-4.2.1-16.el6.x86_64 (samba4)
           Requires: awk
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

RHEL does not have a an actual package called awk. The awk command is provided by the gawk package on RHEL. Looking at the RPM and the list of dependencies, it does require awk.

# rpm -qpR sernet-samba-ctdb-4.2.1-16.el6.x86_64.rpm 
warning: sernet-samba-ctdb-4.2.1-16.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID f4428b1a: NOKEY

The package needs to be updated to have a dependency on the gawk package or /bin/awk.
Comment 1 Amitay Isaacs 2015-04-29 04:18:06 UTC
Hi Karolin, 

Who does the sernet samba packaging?  Can you assign this defect to the correct person?

Looks like sernet-samba-ctdb package adds dependency of awk instead of gawk.

CTDB standalone packaging correctly defines dependency on gawk (Check ctdb/packaging/RPM/ctdb.spec.in).

Comment 2 Karolin Seeger 2015-05-04 17:53:57 UTC
(In reply to Amitay Isaacs from comment #1)
Hi Amitay,

I pointed them to this bug report.
Thanks for the heads-up! :-)
Comment 3 Karolin Seeger 2015-05-04 18:13:38 UTC
(In reply to Karolin Seeger from comment #2)
Just saw that they already addressed this, I think.
Comment 4 Björn Baumbach 2015-05-05 08:25:38 UTC
Hi, thank you for reporting!
I've fixed that yesterday.
Please use sernet-samba-ctdb-4.2.1-17.

In future you can report bugs in the sernet-samba packages to samba@sernet.de

Best regards