Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Sep 2023 15:34:11 +0000
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
Message-ID:  <bug-273660-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273660-7788>