Bug 17967

Summary: broken symlink from libexpect.so
Product: Mageia Reporter: David GEIGER <geiger.david68210>
Component: RPM PackagesAssignee: Shlomi Fish <shlomif>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: expect-5.45-2.mga6.src.rpm CVE:
Status comment:

Description David GEIGER 2016-03-12 10:32:27 CET
I found a packaging issue on expect package from Cauldron, the symlink libexpect.so points to a wrong library:

$ ls /usr/lib64/ |grep expect
libexpect5.45.so*
libexpect.so@
$

$ LC_ALL=C ls -l /usr/lib64/libexpect.so 
lrwxrwxrwx 1 root root 23 Feb 11 08:19 /usr/lib64/libexpect.so -> libexpect%{majorver}.so
$


We can see that libexpect.so points to libexpect%{majorver}.so instead of libexpect5.45.so


Also this broken symlink broke php-expect build due to a not found "-lexpect" lib.
David GEIGER 2016-03-12 10:32:58 CET

Assignee: bugsquad => shlomif

Comment 1 Shlomi Fish 2016-03-12 12:36:40 CET
(In reply to David GEIGER from comment #0)
> I found a packaging issue on expect package from Cauldron, the symlink
> libexpect.so points to a wrong library:
> 
> $ ls /usr/lib64/ |grep expect
> libexpect5.45.so*
> libexpect.so@
> $
> 
> $ LC_ALL=C ls -l /usr/lib64/libexpect.so 
> lrwxrwxrwx 1 root root 23 Feb 11 08:19 /usr/lib64/libexpect.so ->
> libexpect%{majorver}.so
> $
> 
> 
> We can see that libexpect.so points to libexpect%{majorver}.so instead of
> libexpect5.45.so
> 
> 
> Also this broken symlink broke php-expect build due to a not found
> "-lexpect" lib.

This should be fixed in the %mkrel 3 - http://pkgsubmit.mageia.org/ - expect-5.45-3.mga6 . Please close if this is the case.

Status: NEW => ASSIGNED

Comment 2 David GEIGER 2016-03-12 14:29:50 CET
So now there is another problem:

both library and devel subpackages provides the same files:

lib64expect-devel-5.45-3.mga6.x86_64.rpm provides:
/usr/lib64/libexpect.so
/usr/lib64/libexpect5.45.so


lib64expect5.45-5.45-3.mga6.x86_64.rpm provides:
/usr/lib64/libexpect5.45.so
Comment 3 Shlomi Fish 2016-03-12 16:21:01 CET
(In reply to David GEIGER from comment #2)
> So now there is another problem:
> 
> both library and devel subpackages provides the same files:
> 
> lib64expect-devel-5.45-3.mga6.x86_64.rpm provides:
> /usr/lib64/libexpect.so
> /usr/lib64/libexpect5.45.so
> 
> 
> lib64expect5.45-5.45-3.mga6.x86_64.rpm provides:
> /usr/lib64/libexpect5.45.so

Should be fixed in %mkrel 4 - thanks!
Comment 4 David GEIGER 2016-03-12 17:44:55 CET
Thanks! fixed now with release %mkrel 5.

Closing of this bug as FIXED.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED