Skip to content
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

Wrong PYTHON_PKG_DIR selected for cross-build #530

Open
ydirson opened this issue Sep 7, 2020 · 0 comments
Open

Wrong PYTHON_PKG_DIR selected for cross-build #530

ydirson opened this issue Sep 7, 2020 · 0 comments

Comments

@ydirson
Copy link

ydirson commented Sep 7, 2020

When cross-building on a Debian host machine, the following believes the target is a Debian OS:

      if(EXISTS "/etc/os-release")
        file(READ "/etc/os-release" OS_RELEASE)
        string(REGEX MATCH "ID(_LIKE)?=debian" IS_DEBIAN ${OS_RELEASE})
        if (IS_DEBIAN)
          SET(PYTHON_PKG_DIR "dist-packages")
        endif()
      endif()

Further more, using -DPYTHON_PKG_DIR=site-packages does not seem to have any effect, despite the value being recorded in CMakeCache.txt, maybe because it is not set as a cached variable, or because this code sets it unconditionally ?

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Sep 9, 2020
…bian

As described in Pulse-Eight/libcec#530 the
cmake code looks at the host to make decisions about the target, and
we can't even override this with a flag.

Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Sep 10, 2020
…bian

As described in Pulse-Eight/libcec#530 the
cmake code looks at the host to make decisions about the target, and
we can't even override this with a flag.

Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
daregit pushed a commit to daregit/yocto-combined that referenced this issue May 22, 2024
…IR when building on Debian

As described in Pulse-Eight/libcec#530 the
cmake code looks at the host to make decisions about the target, and
we can't even override this with a flag.

Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
daregit pushed a commit to daregit/yocto-combined that referenced this issue May 22, 2024
…IR when building on Debian

As described in Pulse-Eight/libcec#530 the
cmake code looks at the host to make decisions about the target, and
we can't even override this with a flag.

Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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

No branches or pull requests

1 participant