Details
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.
Gliffy Diagrams
Attachments
Issue Links
- is duplicated by
-
MDEV-6010 MariaDB update from RPM/YUM repo failed
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
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: