[MDEV-5986] MariaDB upgrade on CentOS 6 fails due to sed error Created: 2014-03-31 Updated: 2014-04-18 Resolved: 2014-04-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.36, 10.0.10 |
| Fix Version/s: | 5.5.37, 10.0.11 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Heinz Wiesinger | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | packaging | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| 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:
Full error message is attached as log file. |
| Comments |
| Comment by Elena Stepanova [ 2014-03-31 ] | |||||||||||
|
The problem affects minor upgrades too, so it must be fixed by 5.5.37 release. The line in the pre-in script is 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:
| |||||||||||
| Comment by Tom Atkinson [ 2014-04-01 ] | |||||||||||
|
Suggested fix:
or
| |||||||||||
| Comment by Chris Hills (Inactive) [ 2014-04-02 ] | |||||||||||
|
I would suggest simply:-
In the mean time you can upgrade like this:-
| |||||||||||
| Comment by Hansen Ler [ 2014-04-04 ] | |||||||||||
|
Thanks Christ for the workaround. Just remember after running this script
Remember to start your SQL server
| |||||||||||
| Comment by Elena Stepanova [ 2014-04-04 ] | |||||||||||
|
...and don't forget to run mysql_upgrade. |