Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
5.5.36, 10.0.10
-
None
Description
When updating MariaDB-server from 5.5.36 to 10.0.10 on CentOS, an error happens when trying to check information about the already installed MariaDB-server package.
The main issue seems to revolve around an invalid sed syntax:
Error in PREIN scriptlet in rpm package MariaDB-server-10.0.10-1.el6.x86_64
sed: invalid option – '1'
Full error message is attached as log file.
Attachments
Issue Links
- is duplicated by
-
MDEV-6010 MariaDB update from RPM/YUM repo failed
-
- Closed
-
The problem affects minor upgrades too, so it must be fixed by 5.5.37 release.
The line in the pre-in script is
installed=`echo "$installed"|sed -n -1p`
I'm not sure whether -1p is a non-standard sed option or a typo, but since it doesn't work with standard sed on the target systems, it can't be used.
It was introduced in 5.5 tree by the following revision:
revno: 4118
revision-id: sergii@pisem.net-20140324190137-t0554znbq5ed1w10
parent: sergii@pisem.net-20140319090334-mpgf90l05547ji8y
committer: Sergei Golubchik <sergii@pisem.net>
branch nick: 5.5
timestamp: Mon 2014-03-24 20:01:37 +0100
message:
MDEV-5831 Upgrade from MariaDB 5.5.36 via yum fails
Allow "rpm -q --whatprovides mysql-server" to return more than one row.
(all rows should be identical though)