Bug 2362815

Summary: vpnc and vpnc-consoleuser both install vpnc and vpnc-helper to same destination since merge of /usr/sbin and /usrbin
Product: [Fedora] Fedora Reporter: Quentin Armitage <quentin>
Component: vpncAssignee: Christian Krause <chkr>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 42CC: chkr, fschwarz, huzaifas, rjones, simon
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-02 23:53:33 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 Quentin Armitage 2025-04-28 22:19:13 UTC
vpnc.spec specifies

%package consoleuser
Requires: usermode
	
%install
make install DESTDIR="$RPM_BUILD_ROOT" PREFIX=/usr SBINDIR=%{_sbindir}
ln -sf consolehelper $RPM_BUILD_ROOT%{_bindir}/vpnc
ln -sf consolehelper $RPM_BUILD_ROOT%{_bindir}/vpnc-disconnect

%files
%{_sbindir}/vpnc
%{_sbindir}/vpnc-disconnect

%files consoleuser
%{_bindir}/vpnc
%{_bindir}/vpnc-disconnect

Since the merge of /usr/sbin and /usr/bin, the two files listed above under %files and the same location of the 2 files under %files consoleuser.

Since in the %install section the links to consolehelper are done after make install, installing the vpnc package results in links /usr/bin/vpnc -> consolehelper (and likewise for vpnc-disconnect), but the vpnc package does not have a Requires: usermode, and to the installation results in dangling links if usermode is not installed.

Reproducible: Always

Steps to Reproduce:
1. Install vpnc without vpnc-consoleuser or usermode installed
2.
3.
Actual Results:
/usr/bin/vpnc and /usr/bin/vpnc-disconnect are links to consolehelper which does not exist.

Expected Results:
/usr/bin/vpnc and /usr/bin/vpnc-disconnect installed from the vpnc package should not be symbolic links but should be the compiled binary files/scripts.

Additional Information:
Do the vpnc and vpnc-disconnect files installed by vpnc-consoleuser be renamed so that they don't conflict with the files from the vpnc package?

Comment 1 Christian Krause 2025-05-02 23:53:33 UTC
Thanks for reporting the bug. There is a second bug report which already contains additional information. Let's close this one as duplicate.

*** This bug has been marked as a duplicate of bug 2363531 ***