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

Static binary build fails #13259

Closed
Yethal opened this issue Feb 16, 2022 · 15 comments
Closed

Static binary build fails #13259

Yethal opened this issue Feb 16, 2022 · 15 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue volunteers-wanted Issues good for community/volunteer contributions

Comments

@Yethal
Copy link

Yethal commented Feb 16, 2022

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Steps to reproduce the issue:

  1. curl -L https://nixos.org/nix/install | sh

  2. git clone https://github.com/containers/podman.git && cd podman

  3. nix --experimental-features nix-command build -f nix/

Describe the results you received:
Following error message is displayed:

error: builder for '/nix/store/jb63gx4wwr661p3vbg2k6500haada84g-go-1.16.5.drv' failed with exit code 1;
       last 10 log lines:
       > ok   cmd/link/internal/benchmark     0.100s
       > ok      cmd/link/internal/ld    5.326s
       > ok      cmd/link/internal/loader        0.128s
       > ok      cmd/nm  4.191s
       > ok      cmd/objdump     5.627s
       > ok      cmd/pack        3.358s
       > ok      cmd/trace       0.346s
       > ok      cmd/vet 10.944s
       > FAIL
       > go tool dist: Failed: exit status 1
       For full logs, run 'nix log /nix/store/jb63gx4wwr661p3vbg2k6500haada84g-go-1.16.5.drv'.
error: 1 dependencies of derivation '/nix/store/kv1h26x4raxdf6i2166gk1lkdxcq5ig7-podman.drv' failed to build

Describe the results you expected:
Working podman binary

Additional information you deem important (e.g. issue happens only occasionally):

Additional environment details (AWS, VirtualBox, physical, etc.):
Ubuntu 20.04 server, baremetal

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 16, 2022
@Yethal
Copy link
Author

Yethal commented Feb 16, 2022

