From nobody Fri Mar 01 09:23:53 2024 X-Original-To: pkg@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TmN222VBFz5CH2X for ; Fri, 1 Mar 2024 09:23:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TmN212ClLz4wZf for ; Fri, 1 Mar 2024 09:23:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709285033; a=rsa-sha256; cv=none; b=DW24sjpqPYsR565V/g+EJcdbfU7Dx/zTVtdl/NBHY+2ViO0ooo4dhd5VlJ+Ck5+oIpJbt7 l+kMMnyIFqDXW++5iKQXJyYQVDCa9TBnG3giPg85cbbX6/hnGQe2uxrsbZunZKEaB2Z1VI qDmQQhRDMjB0zSxg3kGvSi3kC6VNIG2pkAf5nR1kbZHUWnFXkFaw4ZlUeRp5JJRAAXW0rO 1NsiKTdgyu2xgEjlKfglbc3PFJNgZV3sKUIHSjMJ1yPZ8fUalshhddY48afNBJ02vrp6az BU97FRbJb2y7nq/po+RAuzSI2OgdeYrZIGvFTKYss3hP+/pfiY6K4BWyBeTjDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709285033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6ZWMY5hTzFQkpqpDvdDy/NFeAWs74n4L8qEkk9ejgvk=; b=Yn0a/3UsxSr51NKMR2+uwm1djf+VkOSZVwwsPRxSMjvKhjK+peOhgeOLEBbWXBzFn5IVHf PrF3cRppx9HugWrJZNNwMuHcLdTpS/L5O1TFppmB1o9ZjYgTgLkPg6sSpT+Sue5yrLD3EJ zOFMto6+XEF0TtYow5mhDvNRtMkD7YoLWvyeTTQvsisU1tDKxA6PVi29nwP8YbmSO1BDiG K5BMRUf6oh7lJbfnrfm0OCVDiJ3gupzns5LrQuaiEaYbSz+yZwYI2RzmlwGlJOHo1r8ubk iDHEI8iTy3+QvQVRaZLqrIdJEv4LJBvCtDf3nJZ7zQ9cOF9v5bfqBYOAU2mPLg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TmN211qQDzL4C for ; Fri, 1 Mar 2024 09:23:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4219NrtX097848 for ; Fri, 1 Mar 2024 09:23:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4219Nrcm097847 for pkg@FreeBSD.org; Fri, 1 Mar 2024 09:23:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 277411] ports-mgmt/pkg: @postunexec command in pkg-plist isn't executed when package is upgraded with `pkg upgrade` Date: Fri, 01 Mar 2024 09:23:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yasu@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277411 Yasuhiro Kimura changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #2 from Yasuhiro Kimura --- (In reply to Baptiste Daroussin from comment #1) Thanks for quick reply. I found the problem(?) while testing attached patch of bug #276990. Current= ly security/gnupg/pkg-plist includes following lines. ---------------------------------------------------------------------- @postexec [ -e %D/man/man1/gpg.1.gz ] || ln -sf gpg2.1.gz %D/man/man1/gpg.1= .gz @postunexec [ -e %D/man/man1/gpg.1.gz ] || rm -f %D/man/man1/gpg.1.gz ---------------------------------------------------------------------- The intention of them is to make manpage of gpg2(1) also accessible as gpg(= 1) when security/gpg1 isn't installed. And when manpages of the port were move= to share/man these lines shold also have been adjusted. But they didn't and, a= s a result, ${PREFIX}/man/man1/gpg.1.gz is stale symlink now. So the patch of bug #276990 changes above lines as following. ---------------------------------------------------------------------- @postexec [ -e %D/share/man/man1/gpg.1.gz ] || ln -sf gpg2.1.gz %D/share/man/man1/gpg.1.gz @postunexec [ -e %D/share/man/man1/gpg.1.gz ] || rm -f %D/share/man/man1/gpg.1.gz ---------------------------------------------------------------------- But ${PREFIX}/man/man1/gpg.1.gz isn't removed after the package is upgraded with `pkg upgrade` because @postunexec command of old version isn't execute= d. In bug #276990, comment #3 it is proposed to keep old @postunexec command l= ine. But it doesn't solve the problem. So is there any way to remove old ${PREFIX}/man/man1/gpg.1.gz with `pkg upgrade`? --=20 You are receiving this mail because: You are the assignee for the bug.=