Skip to content

fix: disable GNUTYPE_SPARSE to fix docker build #39

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dongdigua
Copy link
Contributor

@MingcongBai
Copy link
Member

Strange that the issue you referenced was last updated in 2016, this might not be related (and would help to dig for the root cause, too).

@dongdigua
Copy link
Contributor Author

dongdigua commented Jun 28, 2025

I'm investigating good/bad tarballs locally, pls wait

There's another clue https://hub.docker.com/r/aosc/aosc-os-buildkit is last updated on 4.13, which indicates that it build failed for some reason (@liushuyu log?)

https://releases.aosc.io/os-amd64/buildkit/aosc-os_buildkit_20250606_amd64.tar.xz also failed at unhandled tar header type 83 on my CI

@dongdigua
Copy link
Contributor Author

It proved that it's the sparse that caused a difference

I wrote this rust code:

for e in ar.entries().unwrap() {                                                                                                    
    let entry = e.unwrap();                                                                                                         
    if !entry.header().as_gnu().unwrap().sparse[0].is_empty() {                                                                     
        println!("{:?}", entry.path());                                                                                             
    }                                                                                                                               
} 

and got (arm64 can docker build, amd64, riscv64, loongarch64 can't)

[tar-inspector]──[?]─ cat ~/git/aosc-os-docker-files/aosc-os_buildkit_20250605_loongarch64.tar | cargo run
   Compiling tar-inspector v0.1.0 (/home/digua/tmp/tar-inspector)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s
     Running `target/debug/tar-inspector`
Ok("var/log/journal/336bcde3559a456fbacfca08a9257698/system.journal")
[tar-inspector]──[?]─ cat ~/git/aosc-os-docker-files/aosc-os_buildkit_20250605_arm64.tar | cargo run      
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/tar-inspector`
[tar-inspector]──[?]─ 

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.

2 participants