Formula for OpenJPH Needs Updating Due to Upstream Refactoring #6524
Unanswered
OldCrow
asked this question in
Everyday usage
Replies: 2 comments
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
There is no patch for now in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew configOutput of
brew doctorDescription of issue
The openjph formula fails to upgrade from version 0.24.3 to 0.25.0 (and also fails when installing from HEAD) due to an outdated patch that targets code that has been refactored in the upstream project.
The reported error is:
The upstream project appears to have refactored the memory allocation code:
Before (v0.24.3):
• The ojph_aligned_malloc() function was implemented inline in the header file src/core/common/ojph_mem.h (lines 62-66)
• It used aligned_alloc() on non-Windows platforms
After (v0.25.0):
• The function declaration was moved to an extern "C" block in src/core/common/ojph_mem.h
• The implementation was moved to a new file: src/core/others/ojph_mem.c (lines 72-76)
• It still uses aligned_alloc() on non-Windows platforms
The current homebrew patch for v0.25.0 attempts to modify code at the old location.
Current patch:
Required patch:
Unfortunately due to work I have no more time to look at a PR myself for at least a week.
Beta Was this translation helpful? Give feedback.
All reactions