[MXS-50] Removing 1.0.5 RPM gives error about /etc/ld.so.conf.d/maxscale.conf Created: 2015-03-18  Updated: 2015-05-06  Resolved: 2015-03-19

Status: Closed
Project: MariaDB MaxScale
Component/s: None
Affects Version/s: 1.0.5
Fix Version/s: 1.1.0

Type: Bug Priority: Minor
Reporter: Kolbe Kegel (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

CentOS 6



 Description   

If you upgrade from MaxScale 1.0.4 to 1.0.5, and try to remove the 1.0.5 RPM, you get an error.

[root@max1 skysql]# rpm -i http://downloads.mariadb.com/software/MaxScale/maxscale/RPM/rhel6/maxscale-1.0.4-stable.rpm
[root@max1 skysql]# yum update maxscale
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package maxscale.x86_64 0:1.0.4-1 will be updated
---> Package maxscale.x86_64 0:1.0.5-1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Updating:
maxscale x86_64 1.0.5-1 maxscale 5.0 M

Transaction Summary
============================================================================================================================================================================================================
Upgrade 1 Package(s)

Total download size: 5.0 M
Is this ok [y/N]: y
Downloading Packages:
maxscale-1.0.5-stable.rpm | 5.0 MB 00:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Updating : maxscale-1.0.5-1.x86_64 1/2
Cleanup : maxscale-1.0.4-1.x86_64 2/2
Verifying : maxscale-1.0.5-1.x86_64 1/2
Verifying : maxscale-1.0.4-1.x86_64 2/2

Updated:
maxscale.x86_64 0:1.0.5-1

Complete!
[root@max1 skysql]# rpm -e maxscale
rm: cannot remove `/etc/init.d/maxscale': No such file or directory
rm: cannot remove `/etc/ld.so.conf.d/maxscale.conf': No such file or directory
warning: %postun(maxscale-1.0.5-1.x86_64) scriptlet failed, exit status 1



 Comments   
Comment by Timofey Turenko [ 2015-03-19 ]

postinst is not executed during package upgrade. fixing it.

Comment by markus makela [ 2015-03-19 ]

Fixed RPM generating errors if the script file is missing.

Generated at Thu Feb 08 03:56:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.