Bug 1224629 - RHEL7: Samba build for rhel7 fails to install with dependency errors.
Summary: RHEL7: Samba build for rhel7 fails to install with dependency errors.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: samba
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: RHGS 3.1.0
Assignee: Jose A. Rivera
QA Contact: surabhi
URL:
Whiteboard: package
Depends On:
Blocks: 1202842 1223636
TreeView+ depends on / blocked
 
Reported: 2015-05-25 08:14 UTC by surabhi
Modified: 2015-07-29 04:52 UTC (History)
7 users (show)

Fixed In Version: samba-4.1.17-7.el7rhgs, perl-Parse-Yapp-1.05-50.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-29 04:52:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description surabhi 2015-05-25 08:14:17 UTC
Description of problem:

Installation of samba downstream build fails on RHEL7 with dependency issues:


--> Finished Dependency Resolution
Error: Package: samba-pidl-4.1.17-5.el7rhs.noarch (rhgs3.1-samba-latest-el7)
           Requires: perl(Parse::Yapp)
Error: Package: samba-devel-4.1.17-5.el7rhs.x86_64 (rhgs3.1-samba-latest-el7)
           Requires: pkgconfig(ldb)
Error: Package: samba-devel-4.1.17-5.el7rhs.x86_64 (rhgs3.1-samba-latest-el7)
           Requires: pkgconfig(talloc)
Error: Package: samba-test-devel-4.1.17-5.el7rhs.x86_64 (rhgs3.1-samba-latest-el7)
           Requires: pkgconfig(talloc)
Error: Package: samba-devel-4.1.17-5.el7rhs.x86_64 (rhgs3.1-samba-latest-el7)
           Requires: pkgconfig(tevent)
Error: Package: samba-pidl-4.1.17-5.el7rhs.noarch (rhgs3.1-samba-latest-el7)
           Requires: perl(Parse::Yapp::Driver)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


Version-Release number of selected component (if applicable):
samba-4.1.17-5.el7rhs.x86_64.rpm  

How reproducible:
Always, when trying to install samba-devel , samba-pidl ,samba-test-devel.

Steps to Reproduce:
1.Install RHEL6.6
2.Install glusterfs downstream build
3.Install downstream samba build for RHEl7

Actual results:
Installation of samba-devel , samba-pidl ,samba-test-devel packages fails with dependency errors.Libraries needs to be build for these packages on rhel7 

Expected results:
No dependency failures


Additional info:

Comment 2 Jose A. Rivera 2015-05-26 12:19:15 UTC
....are you trying to install RHEL7 packages on RHEL6.6?

Comment 3 surabhi 2015-05-27 08:20:00 UTC
No, I am trying to install RHEL7 packages on RHEL7 only.
Ignore the 1st step in Description:

Steps to Reproduce:
1.Install RHEL7.1
2.Install glusterfs downstream build
3.Install downstream samba build for RHEl7

Comment 4 surabhi 2015-06-05 04:46:44 UTC
Still see following dependency error while installing samba-pidl package.

---> Package samba-pidl.noarch 0:4.1.17-7.el7rhgs will be installed
--> Processing Dependency: perl(Parse::Yapp::Driver) for package: samba-pidl-4.1.17-7.el7rhgs.noarch
--> Processing Dependency: perl(Parse::Yapp) for package: samba-pidl-4.1.17-7.el7rhgs.noarch
--> Finished Dependency Resolution
Error: Package: samba-pidl-4.1.17-7.el7rhgs.noarch (rhgs3.1-samba-latest-el7)
           Requires: perl(Parse::Yapp::Driver)
Error: Package: samba-pidl-4.1.17-7.el7rhgs.noarch (rhgs3.1-samba-latest-el7)
           Requires: perl(Parse::Yapp)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Comment 5 surabhi 2015-06-05 05:55:57 UTC
Did some more testing and analysis on this and found that the package perl-Parse-Yapp is not part of rhel-7-server repo and it is part of rhel-7-server optional repo.

Other dependencies are present in rhel-7-server repo.

To install samba-pidl we need this perl package so we need to build this for rhgs3.1.

