Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590408 - dev-db/percona-xtrabackup-2.4.4 : CMake Error at storage/.../CMakeLists.txt:33 (MESSAGE):
Summary: dev-db/percona-xtrabackup-2.4.4 : CMake Error at storage/.../CMakeLists.txt:3...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-03 17:18 UTC by Toralf Förster
Modified: 2016-08-11 09:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
CMakeError.log (CMakeError.log,129.04 KB, text/plain)
2016-08-03 17:18 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,495.49 KB, text/plain)
2016-08-03 17:18 UTC, Toralf Förster
Details
dev-db:percona-xtrabackup-2.4.4:20160803-171127.log (dev-db:percona-xtrabackup-2.4.4:20160803-171127.log,33.38 KB, text/plain)
2016-08-03 17:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,86.81 KB, text/plain)
2016-08-03 17:18 UTC, Toralf Förster
Details
environment (environment,15.95 KB, text/plain)
2016-08-03 17:18 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-08-03 17:18:40 UTC
-- libev libraries found at: /usr/lib64/libev.so
-- libev includes found at: /usr/include
CMake Error at storage/innobase/xtrabackup/src/CMakeLists.txt:33 (MESSAGE):
  xxd not found.  Try to install vim-common.




$ cat emerge-info.txt
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-gnome-unstable_20160802-092648) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------
  USE flags defined in ...

  ... make.conf:
USE="  pax_kernel xtpax -cdinstall -oci8 -bindist cairo cdb cgi compat consolekit dec_av2 dot dvd egl evdev exif freetds gtk -gtkstyle gudev haptic imap isag jadetex libvirtd minimal -mng mod mta multitarget networking obj objc openmpi openssl qt4 -sdl source spice sqlite ssh-askpass sslv3 swscale -system-cairo threads traceroute udisks usb utils v4l2 -wav webgl webkit -webstart x264 xetex xscreensaver xslt xvfb xz zip zlib"

  ... /etc/portage/package.use/*:
  dev-util/cmake -qt4 
  mail-mta/ssmtp    ssl
  net-misc/wget     ssl
  app-editors/emacs -dbus -svg -ssl -gtk -gtk3
  net-misc/iputils -caps -filecaps

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-4.9.3
 [2] x86_64-pc-linux-gnu-5.4.0 *
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby20 (with Rubygems) *
  [2]   ruby21 (with Rubygems)
  -----------------------------------------------------------------

Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-5.4.0, glibc-2.23-r2, 4.6.5-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.6.5-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16156124 total,   1137584 free
KiB Swap:   16777212 total,  13786876 free
Timestamp of repository gentoo: Wed, 03 Aug 2016 16:03:43 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 1

local
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdb cdda cdr cgi cli colord compat consolekit cracklib crypt cups cxx dbus dec_av2 dot dri dts dvd dvdr eds egl emboss encode evdev evo exif fam firefox flac fortran freetds gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gudev haptic iconv imap introspection ipv6 isag jadetex jpeg lcms ldap libnotify libsecret libvirtd mad minimal mmx mmxext mod modules mp3 mp4 mpeg mta multilib multitarget nautilus ncurses networking nls nptl obj objc ogg opengl openmp openmpi openssl pam pango pax_kernel pcre pdf png policykit ppds pulseaudio qt3support qt4 readline seccomp session source spell spice sqlite sse sse2 ssh-askpass ssl sslv3 startup-notification svg swscale tcpd threads tiff traceroute tracker truetype udev udisks unicode upower usb utils v4l2 vorbis webgl webkit wxwidgets x264 xattr xcb xetex xml xscreensaver xslt xtpax xv xvfb xvid xz zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="bg ca-valencia fil gl kmr-Latn pa sq zh" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Toralf Förster gentoo-dev 2016-08-03 17:18:42 UTC
Created attachment 442410 [details]
CMakeError.log
Comment 2 Toralf Förster gentoo-dev 2016-08-03 17:18:45 UTC
Created attachment 442412 [details]
CMakeOutput.log
Comment 3 Toralf Förster gentoo-dev 2016-08-03 17:18:48 UTC
Created attachment 442414 [details]
dev-db:percona-xtrabackup-2.4.4:20160803-171127.log
Comment 4 Toralf Förster gentoo-dev 2016-08-03 17:18:51 UTC
Created attachment 442416 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2016-08-03 17:18:53 UTC
Created attachment 442418 [details]
environment
Comment 6 Tomáš Mózes 2016-08-04 04:49:56 UTC
Thanks for the report Toralf, should be fixed via https://github.com/gentoo/gentoo/pull/2008.

I'll leave it open until it's merged to the tree.
Comment 7 Phil Stracchino (Unix Ronin) 2016-08-08 14:56:17 UTC
I found this bug while looking for reports on a different bug in the same release.  I see the fix says 'added missing dep on vim-core'.  Why should Percona XtraBackup be dependent on any part of vim?
Comment 8 manwe 2016-08-08 15:00:25 UTC
Because it uses xxd:

CMake Error at storage/innobase/xtrabackup/src/CMakeLists.txt:33 (MESSAGE):
  xxd not found.  Try to install vim-common.
Comment 9 Phil Stracchino (Unix Ronin) 2016-08-08 15:07:14 UTC
I see that in 2.4.4, yes.  2.4.3 and every previous version built just fine without it.  Why does 2.4.4 suddenly need vim-core?  This has the smell of an "Oops" somewhere.
Comment 10 Phil Stracchino (Unix Ronin) 2016-08-08 15:11:07 UTC
But (sigh) maybe it's just dependency creep.....
Comment 11 Tomáš Mózes 2016-08-10 05:42:28 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #9)
> I see that in 2.4.4, yes.  2.4.3 and every previous version built just fine
> without it.  Why does 2.4.4 suddenly need vim-core?  This has the smell of
> an "Oops" somewhere.

Are you sure? A quick grep on 2.4.3/2.4.4 src dir shows the same results:

$ grep -r xxd percona-xtrabackup-2.4.3
percona-xtrabackup-2.4.3/storage/innobase/xtrabackup/src/CMakeLists.txt:# xxd is needed to embed version_check script
percona-xtrabackup-2.4.3/storage/innobase/xtrabackup/src/CMakeLists.txt:FIND_PROGRAM(XXD_PATH xxd)
percona-xtrabackup-2.4.3/storage/innobase/xtrabackup/src/CMakeLists.txt:  MESSAGE(FATAL_ERROR "xxd not found. Try to install vim-common.")
percona-xtrabackup-2.4.3/storage/innobase/xtrabackup/doc/source/release-notes/2.3/2.3.3.rst: Fixed build issues by adding missing check in ``cmake`` script for ``xxd`` presence. Bug fixed :bug:`1511267`.

$ grep -r xxd percona-xtrabackup-2.4.4
percona-xtrabackup-2.4.4/storage/innobase/xtrabackup/src/CMakeLists.txt:# xxd is needed to embed version_check script
percona-xtrabackup-2.4.4/storage/innobase/xtrabackup/src/CMakeLists.txt:FIND_PROGRAM(XXD_PATH xxd)
percona-xtrabackup-2.4.4/storage/innobase/xtrabackup/src/CMakeLists.txt:  MESSAGE(FATAL_ERROR "xxd not found. Try to install vim-common.")
percona-xtrabackup-2.4.4/storage/innobase/xtrabackup/doc/source/release-notes/2.3/2.3.3.rst: Fixed build issues by adding missing check in ``cmake`` script for ``xxd``

It has been there for a while, the requirement was documented after the bug https://bugs.launchpad.net/percona-xtrabackup/+bug/1511267 and fixed in https://github.com/percona/percona-xtrabackup/pull/136.
Comment 12 Phil Stracchino (Unix Ronin) 2016-08-10 15:10:06 UTC
I can confirm from my emerge log that I've had all prior releases, including 2.4.3, build just fine without vim-core installed.  I installed vim-core this morning to get xtrabackup-2.4.4 to build, but I've never had it installed before because I don't use vim.
Comment 13 Tomáš Mózes 2016-08-11 09:36:13 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #12)
> I can confirm from my emerge log that I've had all prior releases, including
> 2.4.3, build just fine without vim-core installed.  I installed vim-core
> this morning to get xtrabackup-2.4.4 to build, but I've never had it
> installed before because I don't use vim.

That's really strange, however the dep on vim-core was added, thanks for the report.