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

Fix #338 and #339: output a valid aarch64 debian package with a valid directory layout. #377

Merged
1 commit merged into from
Mar 19, 2024

Conversation

ghost
Copy link

@ghost ghost commented Mar 19, 2024

Fix #338 and #339: output a valid aarch64 debian package with a valid directory layout.

This commit aims to fix #338 and #339.

It fixes #338 by setting CPACK_DEBIAN_PACKAGE_ARCHITECTURE to the architecture
used by CMake. To do so, we inspect the value of CMAKE_SYSTEM_PROCESSOR, which
tells us the target architecture.

A test has been added to ensure that the target architecture of the output .deb
is arm64.

This commit also fixes #339 by creating a configuration called DebPack which
sets the right file paths for cpack.

When cpack is invoked with -C DebPack, lib/ossl-modules, lib and include/oqs-provider
are being used as destination directories.

Signed-off-by: thb-sb is@md5secure.com

… directory layout.

This commit aims to fix #338 and #339.

It fixes #338 by setting [`CPACK_DEBIAN_PACKAGE_ARCHITECTURE`] to the architecture
used by CMake. To do so, we inspect the value of [`CMAKE_SYSTEM_PROCESSOR`], which
tells us the target architecture.

A test has been added to ensure that the target architecture of the output .deb
is `arm64`.


This commit also fixes #339 by creating a configuration called `DebPack` which
sets the right file paths for `cpack`.

When `cpack` is invoked with `-C DebPack`, `lib/ossl-modules`, `lib` and `include/oqs-provider`
are being used as destination directories.

[`CPACK_DEBIAN_PACKAGE_ARCHITECTURE`]: https://cmake.org/cmake/help/latest/cpack_gen/deb.html#variable:CPACK_DEBIAN_PACKAGE_ARCHITECTURE
[`CMAKE_SYSTEM_PROCESSOR`]: https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html#variable:CMAKE_SYSTEM_PROCESSOR

Signed-off-by: thb-sb <is@md5secure.com>
@ghost ghost self-assigned this Mar 19, 2024
@ghost ghost marked this pull request as ready for review March 19, 2024 10:05
@ghost ghost requested a review from baentsch as a code owner March 19, 2024 10:05
@ghost ghost requested review from bhess and dstebila March 19, 2024 10:05
Copy link
Member

@baentsch baentsch left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@ghost ghost merged commit 37769c9 into open-quantum-safe:main Mar 19, 2024
33 checks passed
@ghost ghost deleted the pr377 branch March 19, 2024 12:45
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant