[Bug 257588] multimedia/librav1e: add BINARY_ALIAS for CC and LD

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 03 Aug 2021 15:07:55 +0000

            Bug ID: 257588
           Summary: multimedia/librav1e: add BINARY_ALIAS for CC and LD
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich_at_FreeBSD.org
          Reporter: evgeniy_at_khramtsov.org
             Flags: maintainer-feedback?(jbeich_at_FreeBSD.org)
          Assignee: jbeich_at_FreeBSD.org
             Flags: maintainer-feedback?

Created attachment 226910
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=226910&action=edit
v1 (use "git am")

Add BINARY_ALIAS to respect CC and LD when using lang/rust
from pkg.FreeBSD.org, e.g. pkg seeding. While here, also pet
portlint by adding USE_LDCONFIG.

lang/rust hardcodes environment at build time, resulting in
multimedia/librav1e build failure if the hardcoded CC and LD
differ from the configured CC and LD, and the system toolchain
does not exist and is provided by ports:

   Compiling autocfg v1.0.1
   Compiling libc v0.2.92
   Compiling rayon-core v1.9.0
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.24
   Compiling memchr v2.3.4
   Compiling unicode-xid v0.2.1
error: linker `cc` not found
  = note: No such file or directory (os error 2)

error: aborting due to previous error

error: could not compile `rayon-core`

Passing RUSTFLAGS via {CONFIGURE,MAKE}_ENV (from git log)
which worked for various ports did not work here, at least for me.

Building lang/rust (bulk -S) unbroke the build for me, which suggests
that Rust compiler hardcodes environment.

${CC} and ${LD} are enclosed in ""; I think that a user may set
CC/LD containing spaces in an absolute path.

Ignore git hashes in poudriere logs due to git detached HEAD used.

11.4/amd64: OK
bulk diff https://codeberg.org/ei/misc/commit/0724fbd
pkg diff https://codeberg.org/ei/misc/commit/c9d51ad
testport https://codeberg.org/ei/misc/commit/49b492e

11.4/i386 OK:
bulk diff https://codeberg.org/ei/misc/commit/7dcb0ae
pkg diff https://codeberg.org/ei/misc/commit/596eafb
testport https://codeberg.org/ei/misc/commit/45444d1

12.2/amd64: OK
bulk diff https://codeberg.org/ei/misc/commit/0c1047b
pkg diff https://codeberg.org/ei/misc/commit/f85779b
testport https://codeberg.org/ei/misc/commit/4fd12c2

12.2/i386: OK
bulk diff https://codeberg.org/ei/misc/commit/cd96cc9
pkg diff https://codeberg.org/ei/misc/commit/334f858
testport https://codeberg.org/ei/misc/commit/cb1ddf3

13.0/amd64: OK
bulk diff https://codeberg.org/ei/misc/commit/a7308bd
pkg diff https://codeberg.org/ei/misc/commit/d9ac2b8
testport https://codeberg.org/ei/misc/commit/8f4d107

13.0/aarch64 (via qemu-user-static): N/A
ports-mgmt/poudriere-devel could not fetch lang/rust due to index issues in
pkg.FreeBSD.org. lang/rust can't build on QEMU and is set as IGNORE for QEMU.

You are receiving this mail because:
You are the assignee for the bug.
Received on Tue Aug 03 2021 - 15:07:55 UTC

Original text of this message