cross compile static binaries for x86_64 and aarch64 #994

Merged
CobaltCause merged 18 commits from cross into next 2024-01-26 04:12:15 +00:00
CobaltCause commented 2024-01-24 16:16:17 +00:00 (Migrated from gitlab.com)

Continuing on from https://gitlab.com/famedly/conduit/-/merge_requests/564#note_1740444901.

For reviewing this, it'll probably be easiest to look at each commit on its own in series. That should be relatively easy to follow, up until the actual "add static cross to $TARGET" commits, where it necessarily gets pretty involved.


  • I agree to release my code and all other changes of this MR under the Apache-2.0 license
Continuing on from <https://gitlab.com/famedly/conduit/-/merge_requests/564#note_1740444901>. For reviewing this, it'll probably be easiest to look at each commit on its own in series. That should be relatively easy to follow, up until the actual "add static cross to $TARGET" commits, where it necessarily gets pretty involved. ----------------------------------------------------------------------------- - [X] I agree to release my code and all other changes of this MR under the Apache-2.0 license
CobaltCause commented 2024-01-24 16:17:07 +00:00 (Migrated from gitlab.com)

marked this merge request as draft

marked this merge request as **draft**
CobaltCause commented 2024-01-24 16:20:08 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
CobaltCause commented 2024-01-24 18:59:52 +00:00 (Migrated from gitlab.com)

mentioned in merge request !570

mentioned in merge request !570
CobaltCause commented 2024-01-25 00:10:22 +00:00 (Migrated from gitlab.com)

mentioned in issue #311

mentioned in issue #311
CobaltCause commented 2024-01-25 00:14:25 +00:00 (Migrated from gitlab.com)

mentioned in issue #302

mentioned in issue #302
CobaltCause commented 2024-01-25 00:22:00 +00:00 (Migrated from gitlab.com)

mentioned in issue #286

mentioned in issue #286
CobaltCause commented 2024-01-25 07:36:18 +00:00 (Migrated from gitlab.com)

added 22 commits

  • 4296abdd...ca198c51 - 7 commits from branch famedly:next
  • ca198c51...60bbef2b - 5 earlier commits
  • 4793d72f - remove `with` for `nativeBuildInputs`
  • 3d799888 - rename pkgs to pkgsHost
  • 7b873284 - make let bindings take pkgs as an argument
  • 282e9848 - use fromToolchainFile
  • 329a6003 - add x86_64-unknown-linux-gnu
  • 58e02ea2 - factor package expression into a function
  • 3409da7e - group packages in attrset literal
  • 7de1d0dc - preempt cross problems by using my crane fork
  • 081e2eb0 - add static cross to x86_64-unknown-linux-musl
  • e61bb3fc - add static cross to aarch64-unknown-linux-musl

Compare with previous version

added 22 commits <ul><li>4296abdd...ca198c51 - 7 commits from branch <code>famedly:next</code></li><li>ca198c51...60bbef2b - 5 earlier commits</li><li>4793d72f - remove `with` for `nativeBuildInputs`</li><li>3d799888 - rename pkgs to pkgsHost</li><li>7b873284 - make let bindings take pkgs as an argument</li><li>282e9848 - use fromToolchainFile</li><li>329a6003 - add x86_64-unknown-linux-gnu</li><li>58e02ea2 - factor package expression into a function</li><li>3409da7e - group packages in attrset literal</li><li>7de1d0dc - preempt cross problems by using my crane fork</li><li>081e2eb0 - add static cross to x86_64-unknown-linux-musl</li><li>e61bb3fc - add static cross to aarch64-unknown-linux-musl</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=904607545&start_sha=4296abdd765159707f78a90e8dc4d580a2539314)
CobaltCause commented 2024-01-25 09:19:22 +00:00 (Migrated from gitlab.com)

added 13 commits

  • e61bb3fc...3c68bf46 - 3 earlier commits
  • eef3e910 - remove `with` for `nativeBuildInputs`
  • a61051ea - rename pkgs to pkgsHost
  • 3f38341d - make let bindings take pkgs as an argument
  • 9d46cddd - use fromToolchainFile
  • 5ac2f3df - add x86_64-unknown-linux-gnu
  • 738c0856 - factor package expression into a function
  • a48c40fa - group packages in attrset literal
  • d350d20a - preempt cross problems by using my crane fork
  • e9846c2d - add static cross to x86_64-unknown-linux-musl
  • cf1e6886 - add static cross to aarch64-unknown-linux-musl

