Bug 254503 - x11-fonts/py-opentype-sanitizer: Fix build with Python 3.8 and onward
Summary: x11-fonts/py-opentype-sanitizer: Fix build with Python 3.8 and onward
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks: 253815
  Show dependency treegraph
 
Reported: 2021-03-23 13:07 UTC by Kai Knoblich
Modified: 2021-03-30 21:13 UTC (History)
1 user (show)

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


Attachments
py-opentype-sanitizer-fix-build-with-py38.patch (686 bytes, patch)
2021-03-23 13:07 UTC, Kai Knoblich
kai: maintainer-approval? (sunpoet)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Knoblich freebsd_committer freebsd_triage 2021-03-23 13:07:45 UTC
Created attachment 223523 [details]
py-opentype-sanitizer-fix-build-with-py38.patch

Hi Sunpoet,

attached is a patch that fixes x11-fonts/py-opentype-sanitizer if build with Python 3.8 and onwards:

> building 'ots.ots-sanitize' extension
> cc -shared -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -o build/lib.freebsd-12.2-RELEASE-p3-i386-3.8/ots/ots-sanitize.cpython-38.so
> cc: error: no input files
> error: command 'cc' failed with exit status 1
> *** Error code 1

This should complete ports r559094 as well.

QA:
~~~

- poudriere -> OK (12.2-RELEASE amd64, with PYTHON_DEFAULT=3.8)
- poudriere -> OK (11.4-, 12.2-RELEASE, 13.0-RC3, 14.0-CURRENT@a9f11355 amd64 i386, with PYTHON_DEFAULT=3.7)

Results of "make test" (py36, py37, py38, py39):

> 3 passed in 0.11 seconds
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-03-30 19:17:23 UTC
A commit references this bug:

Author: sunpoet
Date: Tue Mar 30 19:16:51 UTC 2021
New revision: 569586
URL: https://svnweb.freebsd.org/changeset/ports/569586

Log:
  Fix build with Python 3.8+

  PR:		254503
  Submitted by:	kai

Changes:
  head/x11-fonts/py-opentype-sanitizer/Makefile
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2021-03-30 21:13:49 UTC
Committed. Thanks!