Skip to main content
Topic: [SOLVED}: problem installing mariadb-11.4.3-1 (Read 289 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED}: problem installing mariadb-11.4.3-1

When installing/e-installing mariadb-11.4.3-1 I see this error
Code: [Select]
:: Processing package changes...
(1/1) reinstalling mariadb                         [Co  o  o  o  o  o  o  ]   0%
(1/1) reinstalling mariadb                         [----------------------] 100%
/tmp/alpm_6UyHHL/.INSTALL: line 19: warning: here-document at line 4 delimited by end-of-file (wanted `EOM')
/tmp/alpm_6UyHHL/.INSTALL: line 20: syntax error: unexpected end of file
/usr/bin/bash: line 1: post_upgrade: command not found
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/2) Creating system user accounts...
(2/2) Creating temporary files...

I looked at the .INSTALL and it seems that the EOM markers have leading space which causes the error ie
Code: [Select]
#!/bin/sh

post_install() {
       cat <<-EOM
       :: You need to initialize the MariaDB data directory prior to starting
          the service. This can be done with mariadb-install-db command, e.g.:
            # mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
       EOM
}

post_upgrade() {
  # show for feature release: 10.1 -> 10.2 -> 10.3 -> ...
  if [ $(vercmp "${1%.*-*}" "${2%.*-*}") -ne 0 ]; then
       cat <<-EOM
       :: MariaDB was updated to a new feature release. To update the data run:
            # mariadb-upgrade -u root -p
       EOM
  fi
}

Re: problem installing mariadb-11.4.3-1

Reply #1
Maybe smth gone wrong when copying this file from Artix sources. Pushed a fix, but it may take a while before i upload package
ARMtix

 

Re: problem installing mariadb-11.4.3-1

Reply #2
thanks, FWIW I don't think the install failure made much difference to the outcome as I think that code is just informative.