Skip to content

Q&D patch for the multilib fix on N41/F41 #4733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

1div0
Copy link
Contributor

@1div0 1div0 commented May 1, 2025

Description

This PR is intended to avoid the HEIF library version detection failure on the latest Nobara 41 and Fedora 41 as well as 42 distributions.

There must be a better distribution neutral way, so marking as draft.

Fixes #4732

Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv>
@@ -17,7 +17,7 @@
include (FindPackageHandleStandardArgs)

find_path (LIBHEIF_INCLUDE_DIR
libheif/heif_version.h
libheif/heif_version-64.h
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
libheif/heif_version-64.h
NAMES libheif/heif_version.h libheif/heif_version-64.h

According to cmake docs, you can give several names to try.

@@ -30,7 +30,7 @@ find_library (LIBHEIF_LIBRARY heif
DOC "The directory where libheif libraries reside")

if (LIBHEIF_INCLUDE_DIR)
file(STRINGS "${LIBHEIF_INCLUDE_DIR}/libheif/heif_version.h" TMP REGEX "^#define LIBHEIF_VERSION[ \t].*$")
file(STRINGS "${LIBHEIF_INCLUDE_DIR}/libheif/heif_version-64.h" TMP REGEX "^#define LIBHEIF_VERSION[ \t].*$")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll want something like

    if (EXISTS name_choice_1)
        set (heif_header name_choice_1)
    else if (EXISTS name_choice_2)
        set (heif_header name_choice_2)
    endif ()
    file(STRINGS ${heif_header_name} TMP REGEX "^#define LIBHEIF_VERSION[ \t].*$")

@lgritz
Copy link
Collaborator

lgritz commented May 21, 2025

Ping on this, @1div0

@lgritz
Copy link
Collaborator

lgritz commented Aug 1, 2025

@1div0 Re-ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] HEIF library impedance mismatch
2 participants