Bug 1612845 - yum update fails with dependency errors
Summary: yum update fails with dependency errors
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nx-libs
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-06 12:12 UTC by Keith
Modified: 2018-12-05 04:51 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-12-05 04:51:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Output from 'yum update' command (5.10 KB, text/plain)
2018-08-06 12:12 UTC, Keith
no flags Details

Description Keith 2018-08-06 12:12:10 UTC
Created attachment 1473591 [details]
Output from 'yum update' command

Description of problem:

Running yum update gives errors relating to dependency problems with several packages related to nx-libs

Version-Release number of selected component (if applicable):

Update from version 3.5.0.33-4 to 3.5.99.16.1


How reproducible:

100%


Steps to Reproduce:
1. Run command 'yum update'
2.
3.

Actual results:

See attached file yum_errors.txt


Expected results:

Update completes without errors


Additional info:

Comment 1 Tim 2018-08-09 13:29:20 UTC
Think I can help speed this along.

Originally libNX_Xdmcp-devel and libNX_Xpm-devel were both missing from the obsoletes, by version 3.5.99.6 (sorry didn't go thru all of them) the below was added which included those packages but lists them with the less than 3.5.0.32-2

Since the last version of those files included in EPEL was 3.5.0.33-4 it looks like a simple mistake in the spec.

Line from the spec file that obsoletes those devel packages but is set to earlier packages, as such it misses the currently installed ones.

%package devel
Group:          Development/Libraries
Summary:        Include files and libraries for NX development
Requires:       libNX_X11-devel%{?_isa} = %{version}-%{release}
Requires:       nx-proto-devel%{?_isa} = %{version}-%{release}
Requires:       %{name}%{?_isa} = %{version}-%{release}
Obsoletes:      libNX_Xau-devel < 3.5.99.1
Obsoletes:      libNX_Xdmcp-devel < 3.5.0.32-2
Obsoletes:      libNX_Xext-devel < 3.5.99.1
Obsoletes:      libNX_Xfixes-devel < 3.5.99.1
Obsoletes:      libNX_Xpm-devel < 3.5.0.32-2
Obsoletes:      libNX_Xrender-devel < 3.5.99.1


I figure the fix is to simply update the spec file to match the other obsoleted packages with a < 3.5.99.1

Comment 2 Tim 2018-08-09 18:31:21 UTC
Keith, The short term fix if you need to patch or have a time limit is to:
rpm -e libNX_Xdmcp-devel libNX_Xpm-devel nx-libs-devel

That should remove the dependency error from yum, and the new packages should call the new nx-libs-devel package to be installed.

Short term fix

Comment 3 Keith 2018-08-10 09:39:36 UTC
Tim,

Thanks for the suggestions.

Rather than use rpm to remove the obsolete packages, I used yum to remove libNX_Xdmcp-devel which also removed libXcompshad-devel and nx-libs-devel as dependencies

Running yum update after these removals showed that libNX_Xpm-devel also needed removing and after removing this with yum the update ran without problems.

Just for completeness, I then used yum to reinstall libXcompshad-devel (version 3.5.99.16-1). This completed without any problems and so my system is full up to date.

Here is the summary from the yum update 

Installed:
  libXcomp-devel.x86_64 0:3.5.99.16-1.el7              nx-libs.x86_64 0:3.5.99.16-1.el7             
  nx-libs-devel.x86_64 0:3.5.99.16-1.el7              

Updated:
  libNX_X11.x86_64 0:3.5.99.16-1.el7               libNX_X11-devel.x86_64 0:3.5.99.16-1.el7         
  libXcomp.x86_64 0:3.5.99.16-1.el7                libXcompshad.x86_64 0:3.5.99.16-1.el7            
  nx-proto-devel.x86_64 0:3.5.99.16-1.el7         

Replaced:
  libNX_Xau.x86_64 0:3.5.0.33-4.el7                libNX_Xau-devel.x86_64 0:3.5.0.33-4.el7          
  libNX_Xcomposite.x86_64 0:3.5.0.33-4.el7         libNX_Xdamage.x86_64 0:3.5.0.33-4.el7            
  libNX_Xdmcp.x86_64 0:3.5.0.33-4.el7              libNX_Xext.x86_64 0:3.5.0.33-4.el7               
  libNX_Xext-devel.x86_64 0:3.5.0.33-4.el7         libNX_Xfixes.x86_64 0:3.5.0.33-4.el7             
  libNX_Xfixes-devel.x86_64 0:3.5.0.33-4.el7       libNX_Xinerama.x86_64 0:3.5.0.33-4.el7           
  libNX_Xpm.x86_64 0:3.5.0.33-4.el7                libNX_Xrandr.x86_64 0:3.5.0.33-4.el7             
  libNX_Xrender.x86_64 0:3.5.0.33-4.el7            libNX_Xrender-devel.x86_64 0:3.5.0.33-4.el7      
  libNX_Xtst.x86_64 0:3.5.0.33-4.el7               libXcompext.x86_64 0:3.5.0.33-4.el7              
  libXcompext-devel.x86_64 0:3.5.0.33-4.el7       



Thanks again


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