Bug 245387 - graphics/libheif: Fails to build EXAMPLES option disabled
Summary: graphics/libheif: Fails to build EXAMPLES option disabled
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs mailing list
Keywords: needs-patch, needs-qa
Depends on:
Reported: 2020-04-05 21:29 UTC by Marián Černý
Modified: 2020-04-06 07:30 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (freebsd)
koobs: merge-quarterly?


Note You need to log in before you can comment on or make changes to this bug.
Description Marián Černý 2020-04-05 21:29:46 UTC
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.