Building libheif with all config options disabled (especially Examples) fails in my system with the following error: --- gopath --- mkdir -p /src/github.com/strukturag/libheif mkdir: /src: Read-only file system My root filesystem is read only and I don't wont random files to be created. However even when I create read-write /src, I get an error: --- heif-test-go --- heif-test.go:39:2: cannot find package "github.com/strukturag/libheif/go/heif" in any of: /usr/local/go/src/github.com/strukturag/libheif/go/heif (from $GOROOT) /tmp/portbuild/usr/ports/graphics/libheif/work/go/src/github.com/strukturag/libheif/go/heif (from $GOPATH) *** [heif-test-go] Error code 1 (I have WRKDIRPREFIX ?= /tmp/portbuild set in /etc/make.conf.) When I enable Examples (with make config) then the port built without an error. Also when I change the Makefile and add: CONFIGURE_ARGS+= --disable-go then the port is build also without an error.
Hi Marian, thanks for the report. I'll have a look together with the upgrade to 1.6.2 in #246921. I agree, it should be possible to do a successful build without examples. Best, Sebastain
I have just come across this too. I am building with EXAMPLES=off and it fails to build with: --- heif-test-go --- heif-test.go:39:2: cannot find package "github.com/strukturag/libheif/go/heif" in any of: /usr/local/go/src/github.com/strukturag/libheif/go/heif (from $GOROOT) /usr/ports/graphics/libheif/work/go/src/github.com/strukturag/libheif/go/heif (from $GOPATH) *** [heif-test-go] Error code 1 I can provide the whole build log if you want, but this seems like the most relevant bit to me.
I'm getting this as well. Tried downloading from the source at github and got this: [...] ln -sf /../go /src/github.com/strukturag/libheif/ GOPATH= PKG_CONFIG_PATH=/root/test/libheif:/root/test/libheif/libde265/dist/lib/pkgconfig/ CGO_CFLAGS="-I/root/test/libheif" CGO_LDFLAGS="-L/root/test/libheif/libheif/.libs" LD_LIBRARY_PATH=/root/test/libheif/libheif/.libs /usr/local/bin/go build -o heif-test-go heif-test.go heif-test.go:39:2: cannot find package "github.com/strukturag/libheif/go/heif" in any of: /usr/local/go/src/github.com/strukturag/libheif/go/heif (from $GOROOT) /root/go/src/github.com/strukturag/libheif/go/heif (from $GOPATH) *** Error code 1 [...]
The problem I'm seeing is that the binaries are never installed. make install doesn't install anything into /usr/local/bin when installing the port. Expect to see heif-convert etc
I should say "the problems I'm seeing with the port"
*** Bug 253729 has been marked as a duplicate of this bug. ***