Comment 6 Rejy M Cyriac 2015-06-05 07:07:47 UTC
(In reply to surabhi from comment #5)
> Did some more testing and analysis on this and found that the package
> perl-Parse-Yapp is not part of rhel-7-server repo and it is part of
> rhel-7-server optional repo.
> 
> Other dependencies are present in rhel-7-server repo.
> 
> To install samba-pidl we need this perl package so we need to build this for
> rhgs3.1.

We probably need not *build* this for RHGS 3.1, we may need to ship it to the RHGS 3 samba repo for RHEL7

Comment 7 Jose A. Rivera 2015-06-05 13:59:49 UTC
samba-pidl isn't a requirement of any other package, so the only reason to install it is purely for devel work. We see a few options available, I present them here in ranked order of preference/cleanliness:

 1. Force users to include the RHEL 7 Optional channel if they want to do development work. I imagine all RHS customers should have subscriptions for RHEL 7 Optional?
 2. Include the necessary PERL packages in the base RHGS channel. We don't want to clutter the RHS-SMB channel with anything that isn't strictly Samba-related, at least not yet if we can help it.
 3. Include the necessary PERL packages in the RHS-SMB channel.

Any of these would work, it's just a matter of what makes sense for our product and our customers.

Comment 8 Rejy M Cyriac 2015-06-05 18:13:36 UTC
(In reply to Jose A. Rivera from comment #7)
> samba-pidl isn't a requirement of any other package, so the only reason to
> install it is purely for devel work. We see a few options available, I
> present them here in ranked order of preference/cleanliness:
> 

Ah! This is to help one of your own kind. ;-)

Is the devel work relevant from an RHGS customer point of view ?

>  1. Force users to include the RHEL 7 Optional channel if they want to do
> development work. I imagine all RHS customers should have subscriptions for
> RHEL 7 Optional?

If the samba-pidl is shipped in the RHGS related repos, then its dependency should also be available in the RHGS related repos. We cannot ship a dependency broken package in the RHGS related repos, even if its dependent package might be in some other repo unrelated to RHGS.

>  2. Include the necessary PERL packages in the base RHGS channel. We don't
> want to clutter the RHS-SMB channel with anything that isn't strictly
> Samba-related, at least not yet if we can help it.

I do not understand the logic here. We could ship the necessary PERL packages in the base RHGS channel if the package is of common use to some other component of RHGS as well, such as with pacemaker and corosync packages.

Otherwise, if the reason to ship it at the RHGS channel is just to reduce clutter at the RHS-SMB channel, is it not introducing clutter at the RHGS channel then ? And also, if it is shipped at the RHGS channel, it is possible that it may get installed by chance on an RHGS node which does not use gluster samba, and in future complicate package management on that node.

>  3. Include the necessary PERL packages in the RHS-SMB channel.
> 

This seems to be the best choice to me if we need to ship the samba-pidl package at all on RHEL7.

> Any of these would work, it's just a matter of what makes sense for our
> product and our customers.

Comment 9 Jose A. Rivera 2015-06-05 22:01:32 UTC
(In reply to Rejy M Cyriac from comment #8)
> (In reply to Jose A. Rivera from comment #7)
> >  3. Include the necessary PERL packages in the RHS-SMB channel.
> > 
> 
> This seems to be the best choice to me if we need to ship the samba-pidl
> package at all on RHEL7.

Eh, not the worst idea. :) 

Though I dug a bit deeper and, supposedly, NOTHING ELSE depends on the PERL package in question (perl-Parse-Yapp)? Can someone please verify if that's true? I ran "repoquery --whatrequires perl-Parse-Yapp" on an RHS system I have installed, but... is that right? Can someone maybe run this on a RHEL box with all channels activated?

Comment 10 Vivek Agarwal 2015-06-11 09:59:42 UTC
Based on discussion with Rejy and Surabhi, Got this added to the samba rhel 7 errata: perl-Parse-Yapp-1.05-50.el7

Comment 11 surabhi 2015-07-05 18:24:39 UTC
On RHEL7 With perl-Parse-Yapp-1.05-50.el7 available in samba repo, the samba-pidl package is installed without any dependency issues.
Marking the BZ to verified.

Comment 12 errata-xmlrpc 2015-07-29 04:52:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1495.html


Note You need to log in before you can comment on or make changes to this bug.