Bug 251609

Summary: graphids/sane-epkowa: fails to load because of missing symbol isfdtype
Product: Ports & Packages Reporter: andy
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
a patch to remove the Linuxism none

Description andy 2020-12-05 16:55:07 UTC
Created attachment 220283 [details]
a patch to remove the Linuxism

The port compiles fine due to C's implicit declaration of missing functions, but the backend fails to load with a dynamic linker error.

The problem is the Linux-specific function isfdtype. The isfdtype manpage says, "Portable applications should use fstat(3) instead," so here is a patch that does that.

This patch is ready to go into the files directory in the port, but I'm not quite sure how to modify the Makefile to use this patch but not the patches that are already there but only for version 1.15.