nix log:

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/d7i2z4z5i4qlkxf2kg6fq4dpp7ilpkrz-go1.16.5.src.tar.gz
source root is go
setting SOURCE_DATE_EPOCH to timestamp 1622741026 of file go/VERSION
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
patching script interpreter paths in ./
./lib/time/update.bash: interpreter directive changed from "#!/bin/bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./misc/arm/a: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./misc/cgo/fortran/test.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./misc/wasm/go_js_wasm_exec: interpreter directive changed from "#!/bin/bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./misc/ios/clangwrap.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/sh"
./src/run.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/cmd/go/testdata/failssh/ssh: interpreter directive changed from "#!/bin/sh" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/sh"
./src/cmd/go/mkalldocs.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/cmd/compile/internal/ssa/gen/cover.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/clean.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/all.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/net/http/cgi/testdata/test.cgi: interpreter directive changed from "#!/usr/bin/perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/bootstrap.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/regexp/syntax/make_perl_groups.pl: interpreter directive changed from "#!/usr/bin/perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/buildall.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/syscall/mkerrors.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/syscall/mksysnum_dragonfly.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/syscall/mksyscall.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/syscall/mksysctl_openbsd.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/syscall/mksysnum_freebsd.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/syscall/mkall.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/syscall/mksyscall_libc.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/syscall/mksysnum_linux.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/syscall/mksysnum_openbsd.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/syscall/mksysnum_netbsd.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1/bin/perl"
./src/syscall/mksysnum_plan9.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/sh"
./src/race.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/make.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
./src/internal/trace/mkcanned.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23/bin/bash"
applying patch /nix/store/x48d0s4gns4jrck6qkwrpqn7nh9ygpx6-remove-tools-1.11.patch
patching file src/go/build/build.go
Hunk #1 succeeded at 1967 (offset 259 lines).
patching file src/runtime/extern.go
Hunk #1 succeeded at 240 (offset 11 lines).
applying patch /nix/store/1wxnz5npl05sahb5iv5q4azg2rk59kz5-ssl-cert-file-1.16.patch
patching file src/crypto/x509/root.go
Hunk #1 succeeded at 10 with fuzz 2 (offset 4 lines).
Hunk #2 succeeded at 28 (offset 4 lines).
applying patch /nix/store/hyif3rqf4kgbzbqkrv3bjspn0r8s5pl6-remove-test-pie-1.15.patch
patching file src/cmd/dist/test.go
Hunk #1 succeeded at 602 (offset 18 lines).
applying patch /nix/store/39bjxj20rygi2zlx6zscv38jxh2k7nkl-creds-test.patch
patching file src/syscall/creds_test.go
applying patch /nix/store/bb1yc64b2c5pdnd2bgfzxccvzh0svz9f-go-1.9-skip-flaky-19608.patch
patching file src/net/http/serve_test.go
Hunk #1 succeeded at 5711 with fuzz 1 (offset 350 lines).
applying patch /nix/store/fd7qxbzzcbp02xn1dwkd7pj22mcsx13l-go-1.9-skip-flaky-20072.patch
patching file src/sync/waitgroup_test.go
Hunk #2 succeeded at 89 (offset 15 lines).
applying patch /nix/store/4vqgx07v9xywvmgmdzk87561y734vm8n-skip-external-network-tests-1.16.patch
patching file src/internal/testenv/testenv.go
patching file src/net/dial_test.go
applying patch /nix/store/hm2jzy93m5sl48alp2dhklz2b592dn9b-skip-nohup-tests.patch
patching file src/os/signal/signal_test.go
Hunk #1 succeeded at 278 (offset 61 lines).
Hunk #2 succeeded at 397 with fuzz 2 (offset 89 lines).
applying patch /nix/store/92qy0wn9289a1id4c5byc2mqc6v6xas2-skip-cgo-tests-1.15.patch
patching file src/cmd/dist/test.go
Hunk #1 succeeded at 1138 with fuzz 1 (offset 2 lines).
applying patch /nix/store/1cwv8hmzzn9s9b7rcvpymk6z6gm0c64p-go_no_vendor_checks-1.16.patch
patching file src/cmd/go/internal/modload/vendor.go
applying patch /nix/store/amwcfcjv3bnmrfnfchhf8n60f93irkr9-skip-test-extra-files-on-386-1.14.patch
patching file src/os/exec/exec_test.go
Hunk #1 succeeded at 612 (offset -15 lines).
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 111592
max locked memory       (kbytes, -l) 65536
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 111592
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
@nix { "action": "setPhase", "phase": "buildPhase" }
building
no Makefile, doing nothing
Building Go cmd/dist using /nix/store/rnr52qha2pix890abwh3dqg2q2985pm0-go-bootstrap/share/go. (go1.16 linux/amd64)
Building Go toolchain1 using /nix/store/rnr52qha2pix890abwh3dqg2q2985pm0-go-bootstrap/share/go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for linux/amd64.
---
Installed Go for linux/amd64 in /build/go
Installed commands in /build/go/bin

The binaries expect /build/go to be copied or moved to /nix/store/7qcz2p6b20bn77lxf33qsfqp3d4g0yir-go-1.16.5/share/go
@nix { "action": "setPhase", "phase": "checkPhase" }
running tests

