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

Got a wrong opensslconf.h(i386) when installed libressl-3.7.3(x64) #2900

Open
UMU618 opened this issue Dec 3, 2023 · 5 comments
Open

Got a wrong opensslconf.h(i386) when installed libressl-3.7.3(x64) #2900

UMU618 opened this issue Dec 3, 2023 · 5 comments
Labels

Comments

@UMU618
Copy link
Contributor

UMU618 commented Dec 3, 2023

Xmake Version

2.8.5

Operating System Version and Architecture

Windows 11 23H2

Describe Bug

Got a wrong opensslconf.h, when installed libressl-3.7.3, should be amd64 version, actually i386 version.

Expected Behavior

%LocalAppData%.xmake\packages\l\libressl\3.7.3\1efe7c3f8b8d4b659e11b98d540b0c92\include\openssl\opensslconf.h should be amd64 version. (The same as %LocalAppData%.xmake\packages\l\libressl\3.7.3\1efe7c3f8b8d4b659e11b98d540b0c92\include\arch\amd64\opensslconf.h)

Project Configuration

no project, I just install packages.

Additional Information and Error Logs

xrepo install -y libressl
checking for Microsoft Visual Studio (x64) version ... 2022
  => download https://github.com/xmake-mirror/build-artifacts/releases/download/libressl-3.7.3/windows-x64-vc142-1efe7c3f8b8d4b659e11b98d540b0c92.7z .. ok
  => install libressl 3.7.3 .. ok
@UMU618 UMU618 added the bug label Dec 3, 2023
@waruqi
Copy link
Member

waruqi commented Dec 4, 2023

you can debug this package https://github.com/xmake-io/xmake-repo/blob/dev/packages/l/libressl/xmake.lua

or open an issue to upstream openssl.

@UMU618
Copy link
Contributor Author

UMU618 commented Dec 5, 2023

or open an issue to upstream openssl.

It's not a bug of upstream openssl or libressl. They provide all arches, but xmake doesn't copy the right arch.

should copy %LocalAppData%\.xmake\packages\l\libressl\3.7.3\1efe7c3f8b8d4b659e11b98d540b0c92\include\arch\amd64\opensslconf.h to %LocalAppData%\.xmake\packages\l\libressl\3.7.3\1efe7c3f8b8d4b659e11b98d540b0c92\include\opensslconf.h

@waruqi
Copy link
Member

waruqi commented Dec 6, 2023

or open an issue to upstream openssl.

It's not a bug of upstream openssl or libressl. They provide all arches, but xmake doesn't copy the right arch.

should copy %LocalAppData%\.xmake\packages\l\libressl\3.7.3\1efe7c3f8b8d4b659e11b98d540b0c92\include\arch\amd64\opensslconf.h to %LocalAppData%\.xmake\packages\l\libressl\3.7.3\1efe7c3f8b8d4b659e11b98d540b0c92\include\opensslconf.h

xmake will not copy them, it only call make install to install these files to install directory.

import("package.tools.autoconf").install(package, configs)

so libressl/make install doesn't copy the right arch.

@UMU618
Copy link
Contributor Author

UMU618 commented Dec 6, 2023

vcpkg works well, but its libressl is v3.8.2.

Can you add v3.8.2?

@waruqi
Copy link
Member

waruqi commented Dec 6, 2023

vcpkg works well, but its libressl is v3.8.2.

Can you add v3.8.2?

you can open a pr to xmake-repo

UMU618 added a commit to UMU618/xmake-repo that referenced this issue Dec 6, 2023
3.8.2
6d4b8d5bbb25a1f8336639e56ec5088052d43a95256697a85c4ce91323c25954
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants