Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#68747 closed defect (fixed)

ffmpeg @4.4.4_3 fails to build

Reported by: gwright83 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dbevans (David B. Evans), jeremyhu (Jeremy Huddleston Sequoia), kemar (Marc Hertzog), TDLemon8, maxcrees (Max Rees), astroboylrx (Rixin Li), adrianioancozma, novakreo
Port: ffmpeg

Description

ffmpeg 4.4.4_3 fails to build because texinfo is now at version 7.1. Version 7.1 changed certain function names; the failure is in building documentation:

:info:build makeinfo --html -I doc --no-split -D config-not-all --init-file=./doc/t2h.pm --output doc/ffmpeg.html doc/ffmpeg.texi
:info:build makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
:info:build makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
:info:build makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
:info:build makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
:info:build makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
:info:build makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
:info:build makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
:info:build makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
:info:build gmake: *** [doc/Makefile:67: doc/ffprobe.html] Error 1
:info:build gmake: *** Waiting for unfinished jobs....
:info:build gmake: *** [doc/Makefile:71: doc/ffplay-all.html] Error 1
:info:build gmake: *** [doc/Makefile:71: doc/ffprobe-all.html] Error 1

There are patches to ffmpeg to work around this but they have evidently not been applied to the current macport 4.4.x version. See https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/f01fdedb69e4accb1d1555106d8f682ff1f1ddc7

Attachments (1)

patch-texinfo-7.diff (7.7 KB) - added by maxcrees (Max Rees) 12 months ago.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: dbevans jeremyhu added
Owner: set to mascguy
Port: ffmpeg added
Status: newassigned
Summary: ffmpeg 4.4.4_3 fails to buildffmpeg @4.4.4_3 fails to build

comment:2 Changed 12 months ago by kemar (Marc Hertzog)

Cc: kemar added

comment:3 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: TDLemon8 added

Has duplicate #68755.

Changed 12 months ago by maxcrees (Max Rees)

Attachment: patch-texinfo-7.diff added

comment:4 Changed 12 months ago by maxcrees (Max Rees)

The upstream diff linked in the original description does not apply cleanly to 4.4.4_3 sources. I've attached a backported patch which allows the port to build.

comment:5 Changed 12 months ago by maxcrees (Max Rees)

Cc: maxcrees added

comment:6 Changed 12 months ago by astroboylrx (Rixin Li)

Cc: astroboylrx added

comment:7 in reply to:  4 Changed 12 months ago by astroboylrx (Rixin Li)

Replying to maxcrees:

The upstream diff linked in the original description does not apply cleanly to 4.4.4_3 sources. I've attached a backported patch which allows the port to build.

Do you mind explaining how one may use this patch to build a port? Or giving a link to an example? Thank you very much in advance!!

comment:8 Changed 12 months ago by rickyzhang82 (Ricky Zhang)

RTFM https://guide.macports.org/#development.local-repositories

or my gitst here https://gist.github.com/rickyzhang82/40f7116508a1782cd1c0268b8828b970#another-user-guide

Follow the instructions above. Skip step 4. Drop the attached diff file to files folder and add the line to the Portfile:

patchfiles-append   patch-texinfo-7.diff

The diff works.

Last edited 12 months ago by rickyzhang82 (Ricky Zhang) (previous) (diff)

comment:9 Changed 12 months ago by mascguy (Christopher Nielsen)

I'm sorry for the delay on this folks, I've been consumed with work for my day job lately. Thankfully I have some time over the Thanksgiving holiday though, and will take care of the various open tickets like this.

More to follow, over the next few days.

comment:10 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: adrianioancozma added

Has duplicate #68772.

comment:11 Changed 12 months ago by maxcrees (Max Rees)

comment:12 Changed 12 months ago by novakreo

Cc: novakreo added

comment:13 Changed 12 months ago by Max Rees <maxcrees@…>

Resolution: fixed
Status: assignedclosed

In afca66901e6c061aaa4bb2012334440a70184f42/macports-ports (master):

ffmpeg{,-devel}: fix build with texinfo >= 7

Fixes: #68747

comment:14 Changed 12 months ago by kemar (Marc Hertzog)

Thanks guys!

Note: See TracTickets for help on using tickets.