On 09/03/2013 03:24 PM, [email protected] wrote:
On 03-Sep-2013 15:11:51 +0200, John Spencer wrote:

  >  it turns out, that with 5.6.11 it works just fine with make
  >  DESTDIR=foobar install (rest of buildscript stayed the same,
  >  only the segments part removed)

I've tried to build 5.6.13, and it failed:

[ 65%] Building CXX object sql/CMakeFiles/binlog.dir/rpl_gtid_set.cc.o
/home/gremlin/RPM/BUILD/mysql-5.6.13/sql/rpl_gtid_set.cc: In function 'rpl_gno 
parse_gno(const char**)':
/home/gremlin/RPM/BUILD/mysql-5.6.13/sql/rpl_gtid_set.cc:395:25: error: 
'LLONG_MAX' was not declared in this scope
make[2]: *** [sql/CMakeFiles/binlog.dir/rpl_gtid_set.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/binlog.dir/all] Error 2
make: *** [all] Error 2
error: Bad exit status from /home/gremlin/RPM/tmp/rpm-tmp.55534 (%build)

I didn't investigate that thoroughly yet.

that looks as if rpl_gtid_set.cc should include limits.h


  >  now i'm trying to figure out how i can prevent it from install
  >  its 10K tests eating 180MB of hd space.

That's simple: you can use /bin/rm inside the %install section :-)



i'm trying to find a way it doesnt get copied around to save build time...

this seems to work
echo "RETURN()" > tests/CMakeLists.txt
echo "RETURN()" > libmysqld/examples/CMakeLists.txt
sed -i 's@  ADD_SUBDIRECTORY(tests)@@' CMakeLists.txt || exit 1
sed -i 's@  ADD_SUBDIRECTORY(mysql-test)@@' CMakeLists.txt || exit 1
sed -i 's@ ADD_SUBDIRECTORY(mysql-test/lib/My/SafeProcess)@@' CMakeLists.txt || exit 1

rm -rf tests mysql-test


Reply via email to