[Bug 271303] games/brutalchess: Art and font files are corrupted by dos2unix

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 May 2023 23:35:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271303

            Bug ID: 271303
           Summary: games/brutalchess: Art and font files are corrupted by
                    dos2unix
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ntspam2@netscape.net
                CC: gustau.perez@gmail.com
                CC: gustau.perez@gmail.com
             Flags: maintainer-feedback?(gustau.perez@gmail.com)

This port's Makefile includes the USES macro dos2unix, but doesn't set any of
the variables DOS2UNIX_FILES, DOS2UNIX_GLOB, or DOS2UNIX_REGEX to limit the
files to be converted. This results in corrupted binary files, including the
PNG art and TTF font files.
This is why many graphics fail to load, and the squares of the chessboard don't
show.
I see the following error messages:
Failed to load pawn.
Failed to load pawn.
Failed to load pawn.
libpng error: PNG file corrupted by ASCII conversion
Failed to load marblehugeblack.png texture

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