From nobody Sun Mar 12 14:55:45 2023 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 4PZNBn3yfSz3xyC2 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 4PZNBn11g5z3jK7 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=J7+xwz/B05K2K4Hu8bWLZ1LlLLu8634nyu+3ww/P8QA=; b=vt0fv/39sAGtGV38QDB+erEWVcjyB9vQ2dXZSR38jUYR8DFNlyMAv4znqNI2pNTY/9kXb5 HMgG1uCYUeYTb7taldmoWvCD7gsME17c7JxFAX5KrJoYb8rQhuW+wp8QRFw450KxiTWFOn dWj9csNk4/RF/zRCmALVNV7EG9IUIoTatKjrCE79wSljPnLM0GB2y7gvbmU7fLv3sSWK1Y UXsn0nmBzVAleWFtkQAKLgRyTq/obware4jL+zGVydUulw9OFnZk1+9AgfzlAVZSYiMSOS SYhvMtO8Vp2ATVcIwOC7UiKLbyhgijqJUGrf1nmeJoSCJ/uFPwZIxl+m7cEEkQ== 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=RR4IFFMXOwgYzwHcRRUZk7EEt77KORTrbkzz4BUfjTPwN7jjqp8AORmPpgFDdD/8Qdh8+X L+uLmtCYZH3+Rv+mFGQ+RySbRAFArUi0IaXS+PGEOgHuR+2ERDfi/BpgKB0vYUV+DoazjX VmJzXuj82MrMqi1cwmCyhSaDUbnOUNxN7vnvx5ATgEeYBUoKkXkKprg8w7tAFgfVdKySXl clgjPjOWdMG/blWAZlaTWbMQoXgVZ1S8JVInorIZ77Nv+TM8IXrSsUmwg5zN3qX4Lsa69n GYTc0z8dC66p9TX95ddGx1QCd8ZvgN2vjxArZXB4y3JqNimrJIfqm5SF/hMa1A== 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 4PZNBn05S8zGM6 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 32CEtiVF073935 for ; Sun, 12 Mar 2023 14:55:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32CEtipI073934 for pkg@FreeBSD.org; Sun, 12 Mar 2023 14:55:44 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 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: CC 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: 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 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 on the CC list for the bug.=