Compare with previous version

added 13 commits <ul><li>e61bb3fc...3c68bf46 - 3 earlier commits</li><li>eef3e910 - remove `with` for `nativeBuildInputs`</li><li>a61051ea - rename pkgs to pkgsHost</li><li>3f38341d - make let bindings take pkgs as an argument</li><li>9d46cddd - use fromToolchainFile</li><li>5ac2f3df - add x86_64-unknown-linux-gnu</li><li>738c0856 - factor package expression into a function</li><li>a48c40fa - group packages in attrset literal</li><li>d350d20a - preempt cross problems by using my crane fork</li><li>e9846c2d - add static cross to x86_64-unknown-linux-musl</li><li>cf1e6886 - add static cross to aarch64-unknown-linux-musl</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=904723480&start_sha=e61bb3fc3ceb911a542ccf75003a1f0d06d78dfc)
CobaltCause commented 2024-01-25 18:54:26 +00:00 (Migrated from gitlab.com)

added 13 commits

  • cf1e6886...457e2d5b - 3 earlier commits
  • c2048fd7 - remove `with` for `nativeBuildInputs`
  • 37b0eca7 - rename pkgs to pkgsHost
  • f1af0a53 - make let bindings take pkgs as an argument
  • 8272271e - use fromToolchainFile
  • ef5b461f - add x86_64-unknown-linux-gnu
  • 45414bdb - factor package expression into a function
  • 53d03577 - group packages in attrset literal
  • 2cf451b9 - preempt cross problems by using my crane fork
  • 33ac372d - add static cross to x86_64-unknown-linux-musl
  • ad164284 - add static cross to aarch64-unknown-linux-musl

Compare with previous version

added 13 commits <ul><li>cf1e6886...457e2d5b - 3 earlier commits</li><li>c2048fd7 - remove `with` for `nativeBuildInputs`</li><li>37b0eca7 - rename pkgs to pkgsHost</li><li>f1af0a53 - make let bindings take pkgs as an argument</li><li>8272271e - use fromToolchainFile</li><li>ef5b461f - add x86_64-unknown-linux-gnu</li><li>45414bdb - factor package expression into a function</li><li>53d03577 - group packages in attrset literal</li><li>2cf451b9 - preempt cross problems by using my crane fork</li><li>33ac372d - add static cross to x86_64-unknown-linux-musl</li><li>ad164284 - add static cross to aarch64-unknown-linux-musl</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=905523862&start_sha=cf1e6886c6c028bbb5229df4368f125d9d24375b)
CobaltCause commented 2024-01-25 19:05:44 +00:00 (Migrated from gitlab.com)

added 12 commits

  • ad164284...10e3676c - 2 earlier commits
  • 317eb92e - remove `with` for `nativeBuildInputs`
  • 1bc17df0 - rename pkgs to pkgsHost
  • 0bc18dd7 - make let bindings take pkgs as an argument
  • 705dbe45 - use fromToolchainFile
  • 7f45e975 - add x86_64-unknown-linux-gnu
  • 7348b4a5 - factor package expression into a function
  • b1e96930 - group packages in attrset literal
  • b4c2751c - preempt cross problems by using my crane fork
  • 31665650 - add static cross to x86_64-unknown-linux-musl
  • 09b6ccf7 - add static cross to aarch64-unknown-linux-musl

Compare with previous version

added 12 commits <ul><li>ad164284...10e3676c - 2 earlier commits</li><li>317eb92e - remove `with` for `nativeBuildInputs`</li><li>1bc17df0 - rename pkgs to pkgsHost</li><li>0bc18dd7 - make let bindings take pkgs as an argument</li><li>705dbe45 - use fromToolchainFile</li><li>7f45e975 - add x86_64-unknown-linux-gnu</li><li>7348b4a5 - factor package expression into a function</li><li>b1e96930 - group packages in attrset literal</li><li>b4c2751c - preempt cross problems by using my crane fork</li><li>31665650 - add static cross to x86_64-unknown-linux-musl</li><li>09b6ccf7 - add static cross to aarch64-unknown-linux-musl</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=905533356&start_sha=ad164284526913559ae046fa14ce006b4536d797)
CobaltCause commented 2024-01-25 19:39:59 +00:00 (Migrated from gitlab.com)

