Skip to content

build: exclude qemu-arm-static from source archives - #202

Merged
TheStormN merged 1 commit into
cisco:mainfrom
reginaldalfret:build/exclude-qemu-from-source-archives
Nov 2, 2026
Merged

TheStormN merged 1 commit into
cisco:mainfrom
reginaldalfret:build/exclude-qemu-from-source-archives

Conversation

@reginaldalfret

Copy link
Copy Markdown
Contributor

Description

Fixes #56

The repository contains a prebuilt binary platform/debian/qemu-arm-static (~2.9 MB) utilized by platform/debian/debian-jessie.armhf.dockerfile. When source release tarballs or Git archives are created via git archive, this binary was previously bundled into source distributions.

Changes

  • Added .gitattributes setting export-ignore on platform/debian/qemu-arm-static.
  • The binary remains tracked in Git for local clones and Docker-based Debian ARM builds, but is cleanly excluded from Git-generated source distribution archives (git archive).

Validation

  • Validated attribute assignment:
    $ git check-attr export-ignore -- platform/debian/qemu-arm-static
    platform/debian/qemu-arm-static: export-ignore: set
  • Tested archive generation:
    $ git archive --format=tar -o test.tar HEAD
    $ tar -tf test.tar | grep "qemu-arm-static"
    # (0 matches; binary is excluded, all required source files and scripts remain present)
  • Checked local checkout functionality: binary remains tracked and functional in working tree.
  • git diff --check: clean (0 issues).

Contributor Agreement

Add export-ignore attribute for platform/debian/qemu-arm-static in .gitattributes.
This prevents the 2.9MB prebuilt QEMU binary from being bundled into git archive
tarballs and source release archives, while keeping the file tracked in Git for
ARM Docker builds and local checkouts.

Fixes cisco#56

Signed-off-by: Reginald Alfret <[email protected]>
@TheStormN
TheStormN merged commit 2e456d4 into cisco:main Nov 2, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please remove platform/debian/qemu-arm-static

2 participants