Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Nov 2020 15:19:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 250926] ports-mgmt/pkg: @shell keyword is broken
Message-ID:  <bug-250926-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250926

            Bug ID: 250926
           Summary: ports-mgmt/pkg: @shell keyword is broken
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: chris@chrullrich.net
          Assignee: pkg@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)

The @shell keyword is broken:

# pkg install -f bash
Updating packagesite repository catalogue...
packagesite repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        bash-5.0.18_3

Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/1] Reinstalling bash-5.0.18_3...
[1/1] Extracting bash-5.0.18_3: 100%
pkg: Failed to execute lua script: [string "shell_path =3D
pkg.prefixed_path("bin/bash")..."]:7: attempt to index a nil value (global
'shell')
pkg: lua script failed


Same for other ports with the @shell keyword (devel/git), same within poudr=
iere
testport.

The last change to Keywords/shell.ucl replaced the working sh implementation
with Lua. I noticed the problem with the second git upgrade since then, so =
this
was the first time pkg tried to run a post-deinstall script that has the Lua
implementation.

FreeBSD 12.2-RELEASE (releng/12.2), pkg 1.15.10, ports head, amd64.

--=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-250926-7788>