aurupdater

freeimage

Build times (auto-updated)


2026-10-12: pkgrel 24 -> 25, jxrlib 1.4.4-3 header-relocation fix (AUR comment, promano)

promano reported freeimage 3.18.0-24 fails against jxrlib 1.4.4-3: JXRGlue.h: No such file or directory. Confirmed jxrlib 1.4.4-3 (current extra/) relocated its headers from /usr/include/jxrlib/ to /usr/include/libjxr/{common,glue,image,image/x86,test}/, and this time does ship a real JXRVersion.h (at libjxr/glue/JXRVersion.h) – the 2026-10-07 workaround below is now obsolete, not just inert, because its guard ([[ ! -f /usr/include/jxrlib/JXRVersion.h ]]) checks a path that no longer exists at all, so it would keep firing and shadow the real shipped header with a stale 1.4.3-labeled one.

Fix: removed that synthesis block from PKGBUILD’s prepare() entirely, and in freeimage-unbundle.patch’s Makefile.gnu hunk, replaced the hardcoded -I/usr/include/jxrlib (and hardcoded -ljpegxr -ljxrglue) with pkg-config --cflags/--libs ... libjxr, since jxrlib has shipped a correct libjxr.pc all along (checked the actual package: Cflags: -I.../libjxr/common -I.../libjxr/image/x86 -I.../libjxr/image -I.../libjxr/glue -I.../libjxr/test -D__ANSI__ -DDISABLE_PERF_MEASUREMENT, Libs: -ljpegxr -ljxrglue) – matches the style already used for the other unbundled libs on that same line, and survives any future jxrlib layout change since it’s not our hardcoded guess. This diverges from the hardcoded-paths patch promano posted in their comment, but fixes the identical root cause more durably.

Gotcha: editing freeimage-unbundle.patch via the Edit tool silently stripped CRLF line endings from an unrelated hunk further down in the file (the PluginTIFF.cpp hunk intentionally carries CRLF to byte-match that source file’s own line endings, so patch can apply it). First build attempt failed with “Hunk FAILED … different line endings” on that hunk even though it wasn’t touched. Fixed by restoring the exact original CRLF bytes for that block from git HEAD and recomputing the sha512sum – if touching this patch file again, diff against HEAD afterward and check for stray line-ending changes outside the intended hunk.

Packaging-only (no pkgver change), pkgrel 24 -> 25 per [[feedback_pkgrel_vs_pkgver]]. Confirmed clean build via repo_release.sh maintained/freeimage (x86_64 only) and published without connection-failure strings in the full log. Did not reply on AUR – fix addresses the same root cause the commenter reported, matches [[feedback_obvious_fixes_no_aur_reply]].

2026-11-07: mikesco3 re-reports pkg-config/libjxr failure against 3.18.0-25 – no action, re-verified by test build

