Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 290535 Details for
Bug 388125
dev-db/mysql-5.1.59 fails to emerge on prefixed systems due to new eclasses
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
eprefixified mysql-v2.eclass
mysql-v2.eclass.patch (text/plain), 5.16 KB, created by
nietonfir
on 2011-10-22 17:38:22 UTC
(
hide
)
Description:
eprefixified mysql-v2.eclass
Filename:
MIME Type:
Creator:
nietonfir
Created:
2011-10-22 17:38:22 UTC
Size:
5.16 KB
patch
obsolete
>--- old/mysql-v2.eclass 2011-10-22 19:21:56.000000000 +0200 >+++ new/mysql-v2.eclass 2011-10-22 19:15:50.000000000 +0200 >@@ -496,12 +496,12 @@ > mysql_init_vars > > # Check FEATURES="collision-protect" before removing this >- [[ -d "${ROOT}/var/log/mysql" ]] || install -d -m0750 -o mysql -g mysql "${ROOT}${MY_LOGDIR}" >+ [[ -d "${EROOT}/var/log/mysql" ]] || install -d -m0750 -o mysql -g mysql "${EROOT}${MY_LOGDIR}" > > # Secure the logfiles >- touch "${ROOT}${MY_LOGDIR}"/mysql.{log,err} >- chown mysql:mysql "${ROOT}${MY_LOGDIR}"/mysql* >- chmod 0660 "${ROOT}${MY_LOGDIR}"/mysql* >+ touch "${EROOT}${MY_LOGDIR}"/mysql.{log,err} >+ chown mysql:mysql "${EROOT}${MY_LOGDIR}"/mysql* >+ chmod 0660 "${EROOT}${MY_LOGDIR}"/mysql* > > # Minimal builds don't have the MySQL server > if ! use minimal ; then >@@ -571,8 +571,8 @@ > fi > > if [[ ( -n "${MY_DATADIR}" ) && ( "${MY_DATADIR}" != "${old_MY_DATADIR}" ) ]]; then >- local MY_DATADIR_s="$(strip_duplicate_slashes ${ROOT}/${MY_DATADIR})" >- local old_MY_DATADIR_s="$(strip_duplicate_slashes ${ROOT}/${old_MY_DATADIR})" >+ local MY_DATADIR_s="$(strip_duplicate_slashes ${EROOT}/${MY_DATADIR})" >+ local old_MY_DATADIR_s="$(strip_duplicate_slashes ${EROOT}/${old_MY_DATADIR})" > > if [[ -d "${old_MY_DATADIR_s}" ]]; then > if [[ -d "${MY_DATADIR_s}" ]]; then >@@ -598,13 +598,13 @@ > local pwd2="b" > local maxtry=15 > >- if [ -z "${MYSQL_ROOT_PASSWORD}" -a -f "${ROOT}/root/.my.cnf" ]; then >- MYSQL_ROOT_PASSWORD="$(sed -n -e '/^password=/s,^password=,,gp' "${ROOT}/root/.my.cnf")" >+ if [ -z "${MYSQL_ROOT_PASSWORD}" -a -f "${EROOT}/root/.my.cnf" ]; then >+ MYSQL_ROOT_PASSWORD="$(sed -n -e '/^password=/s,^password=,,gp' "${EROOT}/root/.my.cnf")" > fi > >- if [[ -d "${ROOT}/${MY_DATADIR}/mysql" ]] ; then >+ if [[ -d "${EROOT}/${MY_DATADIR}/mysql" ]] ; then > ewarn "You have already a MySQL database in place." >- ewarn "(${ROOT}/${MY_DATADIR}/*)" >+ ewarn "(${EROOT}/${MY_DATADIR}/*)" > ewarn "Please rename or delete it if you wish to replace it." > die "MySQL database already exists!" > fi >@@ -633,27 +633,27 @@ > local options="" > local sqltmp="$(emktemp)" > >- local help_tables="${ROOT}${MY_SHAREDSTATEDIR}/fill_help_tables.sql" >+ local help_tables="${EROOT}${MY_SHAREDSTATEDIR}/fill_help_tables.sql" > [[ -r "${help_tables}" ]] \ > && cp "${help_tables}" "${TMPDIR}/fill_help_tables.sql" \ > || touch "${TMPDIR}/fill_help_tables.sql" > help_tables="${TMPDIR}/fill_help_tables.sql" > > pushd "${TMPDIR}" &>/dev/null >- "${ROOT}/usr/bin/mysql_install_db --basedir=/usr" >"${TMPDIR}"/mysql_install_db.log 2>&1 >+ "${EROOT}/usr/bin/mysql_install_db --basedir=/usr" >"${TMPDIR}"/mysql_install_db.log 2>&1 > if [ $? -ne 0 ]; then > grep -B5 -A999 -i "ERROR" "${TMPDIR}"/mysql_install_db.log 1>&2 > die "Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log" > fi > popd &>/dev/null >- [[ -f "${ROOT}/${MY_DATADIR}/mysql/user.frm" ]] \ >+ [[ -f "${EROOT}/${MY_DATADIR}/mysql/user.frm" ]] \ > || die "MySQL databases not installed" >- chown -R mysql:mysql "${ROOT}/${MY_DATADIR}" 2>/dev/null >- chmod 0750 "${ROOT}/${MY_DATADIR}" 2>/dev/null >+ chown -R mysql:mysql "${EROOT}/${MY_DATADIR}" 2>/dev/null >+ chmod 0750 "${EROOT}/${MY_DATADIR}" 2>/dev/null > > # Figure out which options we need to disable to do the setup > helpfile="${TMPDIR}/mysqld-help" >- ${ROOT}/usr/sbin/mysqld --verbose --help >"${helpfile}" 2>/dev/null >+ ${EROOT}/usr/sbin/mysqld --verbose --help >"${helpfile}" 2>/dev/null > for opt in grant-tables host-cache name-resolve networking slave-start bdb \ > federated innodb ssl log-bin relay-log slow-query-log external-locking \ > ndbcluster \ >@@ -667,7 +667,7 @@ > > # Filling timezones, see > # http://dev.mysql.com/doc/mysql/en/time-zone-support.html >- "${ROOT}/usr/bin/mysql_tzinfo_to_sql" "${ROOT}/usr/share/zoneinfo" > "${sqltmp}" 2>/dev/null >+ "${EROOT}/usr/bin/mysql_tzinfo_to_sql" "${EROOT}/usr/share/zoneinfo" > "${sqltmp}" 2>/dev/null > > if [[ -r "${help_tables}" ]] ; then > cat "${help_tables}" >> "${sqltmp}" >@@ -676,13 +676,13 @@ > einfo "Creating the mysql database and setting proper" > einfo "permissions on it ..." > >- local socket="${ROOT}/var/run/mysqld/mysqld${RANDOM}.sock" >- local pidfile="${ROOT}/var/run/mysqld/mysqld${RANDOM}.pid" >- local mysqld="${ROOT}/usr/sbin/mysqld \ >+ local socket="${EROOT}/var/run/mysqld/mysqld${RANDOM}.sock" >+ local pidfile="${EROOT}/var/run/mysqld/mysqld${RANDOM}.pid" >+ local mysqld="${EROOT}/usr/sbin/mysqld \ > ${options} \ > --user=mysql \ >- --basedir=${ROOT}/usr \ >- --datadir=${ROOT}/${MY_DATADIR} \ >+ --basedir=${EROOT}/usr \ >+ --datadir=${EROOT}/${MY_DATADIR} \ > --max_allowed_packet=8M \ > --net_buffer_length=16K \ > --default-storage-engine=MyISAM \ >@@ -706,14 +706,14 @@ > ebegin "Setting root password" > # Do this from memory, as we don't want clear text passwords in temp files > local sql="UPDATE mysql.user SET Password = PASSWORD('${MYSQL_ROOT_PASSWORD}') WHERE USER='root'" >- "${ROOT}/usr/bin/mysql" \ >+ "${EROOT}/usr/bin/mysql" \ > --socket=${socket} \ > -hlocalhost \ > -e "${sql}" > eend $? > > ebegin "Loading \"zoneinfo\", this step may require a few seconds ..." >- "${ROOT}/usr/bin/mysql" \ >+ "${EROOT}/usr/bin/mysql" \ > --socket=${socket} \ > -hlocalhost \ > -uroot \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 388125
:
290535
|
290537
|
290539
|
291977
|
292037
|
296349