Bug 274244 - www/foreign-cdm does not build in poudriere
Summary: www/foreign-cdm does not build in poudriere
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Gleb Popov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-03 15:24 UTC by Jakob Alvermark
Modified: 2023-10-12 07:43 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (arrowd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob Alvermark 2023-10-03 15:24:21 UTC
Using poudriere to build www/chromium with option WIDEVINE depends on www/foreign-cdm, which fails:


[ 97%] Linking CXX executable capnpc-c++
[ 97%] Built target capnpc_cpp
[ 98%] Building CXX object c++/src/capnp/CMakeFiles/capnpc_capnp.dir/compiler/capnpc-capnp.c++.o
[100%] Linking CXX executable capnpc-capnp
[100%] Built target capnpc_capnp
./build/capnp-fbsd/c++/src/capnp/capnp compile -obuild/capnp-linux/c++/src/capnp/capnpc-c++ src/cdm.capnp
build/capnp-linux/c++/src/capnp/capnpc-c++: no such plugin (executable should be '/wrkdirs/usr/ports/www/foreign-cdm/work/foreign-cdm-32ed6209a25a60b3eef84e43cffb47a5da036290/build/capnp-linux/c++/src/capnp/capnpc-c++')
build/capnp-linux/c++/src/capnp/capnpc-c++: plugin failed: exit code 1
*** Error code 1

Stop.
make[1]: stopped in /wrkdirs/usr/ports/www/foreign-cdm/work/foreign-cdm-32ed6209a25a60b3eef84e43cffb47a5da036290
*** Error code 1

Stop.
make: stopped in /usr/ports/www/foreign-cdm
=>> Cleaning up wrkdir
===>  Cleaning for foreign-cdm-1_1
build of www/foreign-cdm | foreign-cdm-1_1 ended at Tue Oct  3 17:19:13 CEST 2023
build time: 00:01:30
!!! build failure encountered !!!
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2023-10-03 16:40:23 UTC
It does work for me. Your error looks strange.

Can you try adding MAKE_JOBS_UNSAFE=yes into the port's Makefile and building again?
Comment 2 Jakob Alvermark 2023-10-03 17:41:12 UTC
(In reply to Gleb Popov from comment #1)

MAKE_JOBS_UNSAFE=yes makes no difference, same error.

If build on the host, from which the source the poudriere jail is installed it works.

This is on -current, btw. main-n265674-09f5c1e118bb
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-10-03 19:10:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=325332bb32a5b6d939da4cc7c5ba6e30b57ed236

commit 325332bb32a5b6d939da4cc7c5ba6e30b57ed236
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-10-03 19:09:25 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-10-03 19:10:12 +0000

    www/foreign-cdm: Update to newest commit.

    This hopefully fixes build problems that some people experience.

    PR:             274244

 www/foreign-cdm/Makefile | 5 ++---
 www/foreign-cdm/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)
Comment 4 Gleb Popov freebsd_committer freebsd_triage 2023-10-03 19:11:01 UTC
Is it better now?
Comment 5 Jakob Alvermark 2023-10-03 20:33:22 UTC
(In reply to Gleb Popov from comment #4)
Yes, now it builds without errors!
Thanks!
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-10-12 07:43:11 UTC
A commit in branch 2023Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=58f7b835033dc3cd328283e6d58b9bc0ab2c736b

commit 58f7b835033dc3cd328283e6d58b9bc0ab2c736b
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-10-03 19:09:25 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-10-12 07:38:07 +0000

    www/foreign-cdm: Update to newest commit.

    This hopefully fixes build problems that some people experience.

    PR:             274244
    (cherry picked from commit 325332bb32a5b6d939da4cc7c5ba6e30b57ed236)

 www/foreign-cdm/Makefile | 5 ++---
 www/foreign-cdm/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)