From nobody Sat Sep 09 15:34:11 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 4RjcTb5nnMz4sg7V for ; Sat, 9 Sep 2023 15:34:11 +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 4RjcTb3d1Rz4Ljw for ; Sat, 9 Sep 2023 15:34:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694273651; a=rsa-sha256; cv=none; b=NPwSdNXhT1orRNTF63hxXd/8U4aBc020opinyolwS8AYb+y2avW1xriJ51f25TpcvOyRpW +2K2yIoFm6BFIafKixAoA4sVPx2quQ+be6zPzD6OCbxcjMSTHnxyydFsD2h3gEMIwjljPf w5myou2xmXJBzN51GJnnevKUhWg9RZ4Xl8lXNn97Jn92/p+xQiidNPjxFqNP8PBCoi3DRv CeOVJIQe8TTy+hfTIgmQULmTF0Hq2tdoCvE9Wr1o3l4UnfXFZlafYLwkiIW+BUZIi/852h 6AbpktlFKrPC/uxepMakaYZTFUhyg8Ec05Z0IgS+nPu8oLnoFajDWAlPwP64NA== 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=1694273651; 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=N6Fk0GVWkFBbDu1V5lwKqJDrzwpO0kN/ehkSADFIGKc=; b=eWb/mYTaFSDWMQr3KlKv0t5pnZWsepGH82d9rdA69nLHf1YtzL5j96E1vw7wl44OCuVO7Z XFDRQqdwzhU6+PeBpWtKa8UIMvDEeQPP8dZM4dsUT0flNWgn3W3kWWBYzHqC8L7y0aH3dv BoEWvfWYzMj6NmHXMFdi5gNQM9jwS98s+2DyfcHW8iNkMC9YpZxK5MKzjlM3PwRPY+6CtL mqCBsZTfHxbk8gQymxwJxJTVVq6kPGZ3dJDtmaXLDMaeNYn/9QFDGZzB/v9mCBfQS2qDus 86rM2d50n+2On0/RzV7IrMTWO1wC5OJsR32sUo+1khQqOrFN3Q6UGPweZxPDpQ== 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 4RjcTb2cyRzWBY for ; Sat, 9 Sep 2023 15:34:11 +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 389FYB1F096432 for ; Sat, 9 Sep 2023 15:34:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 389FYBTw096431 for ports-bugs@FreeBSD.org; Sat, 9 Sep 2023 15:34:11 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 273660] portmaster with -P or --packages option stops after installation of each and every port Date: Sat, 09 Sep 2023 15:34:11 +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 Only Me X-Bugzilla-Who: dvoich@aim.com 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 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273660 Bug ID: 273660 Summary: portmaster with -P or --packages option stops after installation of each and every port Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dvoich@aim.com When using the -P or --package option to portmaster, portmaster stops after= the installation of each port. Entering a CR makes it continue. This happens because $DI_FILES is the empty string at this point so "head" expects input from stdin. I made the following change locally which fixed the issue to my satisfactio= n. diff -u /usr/local/sbin/portmaster pmaster/portmaster --- /usr/local/sbin/portmaster 2023-05-31 15:30:07.762985000 -0400 +++ pmaster/portmaster 2023-09-09 11:14:36.062073000 -0400 @@ -1223,7 +1223,7 @@ di_file_complete=3D pm_wait_di_file_complete () { - if [ -z "$di_file_complete" ] && [ `head -1 $DI_FILES` =3D '#######= #####' ]; then + if [ -z "$di_file_complete" ] && [ -n "$DI_FILES" ] && [ `head -1 $DI_FILES` =3D '############' ]; then echo "=3D=3D=3D>>> Waiting for background read of distinfo = files to finish" while [ `head -1 $DI_FILES` =3D '############' ]; do sleep 1 uname -a FreeBSD happy 13.2-RELEASE-p3 FreeBSD 13.2-RELEASE-p3 GENERIC amd64 pkg info portmaster portmaster-3.26 --=20 You are receiving this mail because: You are the assignee for the bug.=