diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/Manifest.gz | bin | 37458 -> 37434 bytes | |||
-rw-r--r-- | eclass/ant-tasks.eclass | 80 | ||||
-rw-r--r-- | eclass/java-utils-2.eclass | 4 | ||||
-rw-r--r-- | eclass/llvm.eclass | 4 | ||||
-rw-r--r-- | eclass/mysql-multilib-r1.eclass | 5 | ||||
-rw-r--r-- | eclass/php-ext-source-r3.eclass | 31 | ||||
-rw-r--r-- | eclass/waf-utils.eclass | 21 |
7 files changed, 75 insertions, 70 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz Binary files differindex a719732b5d1a..f59606e60629 100644 --- a/eclass/Manifest.gz +++ b/eclass/Manifest.gz diff --git a/eclass/ant-tasks.eclass b/eclass/ant-tasks.eclass index 31683e682437..f889a92aa361 100644 --- a/eclass/ant-tasks.eclass +++ b/eclass/ant-tasks.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License, v2 or later # @ECLASS: ant-tasks.eclass @@ -11,27 +11,37 @@ # This eclass provides functionality and default ebuild variables for building # dev-java/ant-* packages easily. +case "${EAPI:-0}" in + 0|1|2|3|4) + die "ant-tasks.eclass: EAPI ${EAPI} is too old." + ;; + 5|6|7) + ;; + *) + die "ant-tasks.eclass: EAPI ${EAPI} is not supported yet." + ;; +esac # we set ant-core dep ourselves, restricted JAVA_ANT_DISABLE_ANT_CORE_DEP=true # rewriting build.xml for are the testcases has no reason atm JAVA_PKG_BSFIX_ALL=no inherit java-pkg-2 java-ant-2 -[[ ${EAPI:-0} == [0123456] ]] && inherit eapi7-ver +[[ ${EAPI:-0} == [56] ]] && inherit eapi7-ver EXPORT_FUNCTIONS src_unpack src_compile src_install # @ECLASS-VARIABLE: ANT_TASK_JDKVER # @DESCRIPTION: -# Affects the >=virtual/jdk version set in DEPEND string. Defaults to 1.5, can +# Affects the >=virtual/jdk version set in DEPEND string. Defaults to 1.8, can # be overridden from ebuild BEFORE inheriting this eclass. -ANT_TASK_JDKVER=${ANT_TASK_JDKVER-1.5} +ANT_TASK_JDKVER=${ANT_TASK_JDKVER-1.8} # @ECLASS-VARIABLE: ANT_TASK_JREVER # @DESCRIPTION: -# Affects the >=virtual/jre version set in DEPEND string. Defaults to 1.5, can +# Affects the >=virtual/jre version set in DEPEND string. Defaults to 1.8, can # be overridden from ebuild BEFORE inheriting this eclass. -ANT_TASK_JREVER=${ANT_TASK_JREVER-1.5} +ANT_TASK_JREVER=${ANT_TASK_JREVER-1.8} # @ECLASS-VARIABLE: ANT_TASK_NAME # @DESCRIPTION: @@ -56,31 +66,18 @@ ANT_TASK_DEPNAME=${ANT_TASK_DEPNAME-${ANT_TASK_NAME}} # Version of ant-core this task is intended to register and thus load with. ANT_TASK_PV="${PV}" -# special care for beta/RC releases -if [[ ${PV} == *beta2* ]]; then - MY_PV=${PV/_beta2/beta} - UPSTREAM_PREFIX="http://people.apache.org/dist/ant/v1.7.1beta2/src" - GENTOO_PREFIX="https://dev.gentoo.org/~caster/distfiles" - ANT_TASK_PV=$(ver_cut 1-3) -elif [[ ${PV} == *_rc* ]]; then - MY_PV=${PV/_rc/RC} - UPSTREAM_PREFIX="https://dev.gentoo.org/~caster/distfiles" - GENTOO_PREFIX="https://dev.gentoo.org/~caster/distfiles" - ANT_TASK_PV=$(ver_cut 1-3) -else - # default for final releases - MY_PV=${PV} - case ${PV} in - 1.9.*) - UPSTREAM_PREFIX="https://archive.apache.org/dist/ant/source" - GENTOO_PREFIX="https://dev.gentoo.org/~tomwij/files/dist" - ;; - *) - UPSTREAM_PREFIX="mirror://apache/ant/source" - GENTOO_PREFIX="https://dev.gentoo.org/~caster/distfiles" - ;; - esac -fi +# default for final releases +MY_PV=${PV} +case ${PV} in +1.9.2) + UPSTREAM_PREFIX="https://archive.apache.org/dist/ant/source" + GENTOO_PREFIX="https://dev.gentoo.org/~tomwij/files/dist" + ;; +*) + UPSTREAM_PREFIX="mirror://apache/ant/source" + GENTOO_PREFIX="https://dev.gentoo.org/~fordfrog/distfiles" + ;; +esac # source/workdir name MY_P="apache-ant-${MY_PV}" @@ -101,11 +98,6 @@ if [[ -z "${ANT_TASK_DISABLE_VM_DEPS}" ]]; then DEPEND+=" >=virtual/jdk-${ANT_TASK_JDKVER}" fi -# we need direct blockers with old ant-tasks for file collisions - bug #252324 -if ver_test -ge 1.7.1; then - DEPEND+=" !dev-java/ant-tasks" -fi - # Would run the full ant test suite for every ant task RESTRICT="test" @@ -130,7 +122,15 @@ ant-tasks_src_unpack() { cd "${S}" # replace build.xml with our modified for split building - mv -f "${WORKDIR}"/build.xml . + if [ -e "${WORKDIR}"/${PV}-build.patch ] ; then + if [ ${EAPI:-0} -eq 5 ]; then + die "ant-tasks.eclass: build.xml patching not supported for EAPI 5 ebuilds" + fi + + eapply "${WORKDIR}"/${PV}-build.patch + else + mv -f "${WORKDIR}"/build.xml . + fi cd lib # remove bundled xerces @@ -168,8 +168,6 @@ ant-tasks_src_install() { java-pkg_register-ant-task --version "${ANT_TASK_PV}" # create the compatibility symlink - if ver_test -ge 1.7.1_beta2; then - dodir /usr/share/ant/lib - dosym /usr/share/${PN}/lib/${PN}.jar /usr/share/ant/lib/${PN}.jar - fi + dodir /usr/share/ant/lib + dosym /usr/share/${PN}/lib/${PN}.jar /usr/share/ant/lib/${PN}.jar } diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 473b177e539a..1ffd7a03399b 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -2029,7 +2029,9 @@ eant() { if [[ ${cp#:} ]]; then # It seems ant does not like single quotes around ${cp} - antflags="${antflags} -Dgentoo.classpath=\"${cp#:}\"" + # And ant 1.9.13+ also does not like double quotes around ${cp} + # https://bz.apache.org/bugzilla/show_bug.cgi?id=58898 + antflags="${antflags} -Dgentoo.classpath=${cp#:}" fi [[ -n ${JAVA_PKG_DEBUG} ]] && echo ant ${antflags} "${@}" diff --git a/eclass/llvm.eclass b/eclass/llvm.eclass index 71e6c7cfb1be..ca10e742f1b1 100644 --- a/eclass/llvm.eclass +++ b/eclass/llvm.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: llvm.eclass @@ -79,7 +79,7 @@ if [[ ! ${_LLVM_ECLASS} ]]; then # @INTERNAL # @DESCRIPTION: # Correct values of LLVM slots, newest first. -declare -g -r _LLVM_KNOWN_SLOTS=( 8 7 6 5 4 ) +declare -g -r _LLVM_KNOWN_SLOTS=( 9 8 7 6 5 4 ) # @FUNCTION: get_llvm_prefix # @USAGE: [<max_slot>] diff --git a/eclass/mysql-multilib-r1.eclass b/eclass/mysql-multilib-r1.eclass index 8dbdca48b9d4..3fa4e11ac0fe 100644 --- a/eclass/mysql-multilib-r1.eclass +++ b/eclass/mysql-multilib-r1.eclass @@ -721,9 +721,8 @@ mysql-multilib-r1_pkg_postinst() { einfo elog "Be sure to edit the my.cnf file to activate your cluster settings." elog "This should be done after running \"emerge --config =${CATEGORY}/${PF}\"" - elog "The first time the cluster is activated, you should add" - elog "--wsrep-new-cluster to the options in /etc/conf.d/mysql for one node." - elog "This option should then be removed for subsequent starts." + elog "The first time the galera cluster is activated, the database daemon" + elog "should be run as \"/etc/init.d/mysql bootstrap_galera\" on the primary node." einfo fi fi diff --git a/eclass/php-ext-source-r3.eclass b/eclass/php-ext-source-r3.eclass index 66d32d5c5ebd..5ef879a2be23 100644 --- a/eclass/php-ext-source-r3.eclass +++ b/eclass/php-ext-source-r3.eclass @@ -1,10 +1,10 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: php-ext-source-r3.eclass # @MAINTAINER: # Gentoo PHP team <php-bugs@gentoo.org> -# @SUPPORTED_EAPIS: 6 +# @SUPPORTED_EAPIS: 6 7 # @BLURB: Compile and install standalone PHP extensions. # @DESCRIPTION: # A unified interface for compiling and installing standalone PHP @@ -14,8 +14,8 @@ inherit autotools EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test -case ${EAPI} in - 6) ;; +case ${EAPI:-0} in + 6|7) ;; *) die "${ECLASS} is not compatible with EAPI=${EAPI}" esac @@ -106,6 +106,7 @@ esac # conditional like "php?", but only when PHP_EXT_OPTIONAL_USE is # non-null. The option group "|| (..." is always started here. REQUIRED_USE="${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( }|| ( " +PHPDEPEND="${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( } " for _php_target in ${USE_PHP}; do # Now loop through each USE_PHP target and add the corresponding # dev-lang/php slot to PHPDEPEND. @@ -125,19 +126,17 @@ unset _php_slot _php_target # Finally, end the optional group that we started before the loop. Close # the USE-conditional if PHP_EXT_OPTIONAL_USE is non-null. REQUIRED_USE+=") ${PHP_EXT_OPTIONAL_USE:+ )}" +PHPDEPEND+=" ${PHP_EXT_OPTIONAL_USE:+ )}" +TOOLDEPS="sys-devel/m4 sys-devel/libtool" -RDEPEND="${RDEPEND} - ${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( } - ${PHPDEPEND} - ${PHP_EXT_OPTIONAL_USE:+ )}" +RDEPEND="${PHPDEPEND}" -DEPEND="${DEPEND} - sys-devel/m4 - sys-devel/libtool - ${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( } - ${PHPDEPEND} - ${PHP_EXT_OPTIONAL_USE:+ )} -" +case ${EAPI:-0} in + 6) DEPEND="${TOOLDEPS} ${PHPDEPEND}" ;; + 7) DEPEND="${PHPDEPEND}" ; BDEPEND="${TOOLDEPS} ${PHPDEPEND}" ;; +esac + +unset PHPDEPEND TOOLDEPS # @ECLASS-VARIABLE: PHP_EXT_SKIP_PHPIZE # @DEFAULT_UNSET @@ -209,7 +208,7 @@ php-ext-source-r3_src_configure() { # Support either a string or an array for PHP_EXT_ECONF_ARGS. local econf_args - if [[ $(declare -p PHP_EXT_ECONF_ARGS) == "declare -a"* ]]; then + if [[ -n "${PHP_EXT_ECONF_ARGS}" && $(declare -p PHP_EXT_ECONF_ARGS) == "declare -a"* ]]; then econf_args=( "${PHP_EXT_ECONF_ARGS[@]}" ) else econf_args=( ${PHP_EXT_ECONF_ARGS} ) diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass index 878068fc9f4f..2cb26bc8dfd9 100644 --- a/eclass/waf-utils.eclass +++ b/eclass/waf-utils.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: waf-utils.eclass @@ -84,13 +84,20 @@ waf-utils_src_configure() { [[ -z ${NO_WAF_LIBDIR} ]] && libdir=(--libdir="${EPREFIX}/usr/$(get_libdir)") tc-export AR CC CPP CXX RANLIB - echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${CFLAGS} ${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=${EPREFIX}/usr ${libdir[@]} $@ configure" - CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" \ - "--prefix=${EPREFIX}/usr" \ - "${libdir[@]}" \ - "${@}" \ - configure || die "configure failed" + local CMD=( + CCFLAGS="${CFLAGS}" + LINKFLAGS="${CFLAGS} ${LDFLAGS}" + PKGCONFIG="$(tc-getPKG_CONFIG)" + "${WAF_BINARY}" + "--prefix=${EPREFIX}/usr" + "${libdir[@]}" + "${@}" + configure + ) + + echo "${CMD[@]@Q}" >&2 + env "${CMD[@]}" || die "configure failed" } # @FUNCTION: waf-utils_src_compile |