Created attachment 162732 [details] Proposed patch I've attached a patch for the new upstream version with some additional necessary changes for CMake 3.1.0 and a new library. Thanks in advance.
This fails to build: http://pd.valinor.palantiri.org/data/93amd64-default/2015-11-30_18h33m28s/logs/errors/xtrabackup-2.3.2.log
Your build on FreeBSD 9.3 fails with: [ 99%] Building CXX object sql/CMakeFiles/sql.dir/sql_udf.cc.o cd /wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/sql && /usr/local/libexec/ccache/c++ -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DMYSQL_SERVER -I/wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/include -I/wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/sql -I/wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/regex -I/wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/extra/yassl/include -I/wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/extra/yassl/taocrypt/include -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -O2 -pipe -fstack-protector -fno-strict-aliasing -DDBUG_OFF -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -o CMakeFiles/sql.dir/sql_udf.cc.o -c /wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/sql/sql_udf.cc /wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/storage/innobase/xtrabackup/src/backup_copy.cc:51:30: error: version_check_pl.h: No such file or directory /wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/storage/innobase/xtrabackup/src/backup_copy.cc: In function 'void version_check()': /wrkdirs/usr/ports/databases/xtrabackup/work/percona-xtrabackup-2.3.2/storage/innobase/xtrabackup/src/backup_copy.cc:1895: error: 'version_check_pl' was not declared in this scope [ 99%] Building CXX object sql/CMakeFiles/sql.dir/sql_union.cc.o Currently I have only machines with FreeBSD 10.x and here it builds without any problems. And I don't know why this file is missing on your system during the compile process: # find . -name version_check_pl.h ./work/percona-xtrabackup-2.3.2/storage/innobase/xtrabackup/src/version_check_pl.h
Created attachment 164818 [details] New patch Previous patch failed build on my poudriere of FreeBSD 9, 10 and head. Here is a new patch which build well. Would you have a test of it ? wen
Hi, Wen why you adding vim as a lib dependency?
(In reply to Martin Wilke from comment #4) Without vim, build fail. Maybe depends on vim-lite is a better way, I did not test. wen(In reply to Martin Wilke from comment #4)
Created attachment 165830 [details] New proposed patch to 2.3.3 Please take a look at this: https://github.com/percona/percona-xtrabackup/pull/136 I've only added vim-lite to the build dependencies because of the necessary xxd binary. The build works also, when there is the full vim package installed.
Still some plist error in this patch.
A commit references this bug: Author: wen Date: Wed Jan 20 03:36:51 UTC 2016 New revision: 406729 URL: https://svnweb.freebsd.org/changeset/ports/406729 Log: - Update to 2.3.3 PR: 204251 Submitted by: tbabut@mobileobjects.de Approved by: maintainer(timeout, >60 days) Changes: head/databases/xtrabackup/Makefile head/databases/xtrabackup/distinfo head/databases/xtrabackup/files/patch-libarchive-CMakeLists.txt