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

Support foreign architectures #5222

Open
mr-cal opened this issue Jan 29, 2025 · 1 comment · May be fixed by #5233
Open

Support foreign architectures #5222

mr-cal opened this issue Jan 29, 2025 · 1 comment · May be fixed by #5233
Labels
enhancement New features or optimizations triaged

Comments

@mr-cal
Copy link
Collaborator

mr-cal commented Jan 29, 2025

What needs to get done

name: curl-consumer
version: "0.1"
summary: cross-compiled curl consumer
description: |
  A cross-compiled snap that uses libcurl. This exercises installing
  libcurl-dev as a build package and staging libcurl, both from the armhf
  repo.
grade: devel
base: core24
confinement: strict

platforms:
  armhf:
    build-on: [amd64]
    build-for: [armhf]

lint:
  ignore:
    - library

apps:
  curl-consumer:
    command: usr/bin/curl-consumer

package-repositories:
  - type: apt
    architectures: [armhf]
    components: [main]
    suites: [noble]
    key-id: F6ECB3762474EDA9D21B7022871920D1991BC93C
    url: http://ports.ubuntu.com/ubuntu-ports

parts:
  curl-consumer:
    plugin: autotools
    source: src
    build-environment:
      - PKG_CONFIG_PATH: "/usr/lib/arm-linux-gnueabihf/pkgconfig"
    build-packages:
      - libcurl4-openssl-dev:armhf
    stage-packages:
      - libcurl4t64:armhf
    autotools-configure-parameters:
      - --prefix=/usr
      - --host=${CRAFT_ARCH_TRIPLET_BUILD_FOR}

Why it needs to get done

To improve the UX for cross-compiled core24 snaps.

@mr-cal mr-cal added the triaged label Jan 29, 2025
Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-4038.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or optimizations triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant