Bug 232017 - textproc/gtk-doc: Fails to run on Python 3.6 (TypeError: expected str, bytes or os.PathLike object, not builtin_function_or_method)
Summary: textproc/gtk-doc: Fails to run on Python 3.6 (TypeError: expected str, bytes ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Koop Mast
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2018-10-06 23:36 UTC by Ivan Rozhuk
Modified: 2018-10-16 06:50 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)
koobs: maintainer-feedback? (kwm)


Attachments
build. log (665.77 KB, text/plain)
2018-10-08 09:31 UTC, Ivan Rozhuk
no flags Details
make.conf (5.29 KB, text/plain)
2018-10-08 09:31 UTC, Ivan Rozhuk
no flags Details
Update gtk-doc to 1.29 (751 bytes, patch)
2018-10-08 14:21 UTC, Ting-Wei Lan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2018-10-06 23:36:02 UTC
...
Making install in docs/reference/gck
gmake[4]: Entering directory '/tmp/ports/usr/ports/security/gcr/work/gcr-3.28.0/docs/reference/gck'
gmake[5]: Entering directory '/tmp/ports/usr/ports/security/gcr/work/gcr-3.28.0/docs/reference/gck'
gmake[5]: Nothing to be done for 'install-exec-am'.
 install  -m 0644 ./html/annotation-glossary.html
...
 install  -m 0644 ./html/up-insensitive.png
 install  -m 0644 ./html/up.png
Traceback (most recent call last):
  File "/usr/local/bin/gtkdoc-rebase", line 56, in <module>
    sys.exit(rebase.run(options))
  File "/usr/local/share/gtk-doc/python/gtkdoc/rebase.py", line 75, in run
    ScanDirectory(dir, options)
  File "/usr/local/share/gtk-doc/python/gtkdoc/rebase.py", line 133, in ScanDirectory
    ScanDirectory(subdir, options)
  File "/usr/local/share/gtk-doc/python/gtkdoc/rebase.py", line 114, in ScanDirectory
    onlinedir = ReadIndex(dir, entry)
  File "/usr/local/share/gtk-doc/python/gtkdoc/rebase.py", line 153, in ReadIndex
    for line in common.open_text(os.path.join(dir, file)):
  File "/usr/local/lib/python3.6/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not builtin_function_or_method
gmake[5]: *** [Makefile:883: install-data-local] Error 1
gmake[5]: Leaving directory '/tmp/ports/usr/ports/security/gcr/work/gcr-3.28.0/docs/reference/gck'
gmake[4]: *** [Makefile:626: install-am] Error 2
...
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2018-10-07 05:32:05 UTC
(In reply to rozhuk.im from comment #0)

This looks like an issue related to textproc/gtk-doc, not security/gcr, which depends on it.

Please include the following information:

 * Exact system version (uname -a)
 * Exact installed Python version (python3.6 --version)
 * Exact installed lang/python36 port version (pkg version -n python36)
 * Exact installed textproc/gtk-doc port version (pkg version -n gtk-doc)
 * Full/complete security/gcr buildlog including invocation command
 * Contents of /etc/make.conf if not empty
Comment 2 Ivan Rozhuk 2018-10-08 09:30:34 UTC
(In reply to Kubilay Kocak from comment #1)

# uname -a
FreeBSD rimwks 11.2-STABLE FreeBSD 11.2-STABLE  r339071M  amd64

# python3.6 --version
Python 3.6.6

pkg version -n python36
python36-3.6.6_1                   =
Comment 3 Ivan Rozhuk 2018-10-08 09:31:15 UTC
Created attachment 197904 [details]
build. log
Comment 4 Ivan Rozhuk 2018-10-08 09:31:46 UTC
Created attachment 197905 [details]
make.conf
Comment 5 Ting-Wei Lan 2018-10-08 14:19:37 UTC
It is a bug of gtk-doc 1.28:
https://bugzilla.gnome.org/show_bug.cgi?id=796011

gtk-doc 1.29 already fixes it.
Comment 6 Ting-Wei Lan 2018-10-08 14:21:12 UTC
Created attachment 197913 [details]
Update gtk-doc to 1.29
Comment 7 Ivan Rozhuk 2018-10-08 14:33:08 UTC
This fix mine issue with gcr, thanks.
Comment 8 commit-hook freebsd_committer freebsd_triage 2018-10-13 20:39:50 UTC
A commit references this bug:

Author: kwm
Date: Sat Oct 13 20:38:51 UTC 2018
New revision: 482012
URL: https://svnweb.freebsd.org/changeset/ports/482012

Log:
  Update gtk-doc to 1.29.

  PR:		232017
  Submitted by:	Ting-Wei Lan <lantw44@gmail.com>

Changes:
  head/textproc/gtk-doc/Makefile
  head/textproc/gtk-doc/distinfo
Comment 9 Ivan Rozhuk 2018-10-13 20:48:48 UTC
Thanks!