[Bug 284349] graphics/pcdtojpeg: Broken in multiple ways

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Jan 2025 17:47:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284349

            Bug ID: 284349
           Summary: graphics/pcdtojpeg: Broken in multiple ways
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dinoex@FreeBSD.org
          Reporter: diizzy@FreeBSD.org
             Flags: maintainer-feedback?(dinoex@FreeBSD.org)
          Assignee: dinoex@FreeBSD.org

Hi,

Unfortunately this appears to be broken in multiple ways.

Resulting binary doesn't work (14.2-RELEASE on amd64):

pcdtojpeg BlownJohn.pcd BlownJohn-pcd-stock.jpeg
Segmentation fault (core dumped)

pcdtojpeg -r 4 BlownJohn.pcd BlownJohn-pcdtojpeg-5.jpg
Segmentation fault (core dumped)

pcdtojpeg -r 3 BlownJohn.pcd BlownJohn-pcdtojpeg-5.jpg
Segmentation fault (core dumped)

pcdtojpeg -r 5 BlownJohn.pcd BlownJohn-pcdtojpeg-5.jpg
Warning: Could not open 64Base IPE file while trying to process ICE file
....
Segmentation fault (core dumped)

While documentation is provided a note about this during install would be
helpful.

Image source:
https://sembiance.com/fileFormatSamples/image/pcd/

CXXFLAGS are dropped due to misspelling
https://cgit.freebsd.org/ports/tree/graphics/pcdtojpeg/Makefile?id=942e8b555262a6e684ef69e96e0036e065fb8211#n23

DISTVERSION can be used consistently instead of mixing with PORTVERSION

We likely want to avoid doing exercises with tar in post-install
sections?

Please sort USES and make it a separate section (see portfmt and Porters
Handbook).

I'm not sure if the claims on the website are still valid as ImageMagick7
appears to work fine as long as you set colorspace to sRGB during conversion.

ffmpeg also appears to work fine although image is rotated 90 degrees.

Best regards,
Daniel

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