Opened 7 weeks ago

Last modified 3 days ago

#61784 assigned defect

pv is broken in Apple Silicon

Reported by: hpux735 (William Dillon) Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur, arm64, upstream Cc:
Port: pv

Description

There is a build failure in CI (and my local machine) for pv related to stat64's deprecation. I was able to fix it locally, and it's fairly straight-forward, though it's hackish. The root of the problem is that autoconf is able to determine that the stat64 function exists, and therefore thinks that the structure exists, and doesn't include a set of defines that make it OK. I was able to edit config.h to clear the HAVE_STAT64 flag and the program compiled. I have a message out to the pv author. I'm not quite competent in autotools, and I'm not sure what the right way to fix it is, but it appears that the Portfile already has a patch to deal with stat64, so maybe that could be extended without changing upstream?

% diff fixed/config.h broken/config.h
21a22
> #define HAVE_STAT64 1

Change History (3)

comment:1 Changed 7 weeks ago by jmroot (Joshua Root)

Owner: set to eborisch
Status: newassigned

comment:2 Changed 3 days ago by mhberger

Hi, I have had a go at a fix and have created a pull request

https://github.com/macports/macports-ports/pull/9800

comment:3 Changed 3 days ago by kencu (Ken)

there's no log or config.log here, so we can't really say what might be going on.

It looks like your PR just removes the flag; although that might well work on one system to fix a build, it doesn't sound like the proper fix, and seems likely to break builds elsewhere...

Note: See TracTickets for help on using tickets.