##### Testing packages.
ok      archive/tar     0.041s
ok      archive/zip     0.215s
ok      bufio   0.071s
ok      bytes   0.774s
ok      compress/bzip2  0.069s
ok      compress/flate  0.556s
ok      compress/gzip   0.075s
ok      compress/lzw    0.085s
ok      compress/zlib   0.453s
ok      container/heap  0.015s
ok      container/list  0.012s
ok      container/ring  0.009s
ok      context 0.092s
ok      crypto  0.004s
ok      crypto/aes      0.018s
ok      crypto/cipher   0.025s
ok      crypto/des      0.017s
ok      crypto/dsa      0.022s
ok      crypto/ecdsa    0.196s
ok      crypto/ed25519  0.055s
ok      crypto/elliptic 0.107s
ok      crypto/hmac     0.021s
ok      crypto/internal/subtle  0.038s
ok      crypto/md5      0.018s
ok      crypto/rand     0.025s
ok      crypto/rc4      0.030s
ok      crypto/rsa      0.084s
ok      crypto/sha1     0.037s
ok      crypto/sha256   0.027s
ok      crypto/sha512   0.019s
ok      crypto/subtle   0.017s
ok      crypto/tls      0.884s
ok      crypto/x509     0.408s
ok      database/sql    0.698s
ok      database/sql/driver     0.020s
ok      debug/dwarf     0.031s
ok      debug/elf       0.076s
ok      debug/gosym     0.051s
ok      debug/macho     0.033s
ok      debug/pe        0.064s
ok      debug/plan9obj  0.015s
ok      embed/internal/embedtest        0.010s
ok      encoding/ascii85        0.005s
ok      encoding/asn1   0.033s
ok      encoding/base32 0.032s
ok      encoding/base64 0.016s
ok      encoding/binary 0.031s
ok      encoding/csv    0.019s
ok      encoding/gob    0.040s
ok      encoding/hex    0.028s
ok      encoding/json   0.312s
ok      encoding/pem    0.048s
ok      encoding/xml    0.069s
ok      errors  0.026s
ok      expvar  0.042s
ok      flag    0.178s
ok      fmt     0.066s
ok      go/ast  0.059s
ok      go/build        1.099s
ok      go/build/constraint     0.039s
ok      go/constant     0.032s
ok      go/doc  0.070s
ok      go/format       0.039s
ok      go/importer     0.120s
ok      go/internal/gccgoimporter       0.059s
ok      go/internal/gcimporter  2.543s
ok      go/internal/srcimporter 9.236s
ok      go/parser       0.050s
ok      go/printer      0.267s
ok      go/scanner      0.056s
ok      go/token        0.031s
ok      go/types        1.650s
ok      hash    0.032s
ok      hash/adler32    0.060s
ok      hash/crc32      0.025s
ok      hash/crc64      0.047s
ok      hash/fnv        0.009s
ok      hash/maphash    0.109s
ok      html    0.039s
ok      html/template   0.096s
ok      image   0.053s
ok      image/color     0.052s
ok      image/draw      0.057s
ok      image/gif       0.318s
ok      image/jpeg      0.169s
ok      image/png       0.078s
ok      index/suffixarray       0.117s
ok      internal/cpu    0.106s
ok      internal/execabs        0.014s
ok      internal/fmtsort        0.044s
ok      internal/poll   0.057s
ok      internal/profile        0.032s
ok      internal/reflectlite    0.094s
ok      internal/singleflight   0.024s
ok      internal/trace  0.050s
ok      internal/unsafeheader   0.035s
ok      internal/xcoff  0.038s
ok      io      0.080s
ok      io/fs   0.010s
ok      io/ioutil       0.045s
ok      log     0.029s
ok      log/syslog      1.210s
ok      math    0.038s
ok      math/big        0.940s
ok      math/bits       0.018s
ok      math/cmplx      0.035s
ok      math/rand       0.310s
ok      mime    0.019s
ok      mime/multipart  0.184s
ok      mime/quotedprintable    0.026s
ok      net     3.586s
ok      net/http        7.498s
ok      net/http/cgi    0.773s
ok      net/http/cookiejar      0.082s
ok      net/http/fcgi   0.037s
ok      net/http/httptest       0.099s
ok      net/http/httptrace      0.016s
ok      net/http/httputil       0.088s
ok      net/http/internal       0.029s
ok      net/http/pprof  5.101s
ok      net/internal/socktest   0.032s
ok      net/mail        0.049s
ok      net/rpc 0.057s
ok      net/rpc/jsonrpc 0.008s
ok      net/smtp        0.038s
ok      net/textproto   0.049s
ok      net/url 0.029s
--- FAIL: TestChown (0.00s)
    os_unix_test.go:58: gid: 100
    os_unix_test.go:70: groups:  [65534 65534 65534 65534 65534 65534 65534 100]
    os_unix_test.go:73: chown /tmp/_Go_TestChown2337291411 -1 65534: chown /tmp/_Go_TestChown2337291411: invalid argument
--- FAIL: TestFileChown (0.00s)
    os_unix_test.go:101: gid: 100
    os_unix_test.go:113: groups:  [65534 65534 65534 65534 65534 65534 65534 100]
    os_unix_test.go:116: fchown /tmp/_Go_TestFileChown1214913487 -1 65534: chown /tmp/_Go_TestFileChown1214913487: invalid argument
