[Bug 263131] print/hplip fails to build without X11

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 08 Apr 2022 07:57:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263131

            Bug ID: 263131
           Summary: print/hplip fails to build without X11
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tijl@FreeBSD.org
          Reporter: janm@transactionware.com
             Flags: maintainer-feedback?(tijl@FreeBSD.org)
          Assignee: tijl@FreeBSD.org

Created attachment 233043
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233043&action=edit
Patch to handle the WITHOUT=X11 case in pkg-plist

Building print/hplip "WITHOUT=X11" gives the result below at the end of "make
package". The hplib/data/images directories are explicitly removed in the
WITHOUT=X11 case, but they are not excluded in pkg-plist. Patch attached.

/bin/mkdir -p /ports-work/usr/ports/print/hplip/work/stage/var/lib/hp
/bin/rmdir
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/*
 /ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images
====> Compressing man pages (compress-man)
===>  Building package for hplip-3.22.2
pkg-static: Unable to access file
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/128x128/:No
such file or directory
pkg-static: Unable to access file
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/16x16/:No
such file or directory
pkg-static: Unable to access file
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/24x24/:No
such file or directory
pkg-static: Unable to access file
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/256x256/:No
such file or directory
pkg-static: Unable to access file
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/32x32/:No
such file or directory
pkg-static: Unable to access file
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/64x64/:No
such file or directory
pkg-static: Unable to access file
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/devices/:No
such file or directory
pkg-static: Unable to access file
/ports-work/usr/ports/print/hplip/work/stage/usr/local/share/hplip/data/images/other/:No
such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/print/hplip

-- 
You are receiving this mail because:
You are the assignee for the bug.