From nobody Mon May 9 13:48:43 2022 X-Original-To: bugs@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 EB45B1AC1804 for ; Mon, 9 May 2022 13:48:43 +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 4KxjF74t2Kz3tLc for ; Mon, 9 May 2022 13:48:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 83BF012335 for ; Mon, 9 May 2022 13:48:43 +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 249DmhZD093204 for ; Mon, 9 May 2022 13:48:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 249DmheY093203 for bugs@FreeBSD.org; Mon, 9 May 2022 13:48:43 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: bugs@FreeBSD.org Subject: [Bug 263879] pkgbase removes critical etc files upon upgrade Date: Mon, 09 May 2022 13:48:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652104123; 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; bh=4OTiONYd90rUs1fKCF38LEOLV2rglhe8viSYHGjWrfo=; b=DLw3JsNEzFTvDslvlpEBjTa7i+/sVWu+W28TLz0Qflgt306lHXRS/irxYKumjuBzG29Es7 EckLc3T5JBIrPfxJQTBKwap0FY5U2rHcYUdostGSTaQUB8mAZlhB+jWZLb9FSKfzGEimM/ TbAbR2JHq2dNzHhN6aBXDB8EoVUfskqg0SHZqjYbXBocpV1SuHw5PMyfDOzCic116Fr0nS tELS6SeULNerYGalRPQ1pvmOVuH6GgXIr1cD4SflRDLe3cu1Y0Qyrq7xLG/AbxRTeunCL3 aVzyyxH2IIppqV3vs0hm9rltOFtJPlf53EbJK7rujNW3aDZZw7wtKwAR7Yu0Jw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652104123; a=rsa-sha256; cv=none; b=TfHDDf6uiL6FxfnSLXDMKyGWN9oD4dK6eFGehTsjit0fVimRFVhZkujJ6OvEY7RCaoG1XN Z+nWKwB8KOfFkXC6nfS39Lw0bQPGy5wHGsYNycVLFm+6iVuUlGPmhsibAe3C0agM4vrxHZ 6v3HWSaQEhmvsKPDkZE4pQL/BL6qPXIvwiLPfkofqucR8xI9eUz9LVVBzl08pjeEidqGGx oMazuCBqcORRISP9Lnb8+TFuBbkaoxQeUxXzC+uCzB499MkfW2CfvsMlPsdmxVY3G/TEzI iLepaxtixLmAAWV3mdWWIQ8abOqxCTAOf/tqc0fT+Dts6v+b9IphJIJ6Jw1k+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263879 Bug ID: 263879 Summary: pkgbase removes critical etc files upon upgrade Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: markj@FreeBSD.org Upgrading a pkgbase system, I lost /etc/group and /etc/master.passwd, among other files, because pkg split the FreeBSD-runtime upgrade job: - FreeBSD-runtime-dev-lib32-14.snap20220509053256 [FreeBSD-base] conflicts with FreeBSD-runtime-dev-14.snap20220503053224 [installed] on /usr/libdata/pkgconfig/zlib.pc - FreeBSD-runtime-dev-lib32-14.snap20220509053256 [FreeBSD-base] conflicts with FreeBSD-runtime-dev-14.snap20220509053256 [FreeBSD-base] on /usr/libdata/pkgconfig/zlib.pc - FreeBSD-libmagic-dev-lib32-14.snap20220509053256 [FreeBSD-base] conflic= ts with FreeBSD-libmagic-dev-14.snap20220503053224 [installed] on /usr/libdata/pkgconfig/libmagic.pc - FreeBSD-libmagic-dev-lib32-14.snap20220509053256 [FreeBSD-base] conflic= ts with FreeBSD-libmagic-dev-14.snap20220509053256 [FreeBSD-base] on /usr/libdata/pkgconfig/libmagic.pc - FreeBSD-liblzma-dev-lib32-14.snap20220509053256 [FreeBSD-base] conflicts with FreeBSD-liblzma-dev-14.snap20220503053224 [installed] on /usr/libdata/pkgconfig/liblzma.pc - FreeBSD-liblzma-dev-lib32-14.snap20220509053256 [FreeBSD-base] conflicts with FreeBSD-liblzma-dev-14.snap20220509053256 [FreeBSD-base] on /usr/libdata/pkgconfig/liblzma.pc - FreeBSD-hyperv-tools-14.snap20220509053256 [FreeBSD-base] conflicts with FreeBSD-runtime-14.snap20220503053224 [installed] on /etc/devd/hyperv.conf ... [1/389] Deinstalling FreeBSD-runtime-14.snap20220503053224...=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 [1/389] Deleting files for FreeBSD-runtime-14.snap20220503053224: 100%=20= =20=20=20=20=20=20=20=20=20 [2/389] Deinstalling FreeBSD-runtime-dev-14.snap20220503053224...=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 [2/389] Deleting files for FreeBSD-runtime-dev-14.snap20220503053224: 100% [3/389] Deinstalling FreeBSD-libmagic-dev-14.snap20220503053224... [3/389] Deleting files for FreeBSD-libmagic-dev-14.snap20220503053224: 100% [4/389] Deinstalling FreeBSD-liblzma-dev-14.snap20220503053224... [4/389] Deleting files for FreeBSD-liblzma-dev-14.snap20220503053224: 100% [4/389] Installing FreeBSD-runtime-14.snap20220509053256... [4/389] Extracting FreeBSD-runtime-14.snap20220509053256: 0% pkg: getgrnam_r(wheel): No such file or directory ... So this seems to be a consequence of https://cgit.freebsd.org/src/commit/?id=3D7ac164dc8e2ec3e6d3cda1d9ca13d461a= 534a6e8 . In particular, pkg sees that hyperv.conf moved out of FreeBSD-runtime, s= o to both upgrade FreeBSD-runtime and FreeBSD-hyperv-tools, pkg deleted the form= er and reinstalled it, so all the etc files that it manages get reset to their defaults. A workaround is to delete FreeBSD-hyperv-tools before upgrading. In this case, it looks simply like a deficiency of the solver. Moving hyperv.conf just means that pkg must upgrade FreeBSD-runtime before FreeBSD-hyperv-tools; it does not need to delete then install FreeBSD-runti= me. More generally, pkg/pkgbase really need some mechanism to avoid deleting critical files. --=20 You are receiving this mail because: You are the assignee for the bug.=