--- FAIL: TestLchown (0.00s)
    os_unix_test.go:153: gid: 100
    os_unix_test.go:168: groups:  [65534 65534 65534 65534 65534 65534 65534 100]
    os_unix_test.go:171: lchown /tmp/_Go_TestLchown35747462652 -1 65534: lchown /tmp/_Go_TestLchown35747462652: invalid argument
FAIL
FAIL    os      0.755s
ok      os/exec 1.688s
ok      os/signal       4.272s
ok      os/user 0.013s
ok      path    0.016s
ok      path/filepath   0.037s
ok      plugin  0.012s
ok      reflect 0.227s
ok      regexp  0.108s
ok      regexp/syntax   0.252s
ok      runtime 47.692s
ok      runtime/debug   0.082s
ok      runtime/internal/atomic 0.035s
ok      runtime/internal/math   0.020s
ok      runtime/internal/sys    0.044s
ok      runtime/metrics 0.021s
ok      runtime/pprof   7.817s
ok      runtime/race    0.411s
ok      runtime/trace   0.706s
ok      sort    0.081s
ok      strconv 0.363s
ok      strings 0.635s
ok      sync    0.493s
ok      sync/atomic     0.099s
ok      syscall 0.292s
ok      testing 0.844s
ok      testing/fstest  0.011s
ok      testing/iotest  0.037s
ok      testing/quick   0.078s
ok      text/scanner    0.059s
ok      text/tabwriter  0.016s
ok      text/template   0.063s
ok      text/template/parse     0.021s
ok      time    1.766s
ok      unicode 0.016s
ok      unicode/utf16   0.043s
ok      unicode/utf8    0.020s
ok      cmd/addr2line   3.560s
ok      cmd/api 3.235s
ok      cmd/asm/internal/asm    0.875s
ok      cmd/asm/internal/lex    0.078s
ok      cmd/compile     9.195s
ok      cmd/compile/internal/gc 17.751s
ok      cmd/compile/internal/logopt     1.265s
ok      cmd/compile/internal/ssa        0.902s
ok      cmd/compile/internal/syntax     0.021s
ok      cmd/compile/internal/test       0.028s
ok      cmd/compile/internal/types      0.047s
ok      cmd/cover       2.248s
ok      cmd/doc 0.111s
ok      cmd/fix 2.884s
ok      cmd/go  25.585s
ok      cmd/go/internal/auth    0.039s
ok      cmd/go/internal/cache   0.176s
ok      cmd/go/internal/fsys    0.046s
ok      cmd/go/internal/generate        0.054s
ok      cmd/go/internal/get     0.046s
ok      cmd/go/internal/imports 0.063s
ok      cmd/go/internal/load    0.072s
ok      cmd/go/internal/lockedfile      0.257s
ok      cmd/go/internal/lockedfile/internal/filelock    0.075s
ok      cmd/go/internal/modconv 0.021s
ok      cmd/go/internal/modfetch        0.058s
ok      cmd/go/internal/modfetch/codehost       0.010s
ok      cmd/go/internal/modfetch/zip_sum_test   0.058s
ok      cmd/go/internal/modload 0.044s
ok      cmd/go/internal/mvs     0.033s
ok      cmd/go/internal/par     0.064s
ok      cmd/go/internal/renameio        0.161s
ok      cmd/go/internal/search  0.035s
ok      cmd/go/internal/str     0.031s
ok      cmd/go/internal/test    0.046s
ok      cmd/go/internal/txtar   0.028s
ok      cmd/go/internal/vcs     0.026s
ok      cmd/go/internal/web     0.064s
ok      cmd/go/internal/work    0.044s
ok      cmd/gofmt       0.063s
ok      cmd/internal/archive    2.200s
ok      cmd/internal/buildid    0.229s
ok      cmd/internal/dwarf      0.051s
ok      cmd/internal/edit       0.083s
ok      cmd/internal/goobj      0.058s
ok      cmd/internal/moddeps    1.646s
ok      cmd/internal/obj        0.072s
ok      cmd/internal/obj/ppc64  0.160s
ok      cmd/internal/obj/riscv  0.149s
ok      cmd/internal/obj/s390x  0.037s
ok      cmd/internal/obj/x86    0.617s
ok      cmd/internal/objabi     0.013s
ok      cmd/internal/pkgpath    0.114s
ok      cmd/internal/src        0.016s
ok      cmd/internal/sys        0.015s
ok      cmd/internal/test2json  0.134s
ok      cmd/link        14.946s
ok      cmd/link/internal/benchmark     0.100s
ok      cmd/link/internal/ld    5.326s
ok      cmd/link/internal/loader        0.128s
ok      cmd/nm  4.191s
ok      cmd/objdump     5.627s
ok      cmd/pack        3.358s
ok      cmd/trace       0.346s
ok      cmd/vet 10.944s
FAIL
go tool dist: Failed: exit status 1

