Bug 251609 - graphids/sane-epkowa: fails to load because of missing symbol isfdtype
Summary: graphids/sane-epkowa: fails to load because of missing symbol isfdtype
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-05 16:55 UTC by andy
Modified: 2020-12-05 16:55 UTC (History)
0 users

See Also:


Attachments
a patch to remove the Linuxism (408 bytes, text/plain)
2020-12-05 16:55 UTC, andy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.