[Groonga-mysql-commit] mroonga/mroonga at 310bb38 [master] yum: support to build specific version of CentOS packages

Back to archive index

Kentaro Hayashi null+****@clear*****
Fri Jul 21 16:26:07 JST 2017


Kentaro Hayashi	2017-07-21 16:26:07 +0900 (Fri, 21 Jul 2017)

  New Revision: 310bb38a82a5cf1d79ad075a436ebbcbac021d23
  https://github.com/mroonga/mroonga/commit/310bb38a82a5cf1d79ad075a436ebbcbac021d23

  Message:
    yum: support to build specific version of CentOS packages
    
    Use case: build with latest MySQL on CentOS 6
      $ make build MYSQL_VARIANTS="mysql56-community mysql57-community" CENTOS_VERSIONS=6

  Modified files:
    packages/yum/Makefile.am
    packages/yum/build-in-vm.sh

  Modified: packages/yum/Makefile.am (+3 -1)
===================================================================
--- packages/yum/Makefile.am    2017-07-21 16:24:52 +0900 (77e847d)
+++ packages/yum/Makefile.am    2017-07-21 16:26:07 +0900 (9eeb0ff)
@@ -8,6 +8,7 @@ MYSQL_VARIANTS =				\
 	mariadb					\
 	percona-server-56			\
 	percona-server-57
+CENTOS_VERSIONS = 6 7
 SPEC_DIR = $(builddir)/../rpm/centos
 
 all:
@@ -53,7 +54,8 @@ build-in-vm: source specs env.sh
 	  "$(PACKAGE)"				\
 	  "$(SPEC_DIR)"				\
 	  "$(MYSQL_VARIANTS)"			\
-	  "$(ARCHITECTURES)"
+	  "$(ARCHITECTURES)"			\
+	  "$(CENTOS_VERSIONS)"
 
 source: tmp/$(PACKAGE)-$(VERSION).tar.gz
 

  Modified: packages/yum/build-in-vm.sh (+12 -2)
===================================================================
--- packages/yum/build-in-vm.sh    2017-07-21 16:24:52 +0900 (bb3ebec)
+++ packages/yum/build-in-vm.sh    2017-07-21 16:26:07 +0900 (8b99a1b)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-if [ $# != 4 ]; then
+if [ $# != 5 ]; then
     echo "Usage: $0 PACKAGE SPEC_DIR MYSQL_VARIANTS ARCHITECTURES"
-    echo " e.g.: $0 mroonga ../rpm/centos 'mysql55 mariadb' 'i386 x86_64'"
+    echo " e.g.: $0 mroonga ../rpm/centos 'mysql55 mariadb' 'i386 x86_64' '6 7'"
     exit 1
 fi
 
@@ -10,6 +10,7 @@ PACKAGE="$1"
 SPEC_DIR="$2"
 MYSQL_VARIANTS="$3"
 ARCHITECTURES="$4"
+CENTOS_VERSIONS="$5"
 
 run()
 {
@@ -51,6 +52,15 @@ for mysql_variant in ${MYSQL_VARIANTS}; do
 
   for architecture in ${architectures}; do
     for centos_version in ${centos_versions}; do
+      skip=1
+      for given_version in ${CENTOS_VERSIONS}; do
+        if [ ${given_version} = ${centos_version} ]; then
+          skip=0
+        fi
+      done
+      if [ $skip -eq 1 ]; then
+        continue
+      fi
       if [ ${mysql_variant} = mysql55 -a ${centos_version} = 6 -a ${architecture} = i386 ]; then
         continue
       fi
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index