@rhatdan
Copy link
Member

rhatdan commented Feb 16, 2022

Upstream does not controll how we build on downstream platforms. I don't see this as a Podman issue.

@Yethal
Copy link
Author

Yethal commented Feb 16, 2022

Static compilation is listed as valid installation method in official Podman docs
https://podman.io/getting-started/installation

@rhatdan
Copy link
Member

rhatdan commented Feb 16, 2022

Sure but it is up to community to figure out why it is broken on different distributions. Upstream maintainers only work on a select few distros.

@afbjorklund
Copy link
Contributor

afbjorklund commented Feb 17, 2022

The podman project only supports static builds of the client (podman-remote), not of the server (podman)

https://github.com/containers/podman/releases/latest

You can find some workarounds for the failing Nix build (sandbox issue with Go) in: #8788 (comment)

You can file a bug with NixOS/nixpkgs perhaps, or use the .deb package for Ubuntu 20.04 from Kubic ?

https://podman.io/getting-started/installation#ubuntu

EDIT: the original nix bug from 2019 is still open

@Luap99
Copy link
Member

Luap99 commented Feb 17, 2022

AFAIK The static nix build in the podman repo is currently unmaintained. We removed the CI job since nobody fixed the failures. I think you have better luck with the official podman nix package: https://search.nixos.org/packages?channel=21.11&show=podman&from=0&size=50&sort=relevance&type=packages&query=podman

@Yethal
Copy link
Author

Yethal commented Feb 17, 2022

@Luap99 Does the official nix package produce static binaries as well?

@Luap99
Copy link
Member

Luap99 commented Feb 17, 2022

nix only builds static binaries AFAIK

@Luap99 Luap99 added the volunteers-wanted Issues good for community/volunteer contributions label Feb 17, 2022
@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Mar 21, 2022

Since this is not supported upstream I am closing.

@rhatdan rhatdan closed this as completed Mar 21, 2022
@Luap99
Copy link
Member

Luap99 commented Mar 21, 2022

If we do not want to support this and there is no one from the community we should remove it.

@rhatdan
Copy link
Member

rhatdan commented Mar 23, 2022

I agree, I also think a static Podman makes little sence, since Podman relies on so many other programs to be able to run properly. It is not a standalone application.
You need, conmon, OCI Runtime (crun, runc, kata ...), newuidmap, newgidmap, containers-common, container-network-stack (cni or netavark), container-selinux, slirp4netns ...

@afbjorklund
Copy link
Contributor

afbjorklund commented Mar 23, 2022

The other container runtimes provide an all-in-one tarball, it is not fully static but it does include e.g. runc and containerd

Example: nerdctl-full.tgz

@rhatdan
Copy link
Member

rhatdan commented Mar 23, 2022

Well if someone in community is interested in maintaining that then they are welcome to it. But if it is just going to be a source os issues, with mismatched versions, then it is more of a pain. Running a container image from a distribution is a simpler solution if people want to try newer versions of XYZ container engine.

@afbjorklund
Copy link
Contributor

Yes, probably best to remove the old nix files from the git repository if they are not working (or being tested) anyway.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue volunteers-wanted Issues good for community/volunteer contributions
Projects
None yet
Development

No branches or pull requests

4 participants