Github messages for voidlinux
 help / color / mirror / Atom feed
From: dstolfa <dstolfa@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] ansible: update to 4.0.0
Date: Fri, 21 May 2021 13:58:39 +0200	[thread overview]
Message-ID: <20210521115839.2Gf9Kl24Mr9AZqu961cnGmXXUQwPXNu6TcdwjMh-cN8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30968@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

There is an updated pull request by dstolfa against master on the void-packages repository

https://github.com/dstolfa/void-packages ansible-dev
https://github.com/void-linux/void-packages/pull/30968

ansible: update to 4.0.0
With the major version update of ansible to 4.0.0, ansible-base has been renamed to ansible-core. This pull request addresses the changes necessary to update ansible to 4.0.0.

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

A patch file from https://github.com/void-linux/void-packages/pull/30968.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ansible-dev-30968.patch --]
[-- Type: text/x-diff, Size: 3786 bytes --]

From 7925813afdd7e74ea9e3351a0681b7804bf01802 Mon Sep 17 00:00:00 2001
From: Domagoj Stolfa <ds815@gmx.com>
Date: Tue, 18 May 2021 16:34:37 +0100
Subject: [PATCH] ansible: update to 4.0.0

With the update of ansible to 4.0.0, ansible-base has been deprecated
and ansible-core is the new name of its dependency [1]. This commit
makes the following changes outside of ansible:

ansible-base is now a transitional package that depends on ansible-core.

ansible-core is what ansible-base used to be (for the most part) with
names changed where necessary.

In order to minimize the chance of users getting into a broken state,
this was all done as a single commit rather than separate ones.

[1]: https://www.ansible.com/blog/ansible-3.0.0-qa
---
 srcpkgs/ansible-base                            |  1 +
 srcpkgs/{ansible-base => ansible-core}/template | 17 ++++++++++++-----
 srcpkgs/{ansible-base => ansible-core}/update   |  0
 srcpkgs/ansible/template                        |  6 +++---
 4 files changed, 16 insertions(+), 8 deletions(-)
 create mode 120000 srcpkgs/ansible-base
 rename srcpkgs/{ansible-base => ansible-core}/template (60%)
 rename srcpkgs/{ansible-base => ansible-core}/update (100%)

diff --git a/srcpkgs/ansible-base b/srcpkgs/ansible-base
new file mode 120000
index 000000000000..33cb068f87ef
--- /dev/null
+++ b/srcpkgs/ansible-base
@@ -0,0 +1 @@
+ansible-core
\ No newline at end of file
diff --git a/srcpkgs/ansible-base/template b/srcpkgs/ansible-core/template
similarity index 60%
rename from srcpkgs/ansible-base/template
rename to srcpkgs/ansible-core/template
index 177f378e146d..a1d1b965003a 100644
--- a/srcpkgs/ansible-base/template
+++ b/srcpkgs/ansible-core/template
@@ -1,6 +1,6 @@
-# Template file for 'ansible-base'
-pkgname=ansible-base
-version=2.10.9
+# Template file for 'ansible-core'
+pkgname=ansible-core
+version=2.11.0
 revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
@@ -10,9 +10,10 @@ short_desc="Simple deployment, configuration management and execution framework"
 maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
 license="GPL-3.0-or-later"
 homepage="https://www.ansible.com/"
-distfiles="${PYPI_SITE}/a/ansible-base/ansible-base-${version}.tar.gz"
-checksum=04635d3e08fc29358c76b8e7f1e9db0ce443fb09ce30b2acc6cacaad165f2151
+distfiles="${PYPI_SITE}/a/ansible-core/ansible-core-${version}.tar.gz"
+checksum=9470ceb710711eacd75f1bcae802af036ab2a6c2cd5a13bfcb50b2d89667c9c5
 conflicts="ansible<2.10.1_1"
+replaces="ansible-base<2.11.0"
 make_check=no
 
 post_install() {
@@ -22,3 +23,9 @@ post_install() {
 		vman ${m}
 	done
 }
+
+ansible-base_package() {
+	build_style=meta
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" (transitional dummy package)"
+}
diff --git a/srcpkgs/ansible-base/update b/srcpkgs/ansible-core/update
similarity index 100%
rename from srcpkgs/ansible-base/update
rename to srcpkgs/ansible-core/update
diff --git a/srcpkgs/ansible/template b/srcpkgs/ansible/template
index 143f1e3f6ea4..d7c2047fcafc 100644
--- a/srcpkgs/ansible/template
+++ b/srcpkgs/ansible/template
@@ -1,14 +1,14 @@
 # Template file for 'ansible'
 pkgname=ansible
-version=3.3.0
+version=4.0.0
 revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3 ansible-base"
+depends="python3 ansible-core"
 short_desc="Simple deployment, configuration management and execution framework"
 maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
 license="GPL-3.0-or-later"
 homepage="https://www.ansible.com/"
 distfiles="${PYPI_SITE}/a/ansible/ansible-${version}.tar.gz"
-checksum=2de5385c48a2a24a19f6cbaccc7d7684c64b6194f9a9b175aba7949d53b07bc9
+checksum=6f67ca5c634e4721d1f8e206dc71d60d1a114d147945355bfc902bd37eb07080
 make_check=no

  parent reply	other threads:[~2021-05-21 11:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-18 15:36 [PR PATCH] ansible: update to 3.4.0 dstolfa
2021-05-18 22:54 ` [PR PATCH] [Updated] " dstolfa
2021-05-18 23:05 ` [PR PATCH] [Updated] ansible: update to 4.0.0 dstolfa
2021-05-18 23:15 ` dstolfa
2021-05-20 15:12 ` ahesford
2021-05-20 15:13 ` ahesford
2021-05-20 16:07 ` [PR PATCH] [Updated] " dstolfa
2021-05-20 16:11 ` dstolfa
2021-05-20 16:28 ` dstolfa
2021-05-21  0:53 ` jcgruenhage
2021-05-21 11:58 ` dstolfa [this message]
2021-05-21 13:54 ` ericonr
2021-05-21 13:54 ` [PR PATCH] [Closed]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210521115839.2Gf9Kl24Mr9AZqu961cnGmXXUQwPXNu6TcdwjMh-cN8@z \
    --to=dstolfa@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).