Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524158 - dev-db/mariadb-5.5.39 dev-db/mysql-5.5.39 FEATURES=test - file INSTALL cannot copy file ".../work/mysql/mysql-test/./var-tests/tmp/mysqld.1.sock" to ".../image/usr/share/mysql/mysql-test/./var-tests/tmp/mysqld.1.sock".
Summary: dev-db/mariadb-5.5.39 dev-db/mysql-5.5.39 FEATURES=test - file INSTALL cannot...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 19:56 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-10-26 06:07 UTC (History)
0 users

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


Attachments
dev-db:mysql-5.5.39:20140930-100357.log.xz (dev-db:mysql-5.5.39:20140930-100357.log.xz,84.29 KB, application/x-xz)
2014-09-30 19:56 UTC, Jeroen Roovers (RETIRED)
Details
dev-db:mariadb-5.5.39:20140930-202542.log.xz (dev-db:mariadb-5.5.39:20140930-202542.log.xz,110.38 KB, application/x-xz)
2014-10-01 08:51 UTC, Jeroen Roovers (RETIRED)
Details
dev-db:mariadb-10.0.14:20141003-083731.log.xz (dev-db:mariadb-10.0.14:20141003-083731.log.xz,119.71 KB, application/x-xz)
2014-10-03 20:12 UTC, Jeroen Roovers (RETIRED)
Details
dev-db:mysql-5.5.39:20141003-074340.log.xz (dev-db:mysql-5.5.39:20141003-074340.log.xz,84.50 KB, application/x-xz)
2014-10-03 20:12 UTC, Jeroen Roovers (RETIRED)
Details
mariadb-var-tests.patch (mariadb-var-tests.patch,2.55 KB, patch)
2014-10-05 11:14 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2014-09-30 19:56:07 UTC
Created attachment 385844 [details]
dev-db:mysql-5.5.39:20140930-100357.log.xz

CMake Error at mysql-test/cmake_install.cmake:36 (FILE):
  file INSTALL cannot copy file
  "/mnt/alt/portage/dev-db/mysql-5.5.39/work/mysql/mysql-test/./var-tests/tmp/mysqld.1.sock"
  to
  "/mnt/alt/portage/dev-db/mysql-5.5.39/image/usr/share/mysql/mysql-test/./var-tests/tmp/mysqld.1.sock".
Call Stack (most recent call first):
  cmake_install.cmake:102 (INCLUDE)


make: *** [install] Error 1
 * ERROR: dev-db/mysql-5.5.39::gentoo failed (install phase):
 *   emake failed


It looks like it shouldn't try to install a stale socket at all.