mikesco3 commented twice: (03:57) pkg-config can’t find libjxr (“Package ‘libjxr’ not found … add the directory containing libjxr.pc' to PKG_CONFIG_PATH"), running Manjaro; then (04:53) posted a prepare()patch reviving the *old* pre-2026-10-12 workaround (hardcoded synthesizedJXRVersion.hwith hardcoded version macros, plus FAR/ EXTERN_C shims forDEFINE_GUIDinPluginJXR.cpp`) – i.e. exactly the approach already superseded by the pkg-config-based fix.

Did a clean isolated test build to check (outside /data/INSTALL and arch/maintained, scratch copy + extra-x86_64-build): built fine, 3.18.0-25 produced with only namcap info-level warnings, no errors. This host’s jxrlib is 1.4.6-1 (current extra/) and ships both /usr/lib/pkgconfig/libjxr.pc and /usr/include/libjxr/glue/JXRVersion.h. So the PKGBUILD is objectively correct against current extra/jxrlib, same conclusion as the 2026-10-14 RyougaLolakie case below – mikesco3’s failure is environment-specific (Manjaro’s jxrlib build likely lacks the .pc file, or a PKG_CONFIG_PATH gap in their chroot), not a real PKGBUILD bug. User’s call: no AUR reply, no PKGBUILD change – nothing new here beyond the already-logged pattern.

2026-10-14: RyougaLolakie re-reports the same jxrlib error against 3.18.0-25 – no action

RyougaLolakie (2026-10-13 12:36) commented that 3.18.0-25 still fails with the identical JXRGlue.h: No such file or directory the pkg-config fix above was supposed to resolve, questioning whether it actually worked. duffydack replied three minutes later (12:39) that it builds fine for them in a chroot. Re-verified independently rather than just trusting either comment: this host’s jxrlib is 1.4.4-3 and ships a real libjxr.pc (pkg-config --cflags libjxr resolves to exactly /usr/include/libjxr/{common,image,image/x86,glue,test} – checked live, not just read from the .pc file) – so the current PKGBUILD is objectively correct against the jxrlib actually in extra/ right now, consistent with duffydack’s result and the 2026-10-12 confirmed-clean build above. RyougaLolakie’s failure is most likely environment-specific on their end (stale jxrlib, not actually rebuilt against 3.18.0-25 yet, or a pkg-config/ PKG_CONFIG_PATH problem) rather than a real PKGBUILD bug. User’s call: leave the AUR thread as-is, no reply – duffydack already answered in-thread, and there’s no new information here to add.

Build times (auto-updated)


2026-10-07: pkgrel 23 -> 24, jxrlib-missing-header build fix (AUR comment, jose1711)

jose1711 reported a clean-chroot build failure: /usr/include/jxrlib/JXRGlue.h:35:10: fatal error: JXRVersion.h: No such file or directory. Confirmed jxrlib is an official extra/ package (1.4.3-1), not one we maintain, and it genuinely never installs JXRVersion.h even though its own JXRGlue.h #includes it via angle brackets – an upstream/packaging gap we can’t patch at the source, since it’s not our package.

Applied the workaround jose1711 supplied in their comment: prepare() now synthesizes a minimal JXRVersion.h (just the version-macro defines) in the FreeImage source root (cwd after cd FreeImage) when it’s not already present system-wide, guarded by [[ ! -f /usr/include/jxrlib/JXRVersion.h ]] so a future jxrlib release that does install the real header is a no-op. This works because the build’s -I. picks up the local copy for the angle-bracket include – no system paths touched, nothing installed outside the build. Packaging-only fix (no pkgver change), so pkgrel 23 -> 24 per [[feedback_pkgrel_vs_pkgver]].

Confirmed clean build via repo_release.sh maintained/freeimage (x86_64 only, 50s) and published without issue (no connection-failure strings in the full log). Did not reply on AUR – the fix is exactly what the commenter proposed, matches [[feedback_obvious_fixes_no_aur_reply]].

2026-09-27: AUR comment noting freeimagere-git alternative – no action taken

oriba commented suggesting freeimagere (github.com/agruzdev/FreeImageRe, AUR: freeimagere-git) as an alternative, since upstream FreeImage looks semi-abandoned. Checked: freeimagere-git does exist on AUR already (maintained separately by bill997, 0.5-2, 0 votes) – not something we’d need to create ourselves. It’s not a drop-in replacement though: Conflicts=(freeimage) and provides a different soname (libFreeImageRE.so vs our libfreeimage.so), so switching would need an explicit rebuild of anything depending on freeimage.

User’s call: leave the AUR thread as-is, no reply, no package change – this is an informational suggestion, not a bug report. If asked about this package’s status again, this is already known/considered, not a fresh gap to investigate.

2026-11-22: pkgrel 25 -> 26, root-caused the recurring “openjpeg.h not found” reports

Checked AUR comments on request. One genuinely new comment (not in aur_feedback_state/freeimage.seen, which stopped at 2026-11-07, so it had never reached FEEDBACK.txt):

Thread state: unanswered since the user asked for environment info on 2026-11-07 08:09; php4fan answered 08:23 (“Manjaro … Pamac builds it for me”) with no follow-up. JPT48 was the second person waiting.

Root cause — this overturns the previous “environment-specific, no action” conclusion

The openjpeg.h error was never an openjpeg problem. It was the libjxr lookup failing. The old freeimage-unbundle.patch resolved every dependency in a single call:

override CFLAGS += $(INCLUDE) $(shell pkg-config --cflags OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib libjxr)

pkg-config with multiple modules is all-or-nothing: if any module is missing it writes nothing to stdout and exits 1. $(shell ...) captures stdout only and ignores the exit status, so make silently continued with no -I flags at all and died on the first file needing a non-default header — Source/FreeImage/J2KHelper.cpp:24: openjpeg.h. Verified by hiding libjxr.pc and re-running the exact call:

condition rc stdout
vanilla Arch (libjxr.pc present) 0 full set incl. -I/usr/include/openjpeg-2.5
libjxr.pc missing 1 empty — zero -I
libjxr dropped from the list 0 everything else survives

That one mechanism explains every report in the thread: tee (2026-10-15) saw both “Package ‘libjxr’ not found” and the openjpeg error (the latter being downstream); php4fan/JPT48 saw only the openjpeg one because pamac buries pkg-config’s stderr; mikesco3 had both halves (“jxrlib has no .pc”, “openjpeg2 uses a versioned subdir”) but not the causal link, which is why his proposed fix hardcoded paths; and andreas_baumann/duffydack could never reproduce it because vanilla Arch ships libjxr.pc. RyougaLolakie’s CachyOS case (cachyos-extra-v3’s stale jxrlib) is the same mechanism.

So the trigger is third-party distro packaging, but our patch amplified one missing .pc into a total, misdirecting failure. That part was ours.

Fix (in the patch file, so other distros get it too)

Makefile.gnu hunk only, two changes:

  1. Per-module pkg-config via $(foreach m,$(PKGCONF_MODULES),...) — one missing .pc now costs only that module’s flags.
  2. JPEG-XR fallback chain: pkg-config first, then /usr/include/libjxr/glue/JXRGlue.h (the 1.4.4+ layout), then flat /usr/include/jxrlib/ (<=1.4.3). The flags and libs (-D__ANSI__ -DDISABLE_PERF_MEASUREMENT, -ljpegxr -ljxrglue) were read off the real libjxr.pc, not guessed. Plus a one-line $(wildcard /usr/include/openjpeg-2.*) fallback for distros lacking libopenjp2.pc.

Rejected alternative: disabling the JXR plugin when jxrlib is unusable — it would silently ship a less capable libfreeimage.so and diverge from Arch.

Verified, given how fragile this patch file is (see the 2026-10-12 CRLF incident below):

Packaging-only, so pkgrel 25 -> 26 per [[feedback_pkgrel_vs_pkgver]]. sha512sums[1] updated, .SRCINFO regenerated. Published freeimage and freeimage-debug 3.18.0-26 (x86_64 only — arch=('x86_64'), so no any symlinks); -25 archived.

No AUR reply posted — deliberately left pending the user’s decision, not because it was judged unnecessary. Unlike the earlier no-action cases, there is now something substantive to say (the openjpeg error is a red herring; the real requirement is a jxrlib that ships libjxr.pc, and -26 now copes without one), and JPT48 explicitly asked. If asked to post, that’s the content.

Two traps worth remembering:

2026-11-28: REOPENED by JPT48’s openjpeg comment – already fixed, no action

check_aur_feedback.sh reported REOPENED maintained/freeimage (new comment since your reply) for JPT48’s 2026-11-22 comment (“Build fails with missing openjpeg.h … I have openjpeg2 2.5.4-1 installed from extra, but this doesn’t deliver the header files?”, on Manjaro/pamac).

No action: this is the exact problem already root-caused and fixed in 3.18.0-26 on 2026-11-22, the same day the comment was posted (see that entry below). Re-verified rather than assumed: this host’s openjpeg2 2.5.4-1 does ship /usr/include/openjpeg-2.5/openjpeg.h and /usr/lib/pkgconfig/libopenjp2.pc, and freeimage-unbundle.patch resolves it through pkg-config --cflags libopenjp2 with a -I/usr/include/openjpeg-2.* wildcard fallback for exactly the derived-distro case. So this is the same environment-specific pattern as the mikesco3 (2026-11-07) and RyougaLolakie (2026-10-14) jxrlib reports: the commenter is on a derived distro whose openjpeg2 package differs, not a PKGBUILD bug. Nothing to change; no AUR reply, matching [[feedback_obvious_fixes_no_aur_reply]] since the fix was already published.

Side note on why this surfaced now at all: the REOPENED is the pinned-comment fix in check_aur_feedback.sh working. This package has a pinned CVE-warning comment, and the old head -1 logic took the first scraped comment as the newest – AUR renders pinned comments above the chronological list, so freeimage read as permanently ANSWERED (at “2026-03-08”) and could never report REOPENED. The date-sorted version catches it.