Bug 271541

Summary: lang/erlang-runtime26 build failure
Product: Ports & Packages Reporter: Konstantin Belousov <kib>
Component: Individual Port(s)Assignee: Dave Cottlehuber <dch>
Status: Closed FIXED    
Severity: Affects Only Me CC: dch, olegni, sg2342
Priority: --- Flags: bugzilla: maintainer-feedback? (erlang)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
poudriere build log on 13.2 amd64
none
fix CHUNKS build and stage sg2342: maintainer-approval? (olegni)

Description Konstantin Belousov freebsd_committer freebsd_triage 2023-05-20 21:47:06 UTC
Created attachment 242303 [details]
poudriere build log on 13.2 amd64

I get the following:
PATH=/wrkdirs/usr/ports/lang/erlang-runtime26/work/otp-OTP-26.0/bootstrap/bin:"${PATH}" escript /wrkdirs/usr/ports/lang/erlang-runtime26/work/otp-OTP-26.0/bootstrap/lib/erl_docgen/priv/bin/xref_mod_app.escript -topdir /wrkdirs/usr/ports/lang/erlang-runtime26/work/otp-OTP-26.0 -outfile /wrkdirs/usr/ports/lang/erlang-runtime26/work/otp-OTP-26.0/make/amd64-portbld-freebsd13.2/mod2app.xml
escript: exception error: undefined function xmerl:export_simple/2
  in function  erl_eval:do_apply/7 
  in call from erl_eval:expr/6 
  in call from erl_eval:exprs/6 
  in call from erl_eval:local_func/8 
  in call from escript:interpret/4 
  in call from escript:start/1 
  in call from init:start_em/1 
gmake[1]: *** [Makefile:470: /wrkdirs/usr/ports/lang/erlang-runtime26/work/otp-OTP-26.0/make/amd64-portbld-freebsd13.2/mod2app.xml] Error 127

Poudriere build log attached.
Comment 1 Stefan Grundmann 2023-11-24 02:29:03 UTC
Created attachment 246528 [details]
fix CHUNKS build and stage

After upstream "otp: Refactor second and third bootstrap"
https://github.com/erlang/otp/commit/d629c17c3a0796677e2baa5c48e612da947e00a1

 'gmake all DOC_TARGETS=chunks docs'

does no longer work.

and even if it worked: the resulting chunk files are not staged.

The attached patch does update lang/erlang-runtime26
Comment 2 Konstantin Belousov freebsd_committer freebsd_triage 2023-11-24 06:35:44 UTC
(In reply to Stefan Grundmann from comment #1)
Patch worked for me, thank you.
Comment 3 Dave Cottlehuber freebsd_committer freebsd_triage 2024-01-04 23:37:02 UTC
thanks kib, stefan, checking this again vs 26.2.1.
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-01-05 00:07:26 UTC
A commit in branch main references this bug:

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

commit ba2a4388bd552ffe399f059c42fa16507757c6b0
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2024-01-05 00:06:35 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2024-01-05 00:06:35 +0000

    lang/erlang-runtime26: add inline docs to erl shell

    PR:             271541
    Sponsored by:   SkunkWerks, GmbH

 lang/erlang-runtime26/Makefile | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)