From 7fe6984499f95d52b3c32af6ab771aa8f08c2dd4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 22 Mar 2024 19:00:48 +0000 Subject: gentoo auto-resync : 22:03:2024 - 19:00:48 --- app-admin/drush/Manifest | 5 +- app-admin/drush/drush-6.7.0-r4.ebuild | 68 ---------------------- app-admin/drush/drush-6.7.0-r6.ebuild | 4 +- app-admin/drush/drush-6.7.0-r7.ebuild | 68 ++++++++++++++++++++++ .../files/drush-6.7.0-batch-signature-fix-r1.patch | 46 +++++++++++++++ 5 files changed, 118 insertions(+), 73 deletions(-) delete mode 100644 app-admin/drush/drush-6.7.0-r4.ebuild create mode 100644 app-admin/drush/drush-6.7.0-r7.ebuild create mode 100644 app-admin/drush/files/drush-6.7.0-batch-signature-fix-r1.patch (limited to 'app-admin/drush') diff --git a/app-admin/drush/Manifest b/app-admin/drush/Manifest index 3ccbb444dc67..fab0e17421de 100644 --- a/app-admin/drush/Manifest +++ b/app-admin/drush/Manifest @@ -1,10 +1,11 @@ AUX array-syntax.patch 2166 BLAKE2B 40c40456ea5f2deacb4f83f74abdb58300a1fd03f93544e05d0e4e58ec266422d5b2cffa0652b49022a6096801d8506779e2da5f11cabfbc2e15fb36f1a78fe1 SHA512 8fb8e243b885a40490b0e55a12e65639879e6adae60f2784e6c960338c9e842bb480d9d18d83c1dd834b8114c37c59a4709881936895faf0c3262878de62414a +AUX drush-6.7.0-batch-signature-fix-r1.patch 1547 BLAKE2B c11d9ae092e6d1fbf9134d094e034a32c3f8e0cbffdad1246a7124644a1f1f30a983dc267c7d48f9a378386c576eb05ea4c725aeec728142d6c4a63124d9d60e SHA512 22f5c7b8a005bd8b92f53312aa24cc59c70f7d519b0d7f5225137d82f86b42954448072a8f1b665e0056cf1200aab0e38dcc9359d89a37904927eb23f9d916fb AUX drush-6.7.0-batch-signature-fix.patch 1545 BLAKE2B a23c3f57fc3dfeec789019734cc294435a09abfaa66f0ec860efa6ce9eaec82d950e6f15afce870e4009cb895e7e6f4936bde07937fc2996f6a49d0550325a13 SHA512 22507ad189429a14af6a2b6344bb9c803b4536f55b25c3ecf68be47f69eedb45953b25e574b9b03ed43b7f0b600c3f0db116b7f14c0c130cd73008b38d27d4f1 AUX drush-6.7.0-dont-pass-null-to-strtoupper.patch 1076 BLAKE2B 3f2335b9d84e95705f38830d692902db9e460686e5b619840dc83116774a0fe5a7389bfe11cc213e2fcad398000a3b13d4c7cfba3c194d0df95d334fffad2b5f SHA512 5f506583a025f989d027519d5b64014274ddd69065890cc1ae3db1f89959b021dae849a25b9a35885f92b4e6ceb137990d13e0d1c0f7b0eb1b60bfac281ab008 AUX drush-6.7.0-gzip-mime.patch 775 BLAKE2B 6ed1f540ecff96f798c6dedb97da136b8f43e46bc5696f8aeedaab2419641880d161562ea04b44cc565bb76a693bf1ac9183d1efefbe1d744977381b45be8a3d SHA512 67002c5653301823b9b8efee4c0c00ef0dda9ca05f516eb13d5a9b82dc5837c28c59fea038f881c90e0313bbcd30ff434d58a1736b00c6be73b8da3c46a9291d AUX drush-6.7.0-php8.0.patch 3341 BLAKE2B 681c7bef6f7007e52767c4429015791a8ceb1bbc3ca80c7a8a924e880b811433e67485e5211368dbf89f2f03400f960e06395d64fb67d6fbcb8d85a1c0ce08d1 SHA512 73d74911945a1e74c2ef361e0f1cf89656356062fdcb4c1f36ac9a07d7f62bd29488283fcbffbb2f41700a9a89f6273d8203052fbcadada48bb2002a098a64d4 AUX update-bash-completion-script-for-2.1.patch 1332 BLAKE2B a54fa2cab268542a37f1020012cf7744106966419d2ba8415a2e2ead882feb3f3dc9bd9b1ab17f8592e5d021855f5361b05304efcc810362224935069ef1b897 SHA512 2e19a6be652684c1b1a2a9d6605c1404272391950408cd6ae964b2bdd9f95b1e59deec5111c1eaa563a92837ea394fcb2315a3032b2ab02996509b98eb7d1cf0 DIST drush-6.7.0.tar.gz 511581 BLAKE2B d3a589e3de35afe120d790f96ffa7e88b530da1e1d04815b1dea2f05cd081ad7dc6f4b39fa6f19b5620b9913b952ab289ec538f1b7c0c0f298d3cd0129eb7026 SHA512 203870190dd8987ad3da71f7625476c1f94bc75513447a740fd8c16268fb9705bcbc3b2bffc49a44045998e3fa49fd5ee9d4c0634a1fb39605ba8e10b7373fa5 -EBUILD drush-6.7.0-r4.ebuild 1731 BLAKE2B 209588f8a0e5a2ec602600d8a5d10e465517230f102a7ab3af0753561469c2ad1fd06ca48dd06be0c18e79ef9f95c65a1bc142ce66adf7333606c08085a947d3 SHA512 492a35026e2c3e781c082a17e2a3d15fbad235bb5ed56bc50f98b501fb7c8f97efd0b98a807257fcbe0d0b420504a5ddeeef67339592dac7f49ad9a78defe0eb -EBUILD drush-6.7.0-r6.ebuild 1832 BLAKE2B 70780ca8adba26ca907250510cba87b5d2070231113cd131f3161af84d40ecc13aa0ef6a2172b34933fbaa51427532dfc92bac2a8046b38b795697ab050c4210 SHA512 75ecb1f962a3c874b8c9344b30a8ee21c479c06c3beb893670b01d2993ac92e3ff29b4d786ee27100d1275ed56ac4ead00c5051b6025ca055035aac16a9ad196 +EBUILD drush-6.7.0-r6.ebuild 1814 BLAKE2B 6b3383e74124feb3615a3c3d9f9d51511cd26fd92862ee5038d8ec99eb853ef4715ce2dd89b43c5b888d24a81b88101920dd772681c5530f1c4f30f79902fa9f SHA512 6cdbef34ec70a2676c9829110232cb5dd3089b08bc336598b916c443beaa79e3a4f9bf2a63eef5247924ab5e003840ed1803b1336a28538ac0ca6ab25229980b +EBUILD drush-6.7.0-r7.ebuild 1819 BLAKE2B 7390947c19f19b1452b98ffc4e56fab27d2cb010902a3144ac2e0523c71467895c49bc94a10c6594bb0a3aecedd4b4fd6713ffb3538e2c5edce20ef7ed33e8de SHA512 06e4374039d4882bcf41a07534cc39c55a93a14e58cb2606d5adef2cc262fa358881d14a3110a36a72ce87bed28647ec99c3c6d044014671ef9e1040a6a75edf MISC metadata.xml 532 BLAKE2B c6ca539149d500608519aa982f4a3ef7f8e15b472d5140b8569371df6585c9f80ea57d7802fee00267bfe76290f2b9836be20250472bd261500fd5de84b974f7 SHA512 ec95e30855e93d1d04eac73b3dcf538c2ab38fbeb44acb7f3f7f3c3c04af9a5adba7dc96181cc02f136ffd901e22aab362dadef70aa9f84b0dde78a70bd36716 diff --git a/app-admin/drush/drush-6.7.0-r4.ebuild b/app-admin/drush/drush-6.7.0-r4.ebuild deleted file mode 100644 index 888cfc09e2bd..000000000000 --- a/app-admin/drush/drush-6.7.0-r4.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit bash-completion-r1 - -DESCRIPTION="Command line shell and scripting interface for Drupal" -HOMEPAGE="https://github.com/drush-ops/drush" -SRC_URI="https://github.com/drush-ops/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -DEPEND="" -RDEPEND="dev-lang/php[cli,ctype,json(+),simplexml] - dev-php/PEAR-Console_Table" - -PATCHES=( - "${FILESDIR}/update-bash-completion-script-for-2.1.patch" - "${FILESDIR}/array-syntax.patch" - "${FILESDIR}/${P}-php8.0.patch" - "${FILESDIR}/${P}-gzip-mime.patch" -) - -src_prepare() { - default - - # dodoc compresses all of the documentation, so we fix the filenames - # in a few places. - # - # First, the README location in bootstrap.inc. - sed -i -e \ - "s!/share/doc/drush!/share/doc/${PF}!" \ - -e "s!README\.md!\0.bz2!g" \ - includes/bootstrap.inc || die - - # Next, the list of documentation in docs.drush.inc. Note that - # html files don't get compressed. - sed -i \ - -e "s!\.bashrc'!.bashrc.bz2'!" \ - -e "s!\.inc'!.inc.bz2'!" \ - -e "s!\.ini'!.ini.bz2'!" \ - -e "s!\.md'!.md.bz2'!" \ - -e "s!\.php'!.php.bz2'!" \ - -e "s!\.script'!.script.bz2'!" \ - -e "s!\.txt'!.txt.bz2'!" \ - commands/core/docs.drush.inc || die -} - -src_install() { - # Always install the examples; they're referenced within the source - # code and too difficult to exorcise. - dodoc -r README.md docs examples - - insinto /usr/share/drush - doins -r classes commands includes lib misc - doins drush_logo-black.png drush.info drush.php - - exeinto /usr/share/drush - doexe drush - dosym ../share/drush/drush /usr/bin/drush - - keepdir /etc/drush - newbashcomp drush.complete.sh drush -} diff --git a/app-admin/drush/drush-6.7.0-r6.ebuild b/app-admin/drush/drush-6.7.0-r6.ebuild index d2eeb415631c..4f0d63ad593b 100644 --- a/app-admin/drush/drush-6.7.0-r6.ebuild +++ b/app-admin/drush/drush-6.7.0-r6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -12,9 +12,7 @@ SRC_URI="https://github.com/drush-ops/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" -IUSE="" -DEPEND="" RDEPEND="dev-lang/php[cli,ctype,json(+),simplexml] dev-php/PEAR-Console_Table" diff --git a/app-admin/drush/drush-6.7.0-r7.ebuild b/app-admin/drush/drush-6.7.0-r7.ebuild new file mode 100644 index 000000000000..1329345e4dc0 --- /dev/null +++ b/app-admin/drush/drush-6.7.0-r7.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 + +DESCRIPTION="Command line shell and scripting interface for Drupal" +HOMEPAGE="https://github.com/drush-ops/drush" +SRC_URI="https://github.com/drush-ops/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-lang/php[cli,ctype,json(+),simplexml] + dev-php/PEAR-Console_Table" + +PATCHES=( + "${FILESDIR}/update-bash-completion-script-for-2.1.patch" + "${FILESDIR}/array-syntax.patch" + "${FILESDIR}/${P}-php8.0.patch" + "${FILESDIR}/${P}-gzip-mime.patch" + "${FILESDIR}/${P}-dont-pass-null-to-strtoupper.patch" + "${FILESDIR}/${P}-batch-signature-fix-r1.patch" +) + +src_prepare() { + default + + # dodoc compresses all of the documentation, so we fix the filenames + # in a few places. + # + # First, the README location in bootstrap.inc. + sed -i -e \ + "s!/share/doc/drush!/share/doc/${PF}!" \ + -e "s!README\.md!\0.bz2!g" \ + includes/bootstrap.inc || die + + # Next, the list of documentation in docs.drush.inc. Note that + # html files don't get compressed. + sed -i \ + -e "s!\.bashrc'!.bashrc.bz2'!" \ + -e "s!\.inc'!.inc.bz2'!" \ + -e "s!\.ini'!.ini.bz2'!" \ + -e "s!\.md'!.md.bz2'!" \ + -e "s!\.php'!.php.bz2'!" \ + -e "s!\.script'!.script.bz2'!" \ + -e "s!\.txt'!.txt.bz2'!" \ + commands/core/docs.drush.inc || die +} + +src_install() { + # Always install the examples; they're referenced within the source + # code and too difficult to exorcise. + dodoc -r README.md docs examples + + insinto /usr/share/drush + doins -r classes commands includes lib misc + doins drush_logo-black.png drush.info drush.php + + exeinto /usr/share/drush + doexe drush + dosym ../share/drush/drush /usr/bin/drush + + keepdir /etc/drush + newbashcomp drush.complete.sh drush +} diff --git a/app-admin/drush/files/drush-6.7.0-batch-signature-fix-r1.patch b/app-admin/drush/files/drush-6.7.0-batch-signature-fix-r1.patch new file mode 100644 index 000000000000..14ee72b7dc4a --- /dev/null +++ b/app-admin/drush/files/drush-6.7.0-batch-signature-fix-r1.patch @@ -0,0 +1,46 @@ +From 1acd52cff0d516ebfa7f177c38ed7f851c4f472a Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +Date: Wed, 16 Aug 2023 21:21:39 -0400 +Subject: [PATCH] includes/batch.inc: synchronize sub and superclass signatures + +The DrushBatchContext class overrides the offsetSet() method of its +superclass, ArrayObject, but changes its signature: + + Error: Return type of DrushBatchContext::offsetSet($name, $value) + should either be compatible with ArrayObject::offsetSet(mixed $key, + mixed $value): void, or the #[\ReturnTypeWillChange] attribute should + be used to temporarily suppress the notice in .../batch.inc, line 37 + +Renaming the parameter to $key and adding type hints fixes the issue. + +Signed-off-by: Michael Orlitzky +--- + includes/batch.inc | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/includes/batch.inc b/includes/batch.inc +index dd4adc9..d26fabb 100644 +--- a/includes/batch.inc ++++ b/includes/batch.inc +@@ -34,14 +34,14 @@ + * @see _drush_batch_worker(). + */ + class DrushBatchContext extends ArrayObject { +- function offsetSet($name, $value) { +- if ($name == 'message') { ++ function offsetSet(mixed $key, mixed $value): void { ++ if ($key == 'message') { + drush_log(strip_tags($value), 'ok'); + } +- elseif ($name == 'error_message') { ++ elseif ($key == 'error_message') { + drush_set_error('DRUSH_BATCH_ERROR', strip_tags($value)); + } +- parent::offsetSet($name, $value); ++ parent::offsetSet($key, $value); + } + } + +-- +2.43.2 + -- cgit v1.2.3