Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632694 - mysql-multilib-r1.eclass: emerge config mariadb fails due to privilege issues
Summary: mysql-multilib-r1.eclass: emerge config mariadb fails due to privilege issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-02 14:52 UTC by Roman Barczyński
Modified: 2017-10-02 17:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Barczyński 2017-10-02 14:52:04 UTC
emerge --config =dev-db/mariadb-10.1.26 fails with 

 * ERROR: dev-db/mariadb-10.1.26::gentoo failed (config phase):
 *   Failed to initialize mysqld. Please review /var/log/mysql/mysqld.err AND /var/tmp/portage/dev-db/mariadb-10.1.26/temp/mysql_install_db.log


chown: changing ownership of '///var/lib/mysql': Operation not permitted
Cannot change ownership of the database directories to the 'mysql'
user.  Check that you have the necessary permissions and try again.

This might be related to mysql directories NOT owned by mysql user and changed in this commit:

https://github.com/gentoo/gentoo/commit/b19f6190519f94450e4aa23cde091b8fd24d763d#diff-ad445ff890e9256030dc4734556dce91R952


emerge --info =mariadb-10.1.26
Portage 2.3.6 (python 3.4.5-final-0, hardened/linux/amd64, gcc-5.4.0, glibc-2.23-r4, 3.14.14-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-QEMU_Virtual_CPU_version_1.4.0-with-gentoo-2.3
Timestamp of repository gentoo: Mon, 02 Oct 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fforce-addr -mno-tls-direct-seg-refs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fforce-addr -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-or
phans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="pl_PL.UTF-8"
LC_ALL="en_US.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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=/.gi
t"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify modules multilib ncurses nls nptl openmp pam pax_kernel pcre pie python readline seccomp session ssl ssp unicode urandom xattr xtpax 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_cor
e 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 di
sk_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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore
fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DE
VICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SI
NGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby22" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-db/mariadb-10.1.26::gentoo was built with the following:
USE="backup cracklib openssl pam perl server -bindist -debug -embedded -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 (-libressl) (-mroonga) -odbc -oqgraph -profiling (-selinux) -sphinx -sst-
rsync -sst-xtrabackup -static -static-libs -systemd -systemtap -tcmalloc -test -tokudb -xml -yassl" ABI_X86="(64) -32 (-x32)"
CFLAGS="-O2 -pipe -fforce-addr -mno-tls-direct-seg-refs -fno-strict-aliasing"
CXXFLAGS="-O2 -pipe -fforce-addr -mno-tls-direct-seg-refs -felide-constructors -fno-strict-aliasing"
Comment 1 Larry the Git Cow gentoo-dev 2017-10-02 15:20:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a176b6845cdfea34006db618985789ec05d606f

commit 8a176b6845cdfea34006db618985789ec05d606f
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2017-10-02 15:18:54 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2017-10-02 15:20:44 +0000

    dev-db/mariadb: Move --user bootstrap option to later in the commands
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=632694
    Package-Manager: Portage-2.3.10, Repoman-2.3.3

 dev-db/mariadb/mariadb-10.2.9.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fbf49170f4269f1c3f01fa272dd7b2a15a50524

commit 7fbf49170f4269f1c3f01fa272dd7b2a15a50524
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2017-10-02 15:06:11 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2017-10-02 15:20:39 +0000

    mysql-{multilib,multilib-r1,v2}.eclass: Remove extra option
    
    Causes the new su bootstrap to fail.
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=632694

 eclass/mysql-multilib-r1.eclass | 2 --
 eclass/mysql-multilib.eclass    | 2 --
 eclass/mysql-v2.eclass          | 2 --
 3 files changed, 6 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2017-10-02 17:14:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc4b6477a76cbf6a0db03a3fb7582bba49fa581c

commit bc4b6477a76cbf6a0db03a3fb7582bba49fa581c
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2017-10-02 17:12:17 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2017-10-02 17:13:52 +0000

    mysql-{cmake,multilib-r1}.eclass: Remove duplicated management of runtime directories
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=632694

 eclass/mysql-cmake.eclass       | 21 ---------------------
 eclass/mysql-multilib-r1.eclass | 16 ----------------
 2 files changed, 37 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7c3814b3f996e1654bae3db08e3e3f0980e89ce

commit a7c3814b3f996e1654bae3db08e3e3f0980e89ce
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2017-10-02 17:06:58 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2017-10-02 17:13:46 +0000

    dev-db/mariadb: Remove duplicated management of runtime directories
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=632694
    Package-Manager: Portage-2.3.10, Repoman-2.3.3

 dev-db/mariadb/mariadb-10.2.9.ebuild | 16 ----------------
 1 file changed, 16 deletions(-)