pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sysutils/podman - working on netbsd?



If NetBSD requires Position Independent Code, as suggested by some
google searches, you may need to clean and replace with the following
flags (as always, with your discretion):

CFLAGS+=        -fPIC
LDFLAGS+=       -Wl,-z,notext

make GO_FLAGS="-buildmode=pie" replace

Otherwise, calling gdb on the core dump may provide more clues from the trace.

On Fri, Sep 11, 2026 at 4:24 PM Jeff Rizzo <riz%tastylime.net@localhost> wrote:
>
> Are there any special considerations for using sysutils/podman on
> NetBSD/amd64?  I just tried it on netbsd-11 (amd64), even going so far
> as to build a kernel with HZ=1000 (which doesn't seem to matter for
> this), but I keep getting some form of:
>
>
> rambutan:riz  /tank/netbsd/pkgsrc/pkgsrc-cvs/sysutils/podman> podman
> --version
> /usr/pkg/bin/podman: text relocations
> zsh: segmentation fault  podman --version
> rambutan:riz  /tank/netbsd/pkgsrc/pkgsrc-cvs/sysutils/podman>
>
>
> I've tried the binary pkg currently available (which seems to be
> podman-5.0.3nb19), built it on two separate systems just-in-case
> (version 5.0.3nb23 - I had to wait through at least 4 separate builds of
> golang), and they all fail similarly. Since it's likely that it will be
> some time before I have the leisure to dig into this, just wondering if
> anyone has used it recently, or if there's some particular thing or
> other I need to set on my system...  Now that I'm thinking about it -
> this system (and the other one I tried it on) has root-on-zfs.  Might
> that affect things?
>
>
> In case it matters (maybe seems relevant), these are the last lines of
> the source build:
>
>
> ===> Building for podman-5.0.3nb23
> mkdir -p bin
> fatal: not a git repository (or any parent up to mount point
> /tank/netbsd/pkgsrc)
> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
> CGO_ENABLED=1 GOOS=netbsd GOARCH=amd64 go build \
>       \
>      -ldflags ' -X
> github.com/containers/podman/v5/libpod/define.buildInfo=1789168209 -X
> github.com/containers/podman/v5/libpod/config._installPrefix=/usr/pkg -X
> github.com/containers/podman/v5/libpod/config._etcDir=/etc -X
> github.com/containers/podman/v5/pkg/systemd/quadlet._binDir=/usr/pkg/bin
> -X github.com/containers/common/pkg/config.additionalHelperBinariesDir= ' \
>      -tags "remote exclude_graphdriver_btrfs btrfs_noversion
> exclude_graphdriver_devicemapper containers_image_openpgp" \
>      -o bin/podman-remote ./cmd/podman
> # github.com/containers/podman/v5/cmd/podman
> ld: /tmp/go-link-146038740/go.o: warning: relocation in read-only
> section `.go.func'
> ld: warning: creating DT_TEXTREL in a PIE
>
> rambutan:riz  /tank/netbsd/pkgsrc/pkgsrc-cvs/sysutils/podman>
>


Home | Main Index | Thread Index | Old Index