mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1865] [MERGED] fix(mac): Fix HARDSUBX configure script and add documentation #2636
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1865
Author: @cfsmp3
Created: 12/20/2025
Status: ✅ Merged
Merged: 12/20/2025
Merged by: @cfsmp3
Base:
master← Head:fix/issue-1173-hardsubx-macos📝 Commits (3)
70404c2fix(mac): Fix HARDSUBX configure script and add documentationd8504f8ci(mac): Set Homebrew paths for autoconf HARDSUBX build8db7fc7fix(mac): Correct leptonica library name in configure.ac📊 Changes
4 files changed (+79 additions, -5 deletions)
View changed files
📝
.github/workflows/build_mac.yml(+50 -2)📝
docs/HARDSUBX.txt(+26 -0)📝
linux/configure.ac(+1 -1)📝
mac/configure.ac(+2 -2)📄 Description
Summary
The configure.ac script failed on macOS with "binary operator expected" because the
pkg-configoutput was unquoted. When pkg-config returns multiple libraries (e.g.,-ltesseract -lcurl), the unquoted expansion causedtest ! -zto receive multiple arguments instead of a single string.Changes
TESSERACT_PRESENTconditional (both mac/ and linux/configure.ac)./build.command -hardsubx(recommended)--enable-hardsubx --enable-ocr-DWITH_HARDSUBX=ONbuild_shell_hardsubx: Tests./build.command -hardsubxbuild_autoconf_hardsubx: Tests./configure --enable-hardsubx --enable-ocrRoot Cause
Test plan
build_autoconf_hardsubxjob passes (tests the fix)build_shell_hardsubxjob passes-hardsubxparameter is recognized in built binary🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.