Description of problem: I've made yum update in RHEL5 and I've got Error: Missing Dependency: upstart is needed Version-Release number of selected component (if applicable): vpnc-0.5.3-6.el5.x86_64 How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: [root@josef ~]# yum update Loaded plugins: fastestmirror, rhnplugin Loading mirror speeds from cached hostfile * epel: mirror.karneval.cz Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package vpnc.x86_64 0:0.5.3-6.el5 set to be updated --> Processing Dependency: upstart for package: vpnc --> Finished Dependency Resolution vpnc-0.5.3-6.el5.x86_64 from epel has depsolving problems --> Missing Dependency: upstart is needed by package vpnc-0.5.3-6.el5.x86_64 (epel) Error: Missing Dependency: upstart is needed by package vpnc-0.5.3-6.el5.x86_64 (epel) Expected results: remove dependency on upstart from EPEL build od this package Additional info:
This is the diff that made the change: http://cvs.fedoraproject.org/viewvc/EL-5/vpnc/vpnc.spec?r1=1.19&r2=1.20 * Tue Jan 05 2009 Huzaifa Sidhpurwala <huzaifas> - 0.5.3-4 - Build from F-12 branch
see line 23: Requires: upstart iproute you've installed file to vpnc-cleanup /etc/event.d/ What is vpnc-cleanup doing? I'm not familiar with upstart yet, but we will need create another script for EPEL and put it to /etc/init.d and run "chkconfig --add" in %post section in .spec
My suggestion to .spec Requires: iproute %if "%{dist}" != ".el4" && "%{dist}" != ".el4" Requires: upstart %else Requires(post): chkconfig %endif %preun %if "%{dist}" == ".el4" || "%{dist}" == ".el4" chkconfig --del vpnc-cleanup %endif %post %if "%{dist}" == ".el4" || "%{dist}" == ".el4" chkconfig --add vpnc-cleanup %endif %install mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d install -m755 vpnc-cleanup-initrc $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/vpnc-cleanup and you need correct file section too
Created attachment 390117 [details] script to /etc/init.d
*** This bug has been marked as a duplicate of bug 563194 ***
The patch wont work because the vpnc-cleanup script is used by upstart. since EL-5 does not have upstart it has to go. The spec is fixed in cvs now, waiting for koji to come up so that i can build.