diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-01-06 19:45:27 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-01-06 19:45:27 +0000 |
commit | 612ab73ba6df3341ceaae6cfa3c436e1e8886c48 (patch) | |
tree | 31974d859992ea53de9f0d7d47705481dfd6c71e /eclass/java-ant-2.eclass | |
parent | Add amd64codecs support for real libs on amd64 (diff) | |
download | gentoo-2-612ab73ba6df3341ceaae6cfa3c436e1e8886c48.tar.gz gentoo-2-612ab73ba6df3341ceaae6cfa3c436e1e8886c48.tar.bz2 gentoo-2-612ab73ba6df3341ceaae6cfa3c436e1e8886c48.zip |
Added instructions for re-emerging dev-python/pyxml when there are undefined symbols in pyexpat.so
Diffstat (limited to 'eclass/java-ant-2.eclass')
-rw-r--r-- | eclass/java-ant-2.eclass | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/eclass/java-ant-2.eclass b/eclass/java-ant-2.eclass index c2ee91c06b5f..81e68e682aae 100644 --- a/eclass/java-ant-2.eclass +++ b/eclass/java-ant-2.eclass @@ -10,7 +10,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.10 2006/12/27 18:46:01 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.11 2007/01/06 19:45:27 betelgeuse Exp $ inherit java-utils-2 @@ -131,6 +131,19 @@ java-ant_bsfix() { popd > /dev/null } +_bsfix_die() { + if has_version dev-python/pyxml; then + eerror "If the output above contains:" + eerror "ImportError:" + eerror "/usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so:" + eerror "undefined symbol: PyUnicodeUCS2_DecodeUTF8" + eerror "Try re-emerging dev-python/pyxml" + die ${1} " Look at the eerror message above" + else + die ${1} + fi +} + # ------------------------------------------------------------------------------ # @public java-ant_bsfix_files # @@ -178,8 +191,12 @@ java-ant_bsfix_files() { vecho "Rewriting $file (using xml-rewrite.py)" # Doing this twice because otherwise the source attributes would # get added to target tags too and javadoc does not like target - xml-rewrite.py -f "${file}" -c -e ${JAVA_PKG_BSFIX_SOURCE_TAGS// / -e } -a source -v ${want_source} || die "xml-rewrite failed: ${file}" - xml-rewrite.py -f "${file}" -c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } -a target -v ${want_target} || die "xml-rewrite failed: ${file}" + xml-rewrite.py -f "${file}" \ + -c -e ${JAVA_PKG_BSFIX_SOURCE_TAGS// / -e } \ + -a source -v ${want_source} || _bsfix_die "xml-rewrite failed: ${file}" + xml-rewrite.py -f "${file}" \ + -c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \ + -a target -v ${want_target} || _bsfix_die "xml-rewrite failed: ${file}" fi done @@ -188,12 +205,12 @@ java-ant_bsfix_files() { vecho "Rewriting source attributes" eval xml-rewrite-2.py ${files} \ -c -e ${JAVA_PKG_BSFIX_SOURCE_TAGS// / -e } \ - -a source -v ${want_source} ${output} || die "xml-rewrite2 failed: ${file}" + -a source -v ${want_source} ${output} || _bsfix_die "xml-rewrite2 failed: ${file}" vecho "Rewriting target attributes" eval xml-rewrite-2.py ${files} \ -c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \ - -a target -v ${want_target} ${output} || die "xml-rewrite2 failed: ${file}" + -a target -v ${want_target} ${output} || _bsfix_die "xml-rewrite2 failed: ${file}" fi if [[ -n "${JAVA_PKG_DEBUG}" ]]; then |