The ebuild-guide states, that in ./configure the last statement overwrites previous ones. I used "econf --prefix=$(kde-config --prefix)", but the resulting prefix is /usr. Ebuild in question: http://draketo.de/dateien/gentoo/kirocker-2.0-r2.ebuild Handbook chapter in question: http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1 Did I misunderstand something? Best wishes, Arne Reproducible: Always Steps to Reproduce: 1.use "econf --prefix=$(kde-config --prefix)" 2.emerge Actual Results: effective prefix is "/usr" Expected Results: prefix should be "$(kde-config --prefix)" which is in my case: "/usr/kde/3.5"
Created attachment 110732 [details] ebuild which shows the problem.
Are you sure that this is caused by econf and not kde-config --prefix returning the wrong result? Also please post the output of `emerge -v --info` (as an attachment) as if this is a problem in econf it's likely conditional on some other settings.
econf is working just fine ... probably a bug in your ebuild that you're expecting it to do something other than what it actually is you should probably go seek help on the forums or one of the gentoo irc channels
forums.gentoo.org or #gentoo-dev-help; this is not a support forum.
(In reply to comment #3) > econf is working just fine ... probably a bug in your ebuild that you're > expecting it to do something other than what it actually is The reason why I expect it to work that way is the documentation which sates: "econf Issues ./configure with the necessary path-changes (prefix, host, mandir, infodir, datadir, sysconfdir, localstatedir). You can optionally pass extra arguments to ./configure by specifying them when you call econf, and users can set the environment variable EXTRA_ECONF if they need to. Options passed to configure take precedence in the reverse order that they were given. In other words, the first argument passed will always be overridden by the last." - http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1 The output of the ebuild when using econf --prefix=$(kde-config --prefix) looks like this: ./configure --prefix=/usr ... <stuff> ... --prefix=/usr/kde/3.5 but different from the handbook, the prefix "/usr" gets used, where the handbook says that the last statement gets used, which would be "/usr/kde/3.5" ('the first argument passed will always be overridden by the last'). So there's either a bug in the handbook or in econf or in my english skills...