Github messages for voidlinux
 help / color / mirror / Atom feed
From: Chocimier <Chocimier@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: removed-packages
Date: Tue, 05 Jan 2021 19:26:45 +0100	[thread overview]
Message-ID: <20210105182645.V8BRW7QqZYiJRbEO-m0siuH2j_LEVzvQFuOhRTNkNn8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17578@inbox.vuxu.org>

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

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

https://github.com/Chocimier/void-packages-org package-removal
https://github.com/void-linux/void-packages/pull/17578

New package: removed-packages
Continuation of #9745.

Adding package to conflicts= in removed-packages will cause removal from systems where it was installed.

In transaction, package is listed as to be removed.

As being explicit and actual remove, I see this way better than hidden and still-in-pkgdb way of updating to empty package.

This do not prevent from installing package again, but will remove again on removed-packages update.

Tested for removal of manually installed package, orphaned dependency, and shlib-provider and shlib-consumer in one transaction.


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-package-removal-17578.patch --]
[-- Type: text/x-diff, Size: 4439 bytes --]

From ed35cb2b7c65321b3a3bc34c5fe983520b5f3f14 Mon Sep 17 00:00:00 2001
From: Johannes <johannes.brechtmann@gmail.com>
Date: Wed, 13 Mar 2019 00:23:58 +0100
Subject: [PATCH 1/3] New package: removed-packages

this meta-package replaces all packages which should be removed
---
 srcpkgs/removed-packages/template | 83 +++++++++++++++++++++++++++++++
 1 file changed, 83 insertions(+)
 create mode 100644 srcpkgs/removed-packages/template

diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
new file mode 100644
index 00000000000..bc175313071
--- /dev/null
+++ b/srcpkgs/removed-packages/template
@@ -0,0 +1,83 @@
+# Template file for 'removed-packages'
+pkgname=removed-packages
+version=0.1
+revision=1
+build_style=meta
+short_desc="Uninstalls packages removed from repository"
+maintainer="Piotr Wójcik <chocimier@tlen.pl>"
+license="Public Domain"
+homepage="https://voidlinux.org"
+
+replaces="
+ Platinum9-theme<=0.0.0.20170720_3
+ apg<=2.2.3_5
+ arm-mem-git<=20131108_2
+ arptables<=0.0.4_3
+ bokken<=1.8_3
+ caja-gksu<=1.20.2_2
+ california<=0.4.0_4
+ ctpp2<=2.8.3_7
+ ctpp2-devel<=2.8.3_7
+ dleyna-core<=0.6.0_2
+ dleyna-renderer<=0.6.0_2
+ dleyna-server<=0.6.0_2
+ ebtables<=2.0.10.4_8
+ eclipse-ecj<=4.9_3
+ enventor<=1.0.0_2
+ epstopdf<=2.27_3
+ fontmatrix<=0.6.0.20171228_2
+ gksu<=2.0.2_4
+ go1.4-bootstrap<=20171003_2
+ goffice0.8<=0.8.17_6
+ grv<=0.3.1_3
+ httperf<=0.9.0_9
+ isl16<=0.16_2
+ keepassx<=0.4.4_2
+ libapp<=20140527_2
+ libdbusmenu-qt<=0.9.2_4
+ libgksu<=2.0.12_5
+ libqzeitgeist<=0.8.0_6
+ libump-git<=20150407_2
+ livewallpaper<=0.5.0_2
+ llvm3.9<=3.9.1_5
+ lmdb++<=0.9.14.0+20160229_2
+ ls++-git<=20140919_3
+ mac<=3.99u4b5s7_3
+ mdds0<=0.12.1_3
+ mongroup<=0.4.1_2
+ mtxclient<=0.2.0_3
+ nheko<=0.6.2_2
+ oksh<=0.5.9_3
+ oxygen-icons<=4.14.3_3
+ phonon-backend-gstreamer<=4.9.0_2
+ phonon-backend-vlc<=0.9.1_3
+ polkit-qt<=0.112.0_5
+ profile-sync-daemon<=5.75_4
+ profont<=1.0_2
+ puddletag<=1.2.0_3
+ pyside-tools<=0.2.15_2
+ python-PyQt4<=4.12.1_4
+ python-SecretStorage<=2.3.1_4
+ python-audit<=2.8.5_2
+ python-jellyfish<=0.6.1_2
+ python-pivy<=0.6.4_2
+ python-pyenet<=1.3.13.post7_2
+ python-pyside<=1.2.2_7
+ python-pytest-relaxed<=1.1.2_2
+ qimageblitz<=0.0.6_4
+ r2-bindings<=1.0.1_2
+ seriespl<=2.3.5_2
+ simple-obfs<=0.0.5_2
+ skypetab-ng<=20150201_3
+ soulseekqt<=20160117_2
+ spacefm-ng<=1.0.6_3
+ timidity<=2.15.0_1
+ ttyload-git<=20141117_4
+ tweeny<=2_2
+ urlmatch-git<=20141116_2
+ v8<=3.24.35.33_4
+ varnish<=6.1.1_3
+ wireguard-go<=0.0.20181222_2
+ wireshark-gtk<=3.0.7_1
+ yt-play<=20140117_2
+"

From 2ec1d42ef24a900915d1401e0fd4eb47ba0d44f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Tue, 17 Dec 2019 21:28:54 +0100
Subject: [PATCH 2/3] base-system: depend on removed-packages

---
 srcpkgs/base-system/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/base-system/template b/srcpkgs/base-system/template
index 810563c1bad..65c55e600a4 100644
--- a/srcpkgs/base-system/template
+++ b/srcpkgs/base-system/template
@@ -14,7 +14,7 @@ depends="
  mdocml>=1.13.3 shadow e2fsprogs btrfs-progs xfsprogs f2fs-tools dosfstools
  procps-ng tzdata pciutils usbutils iana-etc openssh dhcpcd
  kbd iproute2 iputils iw wpa_supplicant xbps nvi sudo wifi-firmware
- void-artwork traceroute ethtool kmod acpid eudev runit-void"
+ void-artwork traceroute ethtool kmod acpid eudev runit-void removed-packages"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) depends+=" musl";;

From 93e59edc47311c3710c33ef922027fc5a2950b1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Tue, 17 Dec 2019 21:30:28 +0100
Subject: [PATCH 3/3] Manual.md: add package to removed-packages on removal

---
 Manual.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Manual.md b/Manual.md
index 4f954b840be..27e5e2c82dc 100644
--- a/Manual.md
+++ b/Manual.md
@@ -1652,6 +1652,9 @@ generally those packages are the same but have been split as to avoid
 cyclic dependencies. Make sure that the package you're removing is not
 the source of those patches/files.
 - Remove package template.
+- Add `pkgname<=version_revision` to replaces field of removed-packages
+template.  All removed subpkgs should be added too.
+This will uninstall package from systems where it is installed.
 - Remove the package from the repository index
 or contact a team member that can do so.
 

  parent reply	other threads:[~2021-01-05 18:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17578@inbox.vuxu.org>
2020-12-30  7:27 ` the-maldridge
2021-01-05 18:26 ` Chocimier [this message]
2021-01-05 18:26 ` [PR PATCH] [Updated] " Chocimier
2021-01-05 18:29 ` Chocimier
2021-01-05 18:31 ` the-maldridge
2021-01-05 18:31 ` [PR PATCH] [Merged]: " the-maldridge

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=20210105182645.V8BRW7QqZYiJRbEO-m0siuH2j_LEVzvQFuOhRTNkNn8@z \
    --to=chocimier@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).