Giter Club home page Giter Club logo

webscalesql-rpm's Introduction

WebScaleSQL RPM file builder

See: http://blog.wl0.org/2014/04/webscalesql-rpms-for-centos-6/ which describes the build process I started with to build WebScaleSQL rpms for CentOS 6.

The build script on this page attempts to simplify the procedure so that rpms can be built when any changes get applied to the webscalesql-5.6 git repo which is assumed to be on the same server.

Build Procedure

  • Get my WebScaleSQL build scripts:
$ git clone https://github.com/sjmudd/webscalesql-rpm.git
  • Get the WebScaleSQL source:
$ git clone https://github.com/webscalesql/webscalesql-5.6.git
  • Install the build requirements
    WebScaleSQL requires a newer GCC than that provided on CentOS 6, so one of the following toolsets needs to be installed: devtoolset-1.1 (GCC 4.7) or devtoolset-2 (GCC 4.8). By default the required packages in devtoolset-2 are installed.

To simplify the devtoolset installation simply run:

$ cd websalesql-rpm
$ ./install-build-rquirements

and this will install this and a few other required packages needed to build the rpms. If you really want to install devtoolset-1.1 then do the following:

$ ./install-build-rquirements 1.1
  • Build the rpm
$ ./build [/path/to/local/webscalesql.git/repo]

This will take a while and leave a log file in build.log.<timestamp>.gz.

The path will be remembered so you only need to add that once. Subsequent runs can just call build on its own.

  • If you want to build a new rpm after pulling updates on the webscalesql repo just run build again. It will patch webscalesql.spec and run the build with the new version.

  • Package naming
    I have now modified the package build procedure to version the package name as suggested by Steaphan Greene's in a comment on 11th April 2014. See: https://www.facebook.com/groups/webscalesql/?fref=ts. Given rpm does not like to have hyphens in the version number I have replaced this with a period, so for example the last rpm I've built now identifies itself as being version 5.6.17.68. There may be a one-off version mismatch in the last digit, but I haven't had time to double check. I'm sure someone will correct this if this is wrong.

  • performance_schema
    This build currently does not include performance_schema (default MySQL build behaviour) as this has been disabled by default in WebScaleSQL. If you have performance_schema tables from a previous MySQL-server install, the table names will be visible, but if you try to select from them you'll get an error like this:

root@myserver [performance_schema]> select * from users;
ERROR 1286 (42000): Unknown storage engine 'PERFORMANCE_SCHEMA'

I will try to see if it is possible to build with performance_schema enabled, or make this configurable.

  • NOTE on RPMS for CentOS 5 I had a quick go to build webscalesql rpms for CentOS 5 and found a couple of issues. If anyone wants to provide me patches to make this work I'll happily incorporate them.

Feedback welcome to Simon J Mudd [email protected].

webscalesql-rpm's People

Contributors

sjmudd avatar

Stargazers

Tony Adinolfi avatar Tomislav Plavcic avatar George Liu (eva2000) avatar Richard Kuesters avatar

Watchers

 avatar James Cloos avatar Sandeep Sangamreddi avatar George Liu (eva2000) avatar  avatar

Forkers

ltmhp serujio3110

webscalesql-rpm's Issues

build error Docs/INFO_SRC No such file or directory

Just tried building a Docker image with CentOS 6.6 and your webscalesql-rpm setup and tried building webscalesql rpms and got the following error

+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /bin/true
+ /usr/lib/rpm/redhat/brp-strip-static-archive /bin/true
+ /usr/lib/rpm/redhat/brp-strip-comment-note /bin/true /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: webscalesql-server-5.6.23.97312-1.rhel6.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.KNtETX
+ umask 022
+ cd /home/rpmbuilder/rpmbuild/BUILD
+ cd webscalesql-5.6.23.97312
+ DOCDIR=/home/rpmbuilder/rpmbuild/BUILDROOT/webscalesql-5.6.23.97312-1.rhel6.x86_64/usr/share/doc/webscalesql-server-5.6.23.97312
+ export DOCDIR
+ rm -rf /home/rpmbuilder/rpmbuild/BUILDROOT/webscalesql-5.6.23.97312-1.rhel6.x86_64/usr/share/doc/webscalesql-server-5.6.23.97312
+ /bin/mkdir -p /home/rpmbuilder/rpmbuild/BUILDROOT/webscalesql-5.6.23.97312-1.rhel6.x86_64/usr/share/doc/webscalesql-server-5.6.23.97312
+ cp -pr webscalesql-5.6.23.97312/COPYING webscalesql-5.6.23.97312/README /home/rpmbuilder/rpmbuild/BUILDROOT/webscalesql-5.6.23.97312-1.rhel6.x86_64/usr/share/doc/webscalesql-server-5.6.23.97312
+ cp -pr webscalesql-5.6.23.97312/Docs/ChangeLog /home/rpmbuilder/rpmbuild/BUILDROOT/webscalesql-5.6.23.97312-1.rhel6.x86_64/usr/share/doc/webscalesql-server-5.6.23.97312
+ cp -pr 'webscalesql-5.6.23.97312/Docs/INFO_SRC*' /home/rpmbuilder/rpmbuild/BUILDROOT/webscalesql-5.6.23.97312-1.rhel6.x86_64/usr/share/doc/webscalesql-server-5.6.23.97312
cp: cannot stat `webscalesql-5.6.23.97312/Docs/INFO_SRC*': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.KNtETX (%doc)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.KNtETX (%doc)

went looking

ls -lah /home/rpmbuilder/rpmbuild/BUILD/webscalesql-5.6.23.97312/webscalesql-5.6.23.97312/Docs
total 188K
drwxr-xr-x  2 rpmbuilder rpmbuilder 4.0K Feb 20 21:49 .
drwxr-xr-x 34 rpmbuilder rpmbuilder 4.0K Feb 22 01:28 ..
-rw-r--r--  1 rpmbuilder rpmbuilder   59 Feb 20 21:49 ChangeLog
-rw-r--r--  1 rpmbuilder rpmbuilder 100K Feb 20 21:49 INSTALL-BINARY
-rw-r--r--  1 rpmbuilder rpmbuilder  31K Feb 20 21:49 myisam.txt
-rw-r--r--  1 rpmbuilder rpmbuilder  41K Feb 20 21:49 sp-imp-spec.txt

Performance schema does not work on webscalesql but does on MySQL-server

Something is wrong with the build that I'm doing or that patches that have been applied that performance_schema is not built-in. It would be nice to make this work (if possible) as performance_schema has lots of nice features, but if it's disabled for performance reasons this should be configurable in the rpm build so people can choose what to do.

Investigate why it's not working and decide how to fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.