GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Move logic for static cross-compile for linux-aarch64 to pom file by normanmaurer · Pull Request #906 · netty/netty-tcnative

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Nov 14, 2024

Copy link
Copy Markdown
Member

Motivation:

Let's try to keep logic together to make it easier to keep track of changes

Modifications:

Move logic for cross compile to pom file.

Result:

Easier to maintain

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@normanmaurer
Move logic for static cross-compile for linux-aarch64 to pom file
7bfa51c
Motivation:

Let's try to keep logic together to make it easier to keep track of changes

Modifications:

Move logic for cross compile to pom file.

Result:

Easier to maintain
@normanmaurer normanmaurer added this to the 2.0.70.Final milestone Nov 14, 2024
@normanmaurer
normanmaurer merged commit 9d4e98d into main Nov 14, 2024
@normanmaurer
normanmaurer deleted the cross_comp branch November 14, 2024 16:33
@colleenkinross colleenkinross mentioned this pull request Jun 3, 2026
aarch64 release: openssl-dynamic and boringssl-static into single command #984
Merged
normanmaurer pushed a commit that referenced this pull request Jun 3, 2026
@colleenkinross
aarch64 release: openssl-dynamic and boringssl-static into single com…
9c88fe9
…mand (#984)

The two-command approach caused `clean` in the second build to wipe
target/central-staging, losing the openssl-dynamic artifacts.

Original fix attempt was
#981, however this did not
work because the output directory wasn't *delete-able* which blocked the
clean from the plugin. The attempt to resolve this was to create a
subdirectory. After that change it became clear that the output
directory was not used for artifacts, instead it was where the
central_bundle.zip was placed which caused another release issue.

In the first fix, it was thought that we could not separate the commands
because openssl-dynamic must be built against a pre-compiled ARM version
of APR. However, this original reason for separate commands (conflicting
-DaprArmHome values for each module) was removed in #906, so combining
them is now safe. There are still differences in the flags passed, but
these are ignored by boringssl, so should not cause an issue
(-DopensslArmHome, -DaprArmHome).
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Aug 15, 2026
@fredericgermain @claude
Build the aarch64 cross artifacts in one maven invocation
970591e
cross-compile-aarch64-build runs mvnw twice, once for openssl-dynamic and once
for boringssl-static, each with its own clean. The reason for the split -
conflicting -DaprArmHome values per module - was removed in netty#906, and netty#984
already merged the release command on exactly those grounds. aprArmHome is read
only by openssl-dynamic, which is easy to confirm: the property appears nowhere
in boringssl-static/pom.xml. The build, deploy and stage-snapshot services were
simply never updated to match.

Verified by an A/B on a native x86_64 host using the real cross_compile_aarch64
image, building both forms from a clean tree:

  boringssl-static linux-aarch_64 .so   65284c80...  identical
  openssl-dynamic  linux-aarch_64 .so   79472e3f...  identical
  attached artifact sets                             identical
  both runs                                          exit 0

Worth being clear that this is not a speed change. The first invocation is only
18.6s against 6m19 for the second, so merging saves about 7 seconds - BoringSSL
dominates and is built once either way. The value is that build now matches the
release path and one redundant clean goes away.

deploy and stage-snapshot still use two invocations. They are slower but not
broken: their -DaltStagingDirectory is outside the tree, so the second clean
cannot wipe it, unlike the target/central-staging bug netty#984 fixed.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Aug 17, 2026
@fredericgermain
Build the aarch64 cross artifacts in one maven invocation
1a892b6
cross-compile-aarch64-build runs mvnw twice, once for openssl-dynamic and once
for boringssl-static, each with its own clean. The reason for the split -
conflicting -DaprArmHome values per module - was removed in netty#906, and netty#984
already merged the release command on exactly those grounds. aprArmHome is read
only by openssl-dynamic, which is easy to confirm: the property appears nowhere
in boringssl-static/pom.xml. The build, deploy and stage-snapshot services were
simply never updated to match.

Verified by an A/B on a native x86_64 host using the real cross_compile_aarch64
image, building both forms from a clean tree:

  boringssl-static linux-aarch_64 .so   65284c80...  identical
  openssl-dynamic  linux-aarch_64 .so   79472e3f...  identical
  attached artifact sets                             identical
  both runs                                          exit 0

Worth being clear that this is not a speed change. The first invocation is only
18.6s against 6m19 for the second, so merging saves about 7 seconds - BoringSSL
dominates and is built once either way. The value is that build now matches the
release path and one redundant clean goes away.

deploy and stage-snapshot still use two invocations. They are slower but not
broken: their -DaltStagingDirectory is outside the tree, so the second clean
cannot wipe it, unlike the target/central-staging bug netty#984 fixed.
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Aug 21, 2026
@fredericgermain
Build the aarch64 cross artifacts in one maven invocation
b019533
cross-compile-aarch64-build runs mvnw twice, once for openssl-dynamic and once
for boringssl-static, each with its own clean. The reason for the split -
conflicting -DaprArmHome values per module - was removed in netty#906, and netty#984
already merged the release command on exactly those grounds. aprArmHome is read
only by openssl-dynamic, which is easy to confirm: the property appears nowhere
in boringssl-static/pom.xml. The build, deploy and stage-snapshot services were
simply never updated to match.

Verified by an A/B on a native x86_64 host using the real cross_compile_aarch64
image, building both forms from a clean tree:

  boringssl-static linux-aarch_64 .so   65284c80...  identical
  openssl-dynamic  linux-aarch_64 .so   79472e3f...  identical
  attached artifact sets                             identical
  both runs                                          exit 0

Worth being clear that this is not a speed change. The first invocation is only
18.6s against 6m19 for the second, so merging saves about 7 seconds - BoringSSL
dominates and is built once either way. The value is that build now matches the
release path and one redundant clean goes away.

deploy and stage-snapshot still use two invocations. They are slower but not
broken: their -DaltStagingDirectory is outside the tree, so the second clean
cannot wipe it, unlike the target/central-staging bug netty#984 fixed.
@normanmaurer normanmaurer mentioned this pull request Oct 30, 2026
jni util 0.0.12 #1039
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.0.70.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@normanmaurer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.