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

Unable to install dockerc #46

Open
ashBabu opened this issue Nov 29, 2024 · 3 comments
Open

Unable to install dockerc #46

ashBabu opened this issue Nov 29, 2024 · 3 comments

Comments

@ashBabu
Copy link

ashBabu commented Nov 29, 2024

I am not familiar with zig build but I installed the snap version sudo snap install zig --beta --classic
and I get the following error. I am on Ubuntu 24.04. I was trying to build from source. I can download the below url using wget

$ zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl
/home/ash/Downloads/dockerc-0.3.2/build.zig.zon:23:20: error: unable to unpack tarball
            .url = "https://github.com/shadow-maint/shadow/releases/download/4.15.3/shadow-4.15.3.tar.gz",
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: file 'tests/su/09/env_special-options_' has unsupported type '1'
note: file 'tests/su/02/env_special_root-options_-l-p' has unsupported type '1'
note: file 'tests/su/02/env_special-options_-l-p' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-m_bash' has unsupported type '1'
note: file 'tests/su/02/env_special-options_-p' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-l-m' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-p-' has unsupported type '1'
note: file 'tests/su/02/env_special_root-options_-p_bash' has unsupported type '1'
note: file 'tests/su/02/env_special-options_-l-p_bash' has unsupported type '1'
note: file 'tests/su/02/env_special_root-options__bash' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-l' has unsupported type '1'
note: file 'tests/su/02/env_special_root-options_-l-p_bash' has unsupported type '1'
note: file 'tests/su/02/env_special_root-options_' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_--login' has unsupported type '1'
note: file 'tests/su/02/env_special-options_' has unsupported type '1'
note: file 'tests/su/02/env_special_root-options_-l' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_' has unsupported type '1'
note: file 'tests/su/02/env_special_root-options_-p' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-p_bash' has unsupported type '1'
note: file 'tests/su/02/run_env_test.sh' has unsupported type '1'
note: file 'tests/su/02/env_special-options__bash' has unsupported type '1'
note: file 'tests/su/02/env_special_root-options_-l_bash' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_--preserve-environment' has unsupported type '1'
note: file 'tests/su/02/env_special-options_-l_bash' has unsupported type '1'
note: file 'tests/su/02/env_special-options_-l' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-m' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options__bash' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_--login_bash' has unsupported type '1'
note: file 'tests/su/02/env_special-options_-p_bash' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_--preserve-environment_bash' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-p' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-l_bash' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-l-m_bash' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-p-_bash' has unsupported type '1'
note: file 'tests/su/02/env_FOO-options_-_bash' has unsupported type '1'
note: file 'tests/su/08/env_special-options_.exp' has unsupported type '1'
note: file 'tests/su/08/env_special_root-options_' has unsupported type '1'
note: file 'tests/su/08/env_special-options_' has unsupported type '1'
note: file 'tests/su/08/env_special_root-options_.exp' has unsupported type '1'
@NilsIrl
Copy link
Owner

NilsIrl commented Nov 29, 2024

Unfortunately to build dockerc you need this patch in zig: ziglang/zig#21092

I've been trying to get it reviewed but to no luck.

@ashBabu
Copy link
Author

ashBabu commented Nov 29, 2024

Thanks and that is unfortunate
Sorry for my ignorance here, I have never used zig. Can I do something locally to get the install successful? Like pointing to the downloaded shadow.tar.gz or something?

@NilsIrl
Copy link
Owner

NilsIrl commented Nov 29, 2024

You can probably modify the build.zig.zon at the root of the repository to use a shadow.tar.gz that you modified to not contain hard links: https://github.com/ziglang/zig/blob/master/doc/build.zig.zon.md

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

No branches or pull requests

2 participants