Tue Sep 30 21:54:49 CEST 2014
emerge --info =dev-db/mysql-5.5.39
Portage 2.2.8-r1 (default/linux/hppa/13.0, gcc-4.7.3, glibc-2.19-r1, 3.14.4-gentoo-JeR parisc)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.4-gentoo-JeR-parisc-PA8700_-PCX-W2-with-gentoo-2.2
KiB Mem:     2071260 total,   1236560 free
KiB Swap:    1006772 total,    788116 free
Timestamp of tree: Tue, 30 Sep 2014 15:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 hppa2.0-unknown-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p49
dev-lang/python:          2.6.8-r3, 2.7.7, 3.2.5-r3, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.21.1-r1, 2.22-r1, 2.23.1, 2.23.2, 2.24-r3
sys-devel/gcc:            4.4.5, 4.4.6-r1, 4.4.7, 4.5.1-r1, 4.5.2, 4.5.3-r2, 4.5.4, 4.6.2, 4.6.3, 4.7.0, 4.7.1, 4.7.2, 4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo JeR
Installed sets: @system
ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="*"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-mschedule=8000 -march=2.0 -g -Wall -O2 -Wno-comment -pipe"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/distcc/bin /usr/lib/python2.6/site-packages/buildbot/status/web /usr/lib/python2.7/site-packages/buildbot/status/web /usr/share/gnupg/qualified.txt /var/bind /var/www/localhost/htdocs/wordpress/wp-config.php"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /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="-mschedule=8000 -march=2.0 -g -Wall -O2"
DISTDIR="/world/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs buildpkg compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-mschedule=8000 -march=2.0 -g -Wall -O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.leaseweb.com/gentoo/ "
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/keeps/gentoo/packages/elmer"
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"
PORTAGE_TMPDIR="/mnt/alt"
PORTDIR="/world/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aacplus aalib abyss accessibility acl ads afterimage agg alsa amr amrnb amrwb anacron ao aoss apis apng ares artist-screen asf ass assistant async asyncns audiofile augeas automount avfs bash-completion berkdb bidi bittorrent bittorrent-external bl bluetooth bzip2 c++ cairo captury catalogs cblas cdb cdio cdr chardet cjk clarens cleartype cli cman colors contrast cpath cracklib crypt cue cups curl custom-cflags custom-cxxflags cxx dbi dbtool dbus designer designer-plugin device-mapper dga dia dirac directfb djbfft djvu domainkeys dri drm dts dv dvd dvdr dvdread ebook edl egl elf emacs enca encode esd ewf examples exceptions exif expat extras facebook fam fame fastbuild fastcgi fbcon ffmpeg filter fits flac fltk fluidsynth fontconfig foomaticdb fortran fpx frei0r ftp fts3 fusion galago games gcrypt gd gdbm geant4 geoip ggi gif gimp gimpprint glep glib glut gmp gnokii gnutls gphoto2 gpm gps gs gsl gsm gtk gtk2 gtk3 gtkhtml gudev guidexml guile hal hepmc hesiod hotpixels hppa hwdb i18n ical icecast iconv icu idea idn imagemagick imlib indi inotify inquisitio introspection ipv6 isc ithreads jabber jack javascript jbig jingle jpeg jpeg2k judy kate kmod kpathsea lame lapack lasi lastfmradio latex lcms ldap leim lensfun libass libcaca libffi libmms libnl libotf libsamplerate libssh2 libwww live logrotate logwatch lua lyrics-screen lzma lzo m17n-lib mad manhole matroska mbrola mem-scramble memcache metapost metis mhash midi mikmod mmap mms mng modplug modules motif mozbranding mp3 mpg123 mpi mplayer mssql mtp mudflap multislot musepack musicbrainz mysql nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas natspec ncurses netpbm nettle network-cron nfconntrack nfs nls nntp nova nptl nsplugin ntlm objc objc++ objc-gc offensive ogg old-output openal openexr opengl openmp openssl optimization oss ots overlays pam pango pbs pch pcre pdf pdo-external php pipe pkcs11 plasma plotutils plugins png portage portaudio postgres povray ppds pulseaudio python pyzord qalculate qdbm qt3support qt4 quicktime quotas quvi raw readline recode rle romio rpc rrdtool rtc rtmp samba sasl scale0tilt scanner scim sdl seamonkey secure-delete server session sid skk slp smi sms sndfile snmp soap socks5 song-screen soundex soundtouch speex spell spidermonkey spoof-source sqlite sqlite2 srt srtp ssh ssl startup-notification strong-optimization subtitles subversion suhosin supernodal svg swat sysfs syslog system-sqlite talkfilters tcl tcpd test texi2html tftp tga theora threads thumbnail thunar-vfs tidy tiff timezone timidity tk tokyocabinet tools truetype tslib tunepimp twolame udev unicode unzip urandom usb userlocales utempter utf v4l v4l2 vala vanim vcd vim-syntax vorbis watchdog wavpack webdav webinstall webp wildmidi winbind wlan wma wmf xanim xcb xchattext xcomposite xetex xface xft xlisten xml xml2 xmp xmpi xnest xpm xrandr xscreensaver xsettings xv xvfb xvid yaml zip zip-external zlib" ALSA_CARDS="ad1889 usb-audio" 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" DRACUT_MODULES="nfs syslog" 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="evdev joystick keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa tek4957 tslib ur98 wacom void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en nl he" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="stifb fbdev none dummy" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-01 08:42:42 UTC
The real question is, why dev-db/mysql and dev-db/mariadb install hundreds of megabytes worth of test suite files?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-01 08:50:34 UTC
I see the same problem with dev-db/mariadb-5.5.39 . It isn't like bug #476752 where I'd run out of disk space:

-- Installing: /mnt/alt/portage/dev-db/mariadb-5.5.39/image/usr/share/mysql/mysql-test/././var-tests/my.cnf
-- Installing: /mnt/alt/portage/dev-db/mariadb-5.5.39/image/usr/share/mysql/mysql-test/././var-tests/tmp
-- Installing: /mnt/alt/portage/dev-db/mariadb-5.5.39/image/usr/share/mysql/mysql-test/././var-tests/tmp/check-mysqld_1.log
-- Installing: /mnt/alt/portage/dev-db/mariadb-5.5.39/image/usr/share/mysql/mysql-test/././var-tests/tmp/mysqld.1.sock
CMake Error at mysql-test/cmake_install.cmake:36 (FILE):
  file INSTALL cannot copy file
  "/mnt/alt/portage/dev-db/mariadb-5.5.39/work/mysql/mysql-test/./var-tests/tmp/mysqld.1.sock"
  to
  "/mnt/alt/portage/dev-db/mariadb-5.5.39/image/usr/share/mysql/mysql-test/././var-tests/tmp/mysqld.1.sock".
Call Stack (most recent call first):
  cmake_install.cmake:110 (INCLUDE)


make: *** [install] Error 1
 * ERROR: dev-db/mariadb-5.5.39::gentoo failed (install phase):
 *   emake failed
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-01 08:51:42 UTC
Created attachment 385872 [details]
dev-db:mariadb-5.5.39:20140930-202542.log.xz
Comment 4 Brian Evans (RETIRED) gentoo-dev 2014-10-02 02:41:33 UTC
Tests now cleanup the generated data when successful before install on all mysql providers.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-03 18:48:43 UTC
No, that's not a fix. Merely removing the test files means they get rebuilt in src_install().
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-03 20:12:21 UTC
Created attachment 385998 [details]
dev-db:mariadb-10.0.14:20141003-083731.log.xz
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-03 20:12:52 UTC
Created attachment 386000 [details]
dev-db:mysql-5.5.39:20141003-074340.log.xz
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-03 21:34:11 UTC
Comment on attachment 385998 [details]
dev-db:mariadb-10.0.14:20141003-083731.log.xz

I killed the test suite during the gdb section. This shouldn't (have) affect(ed) src_install().
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-05 11:14:28 UTC
Created attachment 386074 [details, diff]
mariadb-var-tests.patch

We could simply question the location of var-tests. Since cmake invariably installs whatever is found under mysql-test, we should probably use a path well outside the build system and then install the logs "${T}"/var-tests/log/*.log using different means.

Also, installing binaries in /usr/share probably isn't a good idea anyway. Or sockets.
Comment 10 Brian Evans (RETIRED) gentoo-dev 2014-10-06 17:51:26 UTC
(In reply to Jeroen Roovers from comment #9)
> Created attachment 386074 [details, diff] [details, diff]
> mariadb-var-tests.patch
> 
> We could simply question the location of var-tests. Since cmake invariably
> installs whatever is found under mysql-test, we should probably use a path
> well outside the build system and then install the logs
> "${T}"/var-tests/log/*.log using different means.

Patch applied.  If the logs need to be examined, the ebuild command will preserve them to be reviewed in ${T}.  This is the official instructions and expected to be run this way.

Otherwise, installing the tests will allow users to run it own their own terms.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2015-10-26 06:07:03 UTC
Where was this applied?