Bug 273249 - print/pdf-tools fails to build using poudriere on amd64 stable-13.2 with error symbol's function definition is void: batch-update-autoloads
Summary: print/pdf-tools fails to build using poudriere on amd64 stable-13.2 with err...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Joseph Mingrone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-20 21:06 UTC by Robert Cina
Modified: 2023-08-21 13:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cina 2023-08-20 21:06:21 UTC
The port fails to build using poudriere on stable-13.1 amd64 with the error symbol's function definition is void: batch-update-autoloads.

Below is an excerpt of the build log indicating the error:

In pdf-virtual-document-previous-matching-page:
/wrkdirs/usr/ports/print/pdf-tools/work-full/pdf-tools-1.1.0/lisp/pdf-virtual.el:405:13: Warning: Stray `declare' form: (declare (indent 1))
/usr/local/bin/emacs-29.1 -q --batch  --eval "(setq generated-autoload-file  \"/wrkdirs/usr/ports/print/pdf-tools/work-full/pdf-tools-1.1.0/lisp/pdf-tools-loaddefs.el\"  backup-inhibited t)"  -f batch-update-autoloads /wrkdirs/usr/ports/print/pdf-tools/work-full/pdf-tools-1.1.0/lisp
Symbol's function definition is void: batch-update-autoloads

Error: void-function (batch-update-autoloads)
  mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0x1d09c477e512f84>))
  debug-early-backtrace()
  debug-early(error (void-function batch-update-autoloads))
  batch-update-autoloads()
  command-line-1(("--eval" "(setq generated-autoload-file  \"/wrkdirs/usr/ports/print/pdf-tools/work-full/pdf-tools-1.1.0/lisp/pdf-tools-loaddefs.el\"  backup-inhibited t)" "-f" "batch-update-autoloads" "/wrkdirs/usr/ports/print/pdf-tools/work-full/pdf-tools-1.1.0/lisp"))
  command-line()
  normal-top-level()
*** Error code 255

Stop.
make: stopped in /usr/ports/print/pdf-tools
=>> Cleaning up wrkdir
===>  Cleaning for pdf-tools-1.1.0_1
build of print/pdf-tools@full | pdf-tools-1.1.0_1 ended at Sun Aug 20 16:59:11 EDT 2023
build time: 00:00:48
!!! build failure encountered !!!
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2023-08-20 22:30:29 UTC
13.1 is unsupported and it builds fine on 13.2 (amd64) using a quite recent tree
Comment 2 Robert Cina 2023-08-20 22:41:05 UTC
sorry i mistyped the bug report, it does not build using 13.2 stable.
Comment 3 Joseph Mingrone freebsd_committer freebsd_triage 2023-08-21 01:51:18 UTC
I can reproduce with 13.2.  It's almost certainly related to the update of editors/emacs to 29.1 in ba4eb3a50e909d902a6e031e4c3477ed369799d2.
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-08-21 02:04:24 UTC
A commit in branch main references this bug:

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

commit 2020d4d00fff79b84b7238bc58d80be17efab731
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2023-08-21 01:59:21 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2023-08-21 01:59:21 +0000

    print/pdf-tools: Fix build after editors/emacs update to 29.1

    PR:             273249
    Reported by:    Robert Cina <transitive@gmail.com>
    Sponsored by:   The FreeBSD Foundation

 print/pdf-tools/Makefile | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
Comment 5 Joseph Mingrone freebsd_committer freebsd_triage 2023-08-21 02:05:04 UTC
(In reply to commit-hook from comment #4)
Could you confirm the above fixes the build and runtime looks good again?
Comment 6 Robert Cina 2023-08-21 13:26:06 UTC
I can confirm that the patch compiles and builds with poudriere on my 13.2 stable system. Thanks for the quick fix.
Comment 7 Joseph Mingrone freebsd_committer freebsd_triage 2023-08-21 13:30:01 UTC
(In reply to Robert Cina from comment #6)
Thanks!