Bug 278162 - security/botan2: WITH MANPAGES enabled provokes port build failure (sphinx)
Summary: security/botan2: WITH MANPAGES enabled provokes port build failure (sphinx)
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Dima Panov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-04 09:50 UTC by O. Hartmann
Modified: 2024-04-06 22:54 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2024-04-04 09:50:29 UTC
Building port security/botan2 on FreeBSD-14-STABLE (stable/14-n267111-41d9d301fbd: Wed Apr  3 10:34:40 CEST 2024 amd64) with standard config set fails to build port (see below).

Disabling both options DOCS and MANPAGES (DOCS alone results in the same failure) makes building the port happy again.

[... WITH DOCS/MANPAGES ...]
"/usr/local/bin/python3.9" "src/scripts/build_docs.py" --build-dir="build"
WARNING: Did not recognize sphinx version from 'Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 5, in <module>
    from sphinx.cmd.build import main
  File "/usr/local/lib/python3.9/site-packages/sphinx/cmd/build.py", line 18, in <module>
    from sphinx.application import Sphinx
  File "/usr/local/lib/python3.9/site-packages/sphinx/application.py", line 24, in <module>
    from sphinx.config import Config
  File "/usr/local/lib/python3.9/site-packages/sphinx/config.py", line 14, in <module>
    from sphinx.util.i18n import format_date
  File "/usr/local/lib/python3.9/site-packages/sphinx/util/i18n.py", line 10, in <module>
    import babel.dates
  File "/usr/local/lib/python3.9/site-packages/babel/dates.py", line 34, in <module>
    from babel import localtime
  File "/usr/local/lib/python3.9/site-packages/babel/localtime/__init__.py", line 41, in <module>
    LOCALTZ = get_localzone()
  File "/usr/local/lib/python3.9/site-packages/babel/localtime/__init__.py", line 37, in get_localzone
    return _get_localzone()
  File "/usr/local/lib/python3.9/site-packages/babel/localtime/_unix.py", line 96, in _get_localzone
    return _get_tzinfo_from_file(tzpath)
  File "/usr/local/lib/python3.9/site-packages/babel/localtime/_helpers.py", line 41, in _get_tzinfo_from_file
    return pytz.tzfile.build_tzinfo('local', tzfile)
  File "/usr/local/lib/python3.9/site-packages/pytz/tzfile.py", line 28, in build_tzinfo
    typecnt, charcnt) = unpack(head_fmt, fp.read(head_size))
struct.error: unpack requires a buffer of 44 bytes'
   INFO: Starting sphinx-build -q -c ./src/configs/sphinx -b html ./doc build/docs/handbook
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 5, in <module>
    from sphinx.cmd.build import main
  File "/usr/local/lib/python3.9/site-packages/sphinx/cmd/build.py", line 18, in <module>
    from sphinx.application import Sphinx
  File "/usr/local/lib/python3.9/site-packages/sphinx/application.py", line 24, in <module>
    from sphinx.config import Config
  File "/usr/local/lib/python3.9/site-packages/sphinx/config.py", line 14, in <module>
    from sphinx.util.i18n import format_date
  File "/usr/local/lib/python3.9/site-packages/sphinx/util/i18n.py", line 10, in <module>
    import babel.dates
  File "/usr/local/lib/python3.9/site-packages/babel/dates.py", line 34, in <module>
    from babel import localtime
  File "/usr/local/lib/python3.9/site-packages/babel/localtime/__init__.py", line 41, in <module>
    LOCALTZ = get_localzone()
  File "/usr/local/lib/python3.9/site-packages/babel/localtime/__init__.py", line 37, in get_localzone
    return _get_localzone()
  File "/usr/local/lib/python3.9/site-packages/babel/localtime/_unix.py", line 96, in _get_localzone
    return _get_tzinfo_from_file(tzpath)
  File "/usr/local/lib/python3.9/site-packages/babel/localtime/_helpers.py", line 41, in _get_tzinfo_from_file
    return pytz.tzfile.build_tzinfo('local', tzfile)
  File "/usr/local/lib/python3.9/site-packages/pytz/tzfile.py", line 28, in build_tzinfo
    typecnt, charcnt) = unpack(head_fmt, fp.read(head_size))
struct.error: unpack requires a buffer of 44 bytes
  ERROR: Error running sphinx-build -q -c ./src/configs/sphinx -b html ./doc build/docs/handbook
gmake: *** [Makefile:50: build/doc.stamp] Error 1
*** Error code 1
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2024-04-06 22:54:28 UTC
Can't reproduce this using Poudriere or on 14.0-RELEASE. Please retest this with a fresh ports tree without any preciously instaled ports.