From nobody Sun Mar 12 14:55:45 2023 X-Original-To: ports-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 4PZNBn41Ysz3xy8V for ; Sun, 12 Mar 2023 14:55:45 +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 4PZNBn2Mrdz3jRn for ; Sun, 12 Mar 2023 14:55:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678632945; 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=rmGb5mG8OJ9Gavu9LYBXTCcdYGQIfOP2ySw17reWkI8=; b=tBMxxVwzSzr/N339oqiVPtbr7yqGX7dgBGA8sOHaGzn6MSnStBWvHY8EH9ILbZfMmwJUhC pdo+tQsB4wQgs6ik4ramiqoXBKRVs7J3nMF2jLaSr6Zvmwd4tCIUgkmy6c3ZJq3B/dm9Cr oRCi4vi/z3wfDwBarKgGxnT3LnwpWI+GI/Gn5uMq+nwEDkIk1hRV8tet9WPkaiRmgEsk9k epWeyF3VvKHMK2V6JcS/6aJ1mPDF/53507lZbBF5sb5fTkgvCFluUm9vXhniAFnfe0KpxF M4iZnkVWb/VdQiy54MgcnuHiHhuMQpZqJ7ubgn5XpbJ3ii1CqwHa+IBzxelRqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678632945; a=rsa-sha256; cv=none; b=NoHqmBY5jEQ1t0kkALw3f1TQLD810oMZDKV2ce0pJaIT6O88bN6bgCSCXtJswHZdf2rsfQ E9ETLD1yeXeoL1sRIZOuA7aUyCSm9vrwaa+I5Qn96aH0xnZlXMp0+FEVOUkrEJ+oOBquVs gopZS3JgDbZbOonjP3TdjoguwuszU9z7PlyQyyj7NBnYj3+833JYoFq0LNrreySvb69Hn6 HNwJYXH/n0anA+6AL+HHxFC/eLxMF7UKuqL6yZbpdAXFpFY0OJocVX1uOJFC0VjFFXf5s7 /JMOQ/vLUFVlpP4gVRmeAD3XZ7UZ25aZnngjlAc0LEX4z0ap/Oq9M29LWZBdFA== 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 4PZNBn1RY7zG4q for ; Sun, 12 Mar 2023 14:55:45 +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 32CEtjAS073944 for ; Sun, 12 Mar 2023 14:55:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32CEtj4L073943 for ports-bugs@FreeBSD.org; Sun, 12 Mar 2023 14:55:45 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: ports-bugs@FreeBSD.org Subject: [Bug 270157] ports-mgmt/portupgrade: with portupgrade -P install of ports-mgmt/pkg fails Date: Sun, 12 Mar 2023 14:55:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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 Some People X-Bugzilla-Who: fabian@wenks.ch X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-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 cc 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270157 Bug ID: 270157 Summary: ports-mgmt/portupgrade: with portupgrade -P install of ports-mgmt/pkg fails Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: fabian@wenks.ch CC: bdrewery@FreeBSD.org, pkg@FreeBSD.org CC: bdrewery@FreeBSD.org, pkg@FreeBSD.org I am running a hand full of servers and in the past I have build and instal= led all the ports on each server individually. As some of them are not so power= ful I have create a kind of an unusual setup to build packages only on the most powerful server. The packages are stored in the NFS shared /usr/ports/packages/All/ directory. My workflow is like this: 1) on all servers I run (at the same time): cd /usr/ports/ && nice -n 5 make update && nice -n 5 make fetchindex && nic= e -n 5 portupgrade -an 2) on the build server I run: nice -n 5 portupgrade -ap and then an own script to remove outdated packages, create .txz link to .pkg and also run: pkg repo /usr/ports/packages 3) on all other server then I run: nice -n 5 portupgrade -akP As not all ports are installed on the build server, other servers will build the port locally (mostly small stuff which does not need a lot to build). With the use of 'portupgrade -P' ports installed from packages are done with 'pkg', but when the port is build locally, then 'pkg-static' is used (as it also is the case when -P is not used). With an update of ports-mgmt/pkg on the build server it gets build and a package is created and stored in /usr/ports/packages/All/. But then on the other server the installation fails as the installed ports-mgmt/pkg gets removed and pkg is not there any more to install. Why is 'portupgrade -P' u= sing 'pkg' instead of 'pkg-static' to upgrade from a packages? My workaround currently is like this (needs to be done before running 'portupgrade -akP'): pkg install /usr/ports/packages/All/pkg-1.19.1_1.pkg I am aware that I could create a proper build environment with a jail and poudriere, but what I currently have works fine for my use case. My next improvements will be to also use a NFS share for /usr/ports/ (to only run '= make update' and 'make fetchindex' on one server) and /var/db/ports/ and use something like 'WRKDIRPREFIX=3D/path/to/ports-workdir portupgrade' to avoid building over NFS. --=20 You are receiving this mail because: You are the assignee for the bug.=