From 41e6307d039d35e659409120573b4ce594d54833 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 26 Sep 2026 16:53:24 -0400 Subject: [PATCH] microsoft-edge-stable-bin: drop the Debian cron job The deb's /etc/cron.daily/microsoft-edge runs a script that writes an apt keyring to /usr/share/keyrings every day. pacman doesn't track that file, so it stays behind after Edge is removed. Remove the cron job and its script the way the Chrome recipe already does, and skip the empty /etc left behind. pkgrel 2 so this build replaces AUR-installed copies. Found in a Codex review. Co-Authored-By: Claude Opus 5.5 (1M context) --- pkgbuilds/microsoft-edge-stable-bin/PKGBUILD | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgbuilds/microsoft-edge-stable-bin/PKGBUILD b/pkgbuilds/microsoft-edge-stable-bin/PKGBUILD index 5ed7df3..bc68b0f 100644 --- a/pkgbuilds/microsoft-edge-stable-bin/PKGBUILD +++ b/pkgbuilds/microsoft-edge-stable-bin/PKGBUILD @@ -11,7 +11,7 @@ _pkgname=microsoft-edge _pkgshortname=msedge _channel=stable pkgver=154.0.4258.37 -pkgrel=1 +pkgrel=2 pkgdesc="A browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier" arch=('x86_64') url="https://www.microsoftedgeinsider.com/en-us/download" @@ -29,7 +29,7 @@ optdepends=( 'ttf-liberation: fix fonts for some PDFs - CRBug #369991' 'xdg-utils' ) -options=(!strip !zipman) +options=(!strip !zipman !emptydirs) source=("https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/${_pkgname}-${_channel}_${pkgver}-1_amd64.deb" "microsoft-edge-stable.sh" "Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf") @@ -66,4 +66,9 @@ package() { # License install -Dm644 'Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf' "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.pdf" rm "${pkgdir}/opt/microsoft/${_pkgshortname}"/product_logo_*.png + + # Remove the Debian cron job, which installs an apt keyring pacman doesn't track + rm -r \ + "${pkgdir}/etc/cron.daily/" \ + "${pkgdir}/opt/microsoft/${_pkgshortname}/cron/" }