Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jun 2021 08:31:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 256407] 'make check-plist' doesn't complain when optional file is installed despite the option being 'off'
Message-ID:  <bug-256407-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 256407
           Summary: 'make check-plist' doesn't complain when optional file
                    is installed despite the option being 'off'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: yuri@freebsd.org
                CC: ports-bugs@FreeBSD.org

Created attachment 225538
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D225538&action=
=3Dedit
testcase.shar

The attached testcase installs the file bin/xz unconditionally, while pkg-p=
list
has it conditional on the option Z (%%Z%%bin/xz).

With Z=3DOFF 'make check-plist' doesn't complain as it should that bin/xz is
missing from pkg-plist:
> =3D=3D=3D=3D> Checking for pkg-plist issues (check-plist)
> =3D=3D=3D> Parsing plist
> =3D=3D=3D> Checking for items in STAGEDIR missing from pkg-plist
> =3D=3D=3D> Checking for items in pkg-plist which are not in STAGEDIR
> =3D=3D=3D> No pkg-plist issues found (check-plist)


Porter's Handbook says:
> In pkg-plist, put %%X11%% in front of the lines only being installed when=
 the option is enabled, like this:
> > %%X11%%bin/foo-gui

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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