Navigation Menu

Skip to content

Commit

Permalink
package: ensure deleting mroonga plugin from mysql.plugin before install
Browse files Browse the repository at this point in the history
[groonga-dev,00948]

Suggested by Kazuhiro Isobe. Thanks!!!
  • Loading branch information
kou committed Jun 11, 2012
1 parent 5b3d88d commit 3b24a4d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/debian/changelog
@@ -1,6 +1,8 @@
mroonga (2.04-1) unstable; urgency=low

* New upstream release.
* Ensure deleting mroonga plugin before install.
Suggested by Kazuhiro Isobe. Thanks!!!

-- Kouhei Sutou <kou@clear-code.com> Fri, 29 Jun 2012 00:00:00 +0900

Expand Down
1 change: 1 addition & 0 deletions packages/debian/mysql-server-mroonga.postinst
Expand Up @@ -6,6 +6,7 @@ prevver="$2"

install_plugin() {
cat <<EOS | mysql --defaults-file=/etc/mysql/debian.cnf || true
DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga';
INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so';
EOS
Expand Down
3 changes: 3 additions & 0 deletions packages/rpm/centos/mysql-mroonga.spec.in
Expand Up @@ -131,6 +131,7 @@ if [ "$1" = 2 ] ; then
echo " $command")
fi
sql="
DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga';
INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so';
"
Expand Down Expand Up @@ -168,6 +169,8 @@ fi
%changelog
* Fri Jun 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.04-0
- new upstream release.
- ensure deleting mroonga plugin before install.
Suggested by Kazuhiro Isobe. Thanks!!!

* Tue May 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.03-0
- new upstream release.
Expand Down
3 changes: 3 additions & 0 deletions packages/rpm/fedora/mysql-mroonga.spec.in
Expand Up @@ -79,6 +79,7 @@ if [ "$1" = 2 ] ; then
echo " $command")
fi
sql="
DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga';
INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so';

Expand Down Expand Up @@ -117,6 +118,8 @@ fi
%changelog
* Fri Jun 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.04-0
- new upstream release.
- ensure deleting mroonga plugin before install.
Suggested by Kazuhiro Isobe. Thanks!!!

* Tue May 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.03-0
- new upstream release.
Expand Down

0 comments on commit 3b24a4d

Please sign in to comment.