pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59158: testproc/py-yaml fails to build binary packge



>Number:         59158
>Category:       pkg
>Synopsis:       testproc/py-yaml fails to build binary packge
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 09 06:25:00 +0000 2025
>Originator:     Kimmo Suominen
>Release:        NetBSD 10.1 / pkgsrc-current 2025-09-03
>Organization:
>Environment:
System: NetBSD equinoxe.x.gw.fi 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

	Creating a binary package of textproc/py-yaml fails, because the
	PLIST does not match what gets installed when WHEEL_NAME is set.

>How-To-Repeat:

	: equinoxe[nb10-amd64]:textproc/py-yaml; make
	=> Checksum BLAKE2s OK for pyyaml-6.0.2.tar.gz
	=> Checksum SHA512 OK for pyyaml-6.0.2.tar.gz
	===> Installing dependencies for py312-yaml-6.0.2nb2
	==========================================================================
	The following variables will affect the build process of this package,
	py312-yaml-6.0.2nb2.  Their current value is shown below:

		* PYTHON_VERSION_DEFAULT = 312

	Based on these variables, the following variables have been set:

		* PYPACKAGE = python312

	You may want to abort the process now with CTRL-C and change the value
	of variables in the first group before continuing.  Be sure to run
	`/usr/bin/make clean' after the changes.
	==========================================================================
	=> Tool dependency py312-cython>=3.0: found py312-cython-3.0.12nb1
	=> Tool dependency py312-setuptools>=75.8.2: found py312-setuptools-75.8.2
	=> Tool dependency py312-build>=0: found py312-build-1.2.2.post1nb1
	=> Tool dependency py312-installer>=0.7.0nb1: found py312-installer-0.7.0nb3
	=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
	=> Tool dependency checkperms>=1.1: found checkperms-1.12
	=> Full dependency libyaml>=0.1.4: found libyaml-0.2.5
	=> Full dependency python312>=3.12.0: found python312-3.12.9
	===> Checking for vulnerabilities in py312-yaml-6.0.2nb2
	===> Overriding tools for py312-yaml-6.0.2nb2
	===> Extracting for py312-yaml-6.0.2nb2
	===> Patching for py312-yaml-6.0.2nb2
	=> Applying pkgsrc patches for py312-yaml-6.0.2nb2
	=> Verifying /p/netbsd/cvs/pkgsrc/textproc/py-yaml/patches/patch-setup.py
	=> Applying pkgsrc patch /p/netbsd/cvs/pkgsrc/textproc/py-yaml/patches/patch-setup.py
	Hmm...  Looks like a unified diff to me...
	The text leading up to this was:
	--------------------------
	|$NetBSD: patch-setup.py,v 1.3 2023/11/13 16:34:01 wiz Exp $
	|
	|Make sure cython is not found.
	|https://github.com/yaml/pyyaml/issues/601
	|
	|--- setup.py.orig      2023-07-17 23:39:53.000000000 +0000
	|+++ setup.py
	--------------------------
	Patching file setup.py using Plan A...
	Hunk #1 succeeded at 92 (offset 5 lines).
	done
	===> Creating toolchain wrappers for py312-yaml-6.0.2nb2
	===> Configuring for py312-yaml-6.0.2nb2
	=> Checking for portability problems in extracted files
	===> Building for py312-yaml-6.0.2nb2
	* Building wheel...
	running bdist_wheel
	running build
	running build_py
	creating build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/__init__.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/composer.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/constructor.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/cyaml.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/dumper.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/emitter.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/error.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/events.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/loader.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/nodes.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/parser.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/reader.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/representer.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/resolver.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/scanner.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/serializer.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	copying lib/yaml/tokens.py -> build/lib.netbsd-10.1-amd64-cpython-312/yaml
	creating build/lib.netbsd-10.1-amd64-cpython-312/_yaml
	copying lib/_yaml/__init__.py -> build/lib.netbsd-10.1-amd64-cpython-312/_yaml
	running build_ext
	No `pyyaml_build_config` setting found.
	building 'yaml._yaml' extension
	creating build/temp.netbsd-10.1-amd64-cpython-312/yaml
	gcc -O2 -I/usr/include -I/usr/pkg/include/python3.12 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/python3.12 -I/usr/pkg/include -fPIC -I/usr/pkg/include/python3.12 -c yaml/_yaml.c -o build/temp.netbsd-10.1-amd64-cpython-312/yaml/_yaml.o
	gcc: error: yaml/_yaml.c: No such file or directory
	Error compiling module, falling back to pure Python
	installing to build/bdist.netbsd-10.1-amd64/wheel
	running install
	running install_lib
	creating build/bdist.netbsd-10.1-amd64/wheel
	creating build/bdist.netbsd-10.1-amd64/wheel/yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/__init__.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/composer.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/constructor.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/cyaml.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/dumper.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/emitter.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/error.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/events.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/loader.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/nodes.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/parser.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/reader.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/representer.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/resolver.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/scanner.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/serializer.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/yaml/tokens.py -> build/bdist.netbsd-10.1-amd64/wheel/./yaml
	creating build/bdist.netbsd-10.1-amd64/wheel/_yaml
	copying build/lib.netbsd-10.1-amd64-cpython-312/_yaml/__init__.py -> build/bdist.netbsd-10.1-amd64/wheel/./_yaml
	running install_egg_info
	running egg_info
	writing lib/PyYAML.egg-info/PKG-INFO
	writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
	writing top-level names to lib/PyYAML.egg-info/top_level.txt
	[03/09/25 06:10:47] ERROR    listing git files failed - pretending there aren't any   git.py:26
	reading manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
	reading manifest template 'MANIFEST.in'
	warning: no files found matching 'README'
	adding license file 'LICENSE'
	writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
	Copying lib/PyYAML.egg-info to build/bdist.netbsd-10.1-amd64/wheel/./PyYAML-6.0.2-py3.12.egg-info
	running install_scripts
	creating build/bdist.netbsd-10.1-amd64/wheel/pyyaml-6.0.2.dist-info/WHEEL
	creating '/tmp/kim/pkgsrc/textproc/py-yaml/work/pyyaml-6.0.2/dist/.tmp-ospui9jl/pyyaml-6.0.2-cp312-cp312-netbsd_10_1_amd64.whl' and adding 'build/bdist.netbsd-10.1-amd64/wheel' to it
	adding '_yaml/__init__.py'
	adding 'yaml/__init__.py'
	adding 'yaml/composer.py'
	adding 'yaml/constructor.py'
	adding 'yaml/cyaml.py'
	adding 'yaml/dumper.py'
	adding 'yaml/emitter.py'
	adding 'yaml/error.py'
	adding 'yaml/events.py'
	adding 'yaml/loader.py'
	adding 'yaml/nodes.py'
	adding 'yaml/parser.py'
	adding 'yaml/reader.py'
	adding 'yaml/representer.py'
	adding 'yaml/resolver.py'
	adding 'yaml/scanner.py'
	adding 'yaml/serializer.py'
	adding 'yaml/tokens.py'
	adding 'pyyaml-6.0.2.dist-info/LICENSE'
	adding 'pyyaml-6.0.2.dist-info/METADATA'
	adding 'pyyaml-6.0.2.dist-info/WHEEL'
	adding 'pyyaml-6.0.2.dist-info/top_level.txt'
	adding 'pyyaml-6.0.2.dist-info/RECORD'
	removing build/bdist.netbsd-10.1-amd64/wheel
	Successfully built pyyaml-6.0.2-cp312-cp312-netbsd_10_1_amd64.whl


	: equinoxe[nb10-amd64]:textproc/py-yaml; make package
	===> Checking for vulnerabilities in py312-yaml-6.0.2nb2
	===> Installing for py312-yaml-6.0.2nb2
	=> Generating pre-install file lists
	=> Automatic manual page handling
	=> Generating post-install file lists
	pkg_create: can't stat `/tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/LICENSE'
	pkg_create: can't stat `/tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/METADATA'
	pkg_create: can't stat `/tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/RECORD'
	pkg_create: can't stat `/tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/WHEEL'
	pkg_create: can't stat `/tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/top_level.txt'
	=> Checking file-check results for py312-yaml-6.0.2nb2
	ERROR: ************************************************************
	ERROR: The following files are in the PLIST but not in /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg:
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/LICENSE
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/METADATA
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/RECORD
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/WHEEL
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/top_level.txt
	ERROR: ************************************************************
	ERROR: The following files are in /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg but not in the PLIST:
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/pyyaml-6.0.2.dist-info/LICENSE
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/pyyaml-6.0.2.dist-info/METADATA
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/pyyaml-6.0.2.dist-info/RECORD
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/pyyaml-6.0.2.dist-info/WHEEL
	ERROR:         /tmp/kim/pkgsrc/textproc/py-yaml/work/.destdir/usr/pkg/lib/python3.12/site-packages/pyyaml-6.0.2.dist-info/top_level.txt
	*** Error code 1

>Fix:

	Commenting out WHEEL_NAME in Makefile makes the binary package
	build succeed. However, since the last commit was really just
	adding WHEEL_NAME back in, I feel it is best to file a PR to
	resolve this.



Home | Main Index | Thread Index | Old Index