Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430820 - mysql-cmake.eclass doesn't remove EPREFIX
Summary: mysql-cmake.eclass doesn't remove EPREFIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal major
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 446200
  Show dependency tree
 
Reported: 2012-08-10 18:20 UTC by Mike Lewis
Modified: 2013-01-20 02:30 UTC (History)
2 users (show)

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


Attachments
Patch to fix it (mysql-cmake.eclass.patch,474 bytes, patch)
2012-08-10 18:22 UTC, Mike Lewis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lewis 2012-08-10 18:20:50 UTC
mysql 5.5 won't build.  It's being caused by a broken mysql-cmake.eclass



Reproducible: Always

Steps to Reproduce:
emerge mysql (with 5.5) makes it fail
Actual Results:  
Get this error in the build

+ insinto /var/development/etc/mysql
+ '[' /var/development/etc/mysql == / ']'
+ export INSDESTTREE=/var/development/etc/mysql
+ INSDESTTREE=/var/development/etc/mysql
+ [[  assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unm]
+ '[' '!' -d /var/development/var/tmp/portage/dev-db/mysql-5.5.22-r1/image/var/development//var/development/etc/mysql ']'
+ install -d /var/development/var/tmp/portage/dev-db/mysql-5.5.22-r1/image/var/development//var/development/etc/mysql
+ local ret=0
+ [[ 0 -ne 0 ]]
+ doins scripts/mysqlaccess.conf
-------------------------------------------------------
You should not use ${EPREFIX} with helpers.
  --> /var/development/etc/mysql
-------------------------------------------------------


Expected Results:  
It to build.

Here's the fix

--- /var/development/usr/portage/eclass/mysql-cmake.eclass      2012-06-07 16:31:39.000000000 -0600
+++ mysql-cmake.eclass  2012-08-10 12:16:28.944095378 -0600
@@ -290,7 +290,7 @@
                5.[1-9]|6*|7*) mysql_mycnf_version="5.1" ;;
        esac
        einfo "Building default my.cnf (${mysql_mycnf_version})"
-       insinto "${MY_SYSCONFDIR}"
+       insinto "${MY_SYSCONFDIR#${EPREFIX}}"
        doins scripts/mysqlaccess.conf
        mycnf_src="my.cnf-${mysql_mycnf_version}"
        sed -e "s!@DATADIR@!${MY_DATADIR}!g" \
Comment 1 Mike Lewis 2012-08-10 18:22:00 UTC
Created attachment 320914 [details, diff]
Patch to fix it
Comment 2 Fabian Groffen gentoo-dev 2012-08-10 18:23:12 UTC
@mysql: yours I believe.

The fix is consistent with other locations in the mysql eclasses.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-20 02:30:39 UTC
InCVS