From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 43BC713832F for ; Fri, 19 Aug 2016 13:00:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD8D821C012; Fri, 19 Aug 2016 13:00:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53A41E0B69 for ; Fri, 19 Aug 2016 13:00:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E6E9C3405D5 for ; Fri, 19 Aug 2016 12:59:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AAB45245C for ; Fri, 19 Aug 2016 12:59:55 +0000 (UTC) From: "Alexys Jacob" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexys Jacob" Message-ID: <1471611579.18c044e24a836c6d333c99b557bc8a6ee6be810e.ultrabug@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mongodb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/mongodb/mongodb-2.6.11.ebuild dev-db/mongodb/mongodb-2.6.12.ebuild dev-db/mongodb/mongodb-2.6.8.ebuild dev-db/mongodb/mongodb-3.0.10.ebuild dev-db/mongodb/mongodb-3.0.12.ebuild dev-db/mongodb/mongodb-3.2.8.ebuild X-VCS-Directories: dev-db/mongodb/ X-VCS-Committer: ultrabug X-VCS-Committer-Name: Alexys Jacob X-VCS-Revision: 18c044e24a836c6d333c99b557bc8a6ee6be810e X-VCS-Branch: master Date: Fri, 19 Aug 2016 12:59:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 08592f00-5953-4a09-997a-5d98cacdd2a7 X-Archives-Hash: ae8552eed4fe36d46248c422b0e80906 commit: 18c044e24a836c6d333c99b557bc8a6ee6be810e Author: Ultrabug gentoo org> AuthorDate: Fri Aug 19 12:59:39 2016 +0000 Commit: Alexys Jacob gentoo org> CommitDate: Fri Aug 19 12:59:39 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18c044e2 dev-db/mongodb: fix REPLACING_VERSION detection #589458 Package-Manager: portage-2.2.27 dev-db/mongodb/mongodb-2.6.11.ebuild | 46 ++++++++++++++++++++---------------- dev-db/mongodb/mongodb-2.6.12.ebuild | 44 ++++++++++++++++++---------------- dev-db/mongodb/mongodb-2.6.8.ebuild | 46 ++++++++++++++++++++---------------- dev-db/mongodb/mongodb-3.0.10.ebuild | 36 +++++++++++++++------------- dev-db/mongodb/mongodb-3.0.12.ebuild | 36 +++++++++++++++------------- dev-db/mongodb/mongodb-3.2.8.ebuild | 36 +++++++++++++++------------- 6 files changed, 134 insertions(+), 110 deletions(-) diff --git a/dev-db/mongodb/mongodb-2.6.11.ebuild b/dev-db/mongodb/mongodb-2.6.11.ebuild index 72addb1..3f63202 100644 --- a/dev-db/mongodb/mongodb-2.6.11.ebuild +++ b/dev-db/mongodb/mongodb-2.6.11.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -156,25 +156,29 @@ src_test() { } pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 2.6 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "${PN} configuration files have changed !" - ewarn " " - ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" - ewarn " " - ewarn "Make sure you also follow the upgrading process :" - ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/" - ewarn " " - if use mms-agent; then - ewarn "MMS Agent configuration file has been moved to :" - ewarn " /etc/mms-agent.conf" + local v + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 2.6 ${v}; then + ewarn "!! IMPORTANT !!" + ewarn " " + ewarn "${PN} configuration files have changed !" + ewarn " " + ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" + ewarn " " + ewarn "Make sure you also follow the upgrading process :" + ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/" + ewarn " " + if use mms-agent; then + ewarn "MMS Agent configuration file has been moved to :" + ewarn " /etc/mms-agent.conf" + fi + break + else + if use mms-agent; then + elog "Edit your MMS Agent configuration file :" + elog " /etc/mms-agent.conf" + fi fi - else - if use mms-agent; then - elog "Edit your MMS Agent configuration file :" - elog " /etc/mms-agent.conf" - fi - fi + done } diff --git a/dev-db/mongodb/mongodb-2.6.12.ebuild b/dev-db/mongodb/mongodb-2.6.12.ebuild index b206aec..3f63202 100644 --- a/dev-db/mongodb/mongodb-2.6.12.ebuild +++ b/dev-db/mongodb/mongodb-2.6.12.ebuild @@ -156,25 +156,29 @@ src_test() { } pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 2.6 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "${PN} configuration files have changed !" - ewarn " " - ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" - ewarn " " - ewarn "Make sure you also follow the upgrading process :" - ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/" - ewarn " " - if use mms-agent; then - ewarn "MMS Agent configuration file has been moved to :" - ewarn " /etc/mms-agent.conf" + local v + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 2.6 ${v}; then + ewarn "!! IMPORTANT !!" + ewarn " " + ewarn "${PN} configuration files have changed !" + ewarn " " + ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" + ewarn " " + ewarn "Make sure you also follow the upgrading process :" + ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/" + ewarn " " + if use mms-agent; then + ewarn "MMS Agent configuration file has been moved to :" + ewarn " /etc/mms-agent.conf" + fi + break + else + if use mms-agent; then + elog "Edit your MMS Agent configuration file :" + elog " /etc/mms-agent.conf" + fi fi - else - if use mms-agent; then - elog "Edit your MMS Agent configuration file :" - elog " /etc/mms-agent.conf" - fi - fi + done } diff --git a/dev-db/mongodb/mongodb-2.6.8.ebuild b/dev-db/mongodb/mongodb-2.6.8.ebuild index 1fff19c..4059772 100644 --- a/dev-db/mongodb/mongodb-2.6.8.ebuild +++ b/dev-db/mongodb/mongodb-2.6.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -156,25 +156,29 @@ src_test() { } pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 2.6 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "${PN} configuration files have changed !" - ewarn " " - ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" - ewarn " " - ewarn "Make sure you also follow the upgrading process :" - ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/" - ewarn " " - if use mms-agent; then - ewarn "MMS Agent configuration file has been moved to :" - ewarn " /etc/mms-agent.conf" + local v + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 2.6 ${v}; then + ewarn "!! IMPORTANT !!" + ewarn " " + ewarn "${PN} configuration files have changed !" + ewarn " " + ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" + ewarn " " + ewarn "Make sure you also follow the upgrading process :" + ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/" + ewarn " " + if use mms-agent; then + ewarn "MMS Agent configuration file has been moved to :" + ewarn " /etc/mms-agent.conf" + fi + break + else + if use mms-agent; then + elog "Edit your MMS Agent configuration file :" + elog " /etc/mms-agent.conf" + fi fi - else - if use mms-agent; then - elog "Edit your MMS Agent configuration file :" - elog " /etc/mms-agent.conf" - fi - fi + done } diff --git a/dev-db/mongodb/mongodb-3.0.10.ebuild b/dev-db/mongodb/mongodb-3.0.10.ebuild index 4c1614e..437e0b0 100644 --- a/dev-db/mongodb/mongodb-3.0.10.ebuild +++ b/dev-db/mongodb/mongodb-3.0.10.ebuild @@ -137,20 +137,24 @@ src_test() { } pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "${PN} configuration files have changed !" - ewarn " " - ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" - ewarn " " - ewarn "Make sure you also follow the upgrading process :" - ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" - ewarn " " - ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." - ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." - ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" - fi + local v + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 3.0 ${v}; then + ewarn "!! IMPORTANT !!" + ewarn " " + ewarn "${PN} configuration files have changed !" + ewarn " " + ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" + ewarn " " + ewarn "Make sure you also follow the upgrading process :" + ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" + ewarn " " + ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." + ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." + ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" + break + fi + done } diff --git a/dev-db/mongodb/mongodb-3.0.12.ebuild b/dev-db/mongodb/mongodb-3.0.12.ebuild index 4c1614e..437e0b0 100644 --- a/dev-db/mongodb/mongodb-3.0.12.ebuild +++ b/dev-db/mongodb/mongodb-3.0.12.ebuild @@ -137,20 +137,24 @@ src_test() { } pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "${PN} configuration files have changed !" - ewarn " " - ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" - ewarn " " - ewarn "Make sure you also follow the upgrading process :" - ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" - ewarn " " - ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." - ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." - ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" - fi + local v + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 3.0 ${v}; then + ewarn "!! IMPORTANT !!" + ewarn " " + ewarn "${PN} configuration files have changed !" + ewarn " " + ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" + ewarn " " + ewarn "Make sure you also follow the upgrading process :" + ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" + ewarn " " + ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." + ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." + ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" + break + fi + done } diff --git a/dev-db/mongodb/mongodb-3.2.8.ebuild b/dev-db/mongodb/mongodb-3.2.8.ebuild index 1854cf2..15b346c 100644 --- a/dev-db/mongodb/mongodb-3.2.8.ebuild +++ b/dev-db/mongodb/mongodb-3.2.8.ebuild @@ -160,22 +160,26 @@ src_test() { } pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "${PN} configuration files have changed !" - ewarn " " - ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" - ewarn " " - ewarn "Make sure you also follow the upgrading process :" - ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" - ewarn " " - ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." - ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." - ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" - fi + local v + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 3.0 ${v}; then + ewarn "!! IMPORTANT !!" + ewarn " " + ewarn "${PN} configuration files have changed !" + ewarn " " + ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" + ewarn " " + ewarn "Make sure you also follow the upgrading process :" + ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" + ewarn " " + ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." + ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." + ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" + break + fi + done ewarn "Make sure to read the release notes and follow the upgrade process:" ewarn " https://docs.mongodb.org/manual/release-notes/3.2/"