added 13 commits

  • 09b6ccf7...249fc776 - 3 earlier commits
  • 9cef0312 - remove `with` for `nativeBuildInputs`
  • cf4015b8 - rename pkgs to pkgsHost
  • 692a3162 - make let bindings take pkgs as an argument
  • 52954f7a - use fromToolchainFile
  • 3ac9be5a - add x86_64-unknown-linux-gnu
  • 67d280dd - factor package expression into a function
  • d29591d4 - group packages in attrset literal
  • 3a3cafe9 - preempt cross problems by using my crane fork
  • 3c32f102 - add static cross to x86_64-unknown-linux-musl
  • 6701756e - add static cross to aarch64-unknown-linux-musl

Compare with previous version

added 13 commits <ul><li>09b6ccf7...249fc776 - 3 earlier commits</li><li>9cef0312 - remove `with` for `nativeBuildInputs`</li><li>cf4015b8 - rename pkgs to pkgsHost</li><li>692a3162 - make let bindings take pkgs as an argument</li><li>52954f7a - use fromToolchainFile</li><li>3ac9be5a - add x86_64-unknown-linux-gnu</li><li>67d280dd - factor package expression into a function</li><li>d29591d4 - group packages in attrset literal</li><li>3a3cafe9 - preempt cross problems by using my crane fork</li><li>3c32f102 - add static cross to x86_64-unknown-linux-musl</li><li>6701756e - add static cross to aarch64-unknown-linux-musl</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=905561446&start_sha=09b6ccf74ada5d556b700a1b413da0680622076c)
CobaltCause commented 2024-01-25 19:54:15 +00:00 (Migrated from gitlab.com)

added 1 commit

  • a0f49c2d - move substituters config into flake

Compare with previous version

added 1 commit <ul><li>a0f49c2d - move substituters config into flake</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=905572159&start_sha=6701756e33e021f9205974d2f43619e782290780)
CobaltCause commented 2024-01-25 20:17:47 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 33edf955 - move substituters config into flake

Compare with previous version

added 1 commit <ul><li>33edf955 - move substituters config into flake</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=905592546&start_sha=a0f49c2daebfa03a30b6ab92b9fecb7beafa4870)
CobaltCause commented 2024-01-25 21:11:58 +00:00 (Migrated from gitlab.com)

marked this merge request as ready

marked this merge request as **ready**
CobaltCause commented 2024-01-26 03:48:02 +00:00 (Migrated from gitlab.com)

added 5 commits

  • 81ae579b - add static cross to x86_64-unknown-linux-musl
  • 0e8e4f10 - add static cross to aarch64-unknown-linux-musl
  • c2a1cb7f - move substituters config into flake
  • 7627539b - break oci image builder into a function
  • e5bcce1f - add package to build an aarch64 oci image

Compare with previous version

added 5 commits <ul><li>81ae579b - add static cross to x86_64-unknown-linux-musl</li><li>0e8e4f10 - add static cross to aarch64-unknown-linux-musl</li><li>c2a1cb7f - move substituters config into flake</li><li>7627539b - break oci image builder into a function</li><li>e5bcce1f - add package to build an aarch64 oci image</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=905838462&start_sha=6701756e33e021f9205974d2f43619e782290780)
CobaltCause commented 2024-01-26 04:03:43 +00:00 (Migrated from gitlab.com)

added 2 commits

  • 2a04a361 - break oci image builder into a function
  • 7c1a3e41 - add package to build an aarch64 oci image

Compare with previous version

added 2 commits <ul><li>2a04a361 - break oci image builder into a function</li><li>7c1a3e41 - add package to build an aarch64 oci image</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/569/diffs?diff_id=905845309&start_sha=e5bcce1f94d933455bad3bca818c7a7fce842135)
CobaltCause commented 2024-01-26 04:12:15 +00:00 (Migrated from gitlab.com)

mentioned in commit bf48c10d28

mentioned in commit bf48c10d28d16df6e33027150a24d4b4a32ebeac
CobaltCause commented 2024-01-27 00:48:27 +00:00 (Migrated from gitlab.com)

mentioned in commit girlbossceo/conduwuit@620bfacc30

mentioned in commit girlbossceo/conduwuit@620bfacc303db32eef0f9ae3acb3bab84da5b0bc
CobaltCause commented 2024-02-01 01:47:56 +00:00 (Migrated from gitlab.com)

mentioned in commit girlbossceo/conduwuit@6d5e2601fe

mentioned in commit girlbossceo/conduwuit@6d5e2601fe89b5e27beb5829fbe654b2d032599b
Sign in to join this conversation.
No reviewers
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Matthias/conduit#994
No description provided.