From nobody Sat Oct 02 08:56:48 2021 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 2BED617E8375 for ; Sat, 2 Oct 2021 08:56:48 +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 4HM17N0d3cz3H1f for ; Sat, 2 Oct 2021 08:56:48 +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 E9F8810738 for ; Sat, 2 Oct 2021 08:56:47 +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 1928uldA082912 for ; Sat, 2 Oct 2021 08:56:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1928ulHO082911 for pkg@FreeBSD.org; Sat, 2 Oct 2021 08:56:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: maintainer-feedback requested: [Bug 258858] ports-mgmt/pkg: 1.17.2 fails to upgrade en-freebsd-doc and de-freebsd-doc 20210125,1 -> 20210918,1 Date: Sat, 02 Oct 2021 08:56:48 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-pkg (Nobody) for maintainer-feedback: Bug 258858: ports-mgmt/pkg: 1.17.2 fails to upgrade en-freebsd-doc and de-freebsd-doc 20210125,1 -> 20210918,1 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258858 --- Description --- Greetings, several of my machines require two "pkg upgrade" runs to upgrade the en-freebsd-doc and de-freebsd-doc packages from 20210125,1 to 20210918,1.=20 There is no note of this in ports/CHANGES. The relevant change is apparent= ly 7ee8c0803bbf5763c4c84bf23ccef422db9a692b. The workaround appears to be pkg delete-ing the old *-freebsd-doc packages = and reinstalling them by name afterwards. Please add a note of this to ports/CHANGES. Data Points as Debugging Aids: * I have rebuilt the old package from ports 84ebfb568a682d804cdcf77514670c5085a4f368 for FreeBSD:13:* - get it from https://people.freebsd.org/~mandree/en-freebsd-doc-20210125,1.pkg (35 MibiBytes) * 1st run: pkg: Fail to rename /usr/local/share/doc/freebsd/en/articles/bsdl-gpl/.pkgtemp.article.html.bYS= z3D0 4nZod -> /usr/local/share/doc/freebsd/en/articles/bsdl-gpl/article.html:No such f= ile or directory * 2nd run: pkg: unlinkat(usr/local/share/doc/freebsd/en): Operation not permitted Relevant contents (sorry, de_DE locale for dates but you get the file types= ): Old package en-freebsd-doc: 20210125,1 $ ls -ldb /usr/local/share/doc/freebsd/en lrwxr-xr-x 1 root wheel 15 1 Okt. 09:27 /usr/local/share/doc/freebsd/en= -> en_US.ISO8859-1 New package en-freebsd-doc: 20210918,1 $ ls -ldb /usr/local/share/doc/freebsd/en drwxr-xr-x 7 root wheel 7 1 Okt. 09:41 en NOTE: Failed upgrades appear to leave the old en_US.ISO8859-1 and other directories behind, and also .pkg* temp files. Longer logs: see attachment for pkg -d upgrade logs. Reference screenshots of plain pkg upgrade: First pkg run aborts: ... Checking for upgrades (7 candidates): 100% Processing candidates (7 candidates): 100% The following 2 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: automake: 1.16.3 -> 1.16.4 [FreeBSD-latest] en-freebsd-doc: 20210125,1 -> 20210918,1 [FreeBSD-latest] Number of packages to be upgraded: 2 The operation will free 13 MiB. 20 MiB to be downloaded. Proceed with this action? [y/N]: y [1/2] Fetching en-freebsd-doc-20210918,1.pkg: 100% 20 MiB 1.9MB/s 00:1= 1=20 [2/2] Fetching automake-1.16.4.pkg: 100% 550 KiB 562.9kB/s 00:01=09 Checking integrity... done (0 conflicting) [1/2] Upgrading en-freebsd-doc from 20210125,1 to 20210918,1... [1/2] Extracting en-freebsd-doc-20210918,1: 100% pkg: Fail to rename /usr/local/share/doc/freebsd/en/articles/bsdl-gpl/.pkgtemp.article.html.bYS= z3D0 4nZod -> /usr/local/share/doc/freebsd/en/articles/bsdl-gpl/article.html:No such f= ile or directory Second run emits a truckload of errors (see log) but succeeds: [root@rsv1 ~]# pkg upgrade -y Updating FreeBSD-latest repository catalogue... FreeBSD-latest repository is up to date. Updating local repository catalogue... local repository is up to date. All repositories are up to date. Checking for upgrades (7 candidates): 100% Processing candidates (7 candidates): 100% Checking integrity... done (0 conflicting) The following 2 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: automake: 1.16.3 -> 1.16.4 [FreeBSD-latest] en-freebsd-doc: 20210125,1 -> 20210918,1 [FreeBSD-latest] Number of packages to be upgraded: 2 The operation will free 13 MiB. [1/2] Upgrading en-freebsd-doc from 20210125,1 to 20210918,1... [1/2] Extracting en-freebsd-doc-20210918,1: 100% pkg: unlinkat(usr/local/share/doc/freebsd/en): Operation not permitted en-freebsd-doc-20210125,1: missing file /usr/local/share/doc/freebsd/en_US.ISO8859-1/articles/bsdl-gpl/addenda.html en-freebsd-doc-20210125,1: missing file /usr/local/share/doc/freebsd/en_US.ISO8859-1/articles/bsdl-gpl/article.html ... en-freebsd-doc-20210125,1: missing file /usr/local/share/doc/freebsd/en_US.ISO8859-1/books/porters-handbook/version= s.ht ml en-freebsd-doc-20210125,1: missing file /usr/local/share/doc/freebsd/en_US.ISO8859-1/books/porters-handbook/why-por= t.ht ml en-freebsd-doc-20210125,1: missing file /usr/local/share/doc/freebsd/faq en-freebsd-doc-20210125,1: missing file /usr/local/share/doc/freebsd/handbo= ok en-freebsd-doc-20210125,1: missing file /usr/local/share/licenses/en-freebsd-doc-20210125,1/BSD2CLAUSE en-freebsd-doc-20210125,1: missing file /usr/local/share/licenses/en-freebsd-doc-20210125,1/LICENSE en-freebsd-doc-20210125,1: missing file /usr/local/share/licenses/en-freebsd-doc-20210125,1/catalog.mk [2/2] Upgrading automake from 1.16.3 to 1.16.4... [2/2] Extracting automake-1.16.4: 100%