pkgsrc-Users archive

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

Re: build failure for devel/scons



I must confess, i am a little bit confused.

Am 09.01.2022 um 02:09 schrieb Greg Troxel <gdt%lexort.com@localhost>:


Thomas Klausner <wiz%NetBSD.org@localhost> writes:

On Sat, Jan 08, 2022 at 10:24:54PM +0100, oskar%fessel.org@localhost wrote:
Is this related - fresh build on pkgsrc from yesterday?

The issue is that when setuptools is installed, a newer version of
distutils is used than the one coming with python, and the PLIST
doesn't match.

So either

1. deinstall py*setuptools in your build environment (or just build in
a sandbox where only the necessary dependencies are installed)

That works just fine, but this is not a viable solution, especially in buld builds where somewhere along the path setuptools do get installed into the build environment.

2. or convert the package to require py-setuptools and fix the PLIST
for that.

Usually, including egg.mk instead of distutils.mk or extension.mk does
that,

This way i did try - does that mean the warnings about redefinitions should be ignored?

make[1]: "/usr/pkgsrc/lang/python/extension.mk" line 35: warning: duplicate script for target "do-build" ignored
make[1]: "/usr/pkgsrc/lang/python/extension.mk" line 181: warning: using previous script for "do-build" defined here
make[1]: "/usr/pkgsrc/lang/python/extension.mk" line 39: warning: duplicate script for target "do-install" ignored
make[1]: "/usr/pkgsrc/lang/python/extension.mk" line 185: warning: using previous script for "do-install" defined here

Nevertheless, at least with or without installed setuptools the package builds (and runs) just fine after applying the following patchset:

netbsd-hell-2# cvs diff
? work
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/xentools415/Makefile,v
retrieving revision 1.8
diff -r1.8 Makefile
239c239
< .include "../../lang/python/extension.mk"
---
.include "../../lang/python/egg.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/xentools415/PLIST,v
retrieving revision 1.2
diff -r1.2 PLIST
10,11c10,17
< ${PYSITELIB}/pygrub-0.6-py${PYVERSSUFFIX}.egg-info
< ${PYSITELIB}/xen-3.0-py${PYVERSSUFFIX}.egg-info
---
${PYSITELIB}/pygrub-0.6-py${PYVERSSUFFIX}.egg-info/PKG-INFO
${PYSITELIB}/pygrub-0.6-py${PYVERSSUFFIX}.egg-info/SOURCES.txt
${PYSITELIB}/pygrub-0.6-py${PYVERSSUFFIX}.egg-info/dependency_links.txt
${PYSITELIB}/pygrub-0.6-py${PYVERSSUFFIX}.egg-info/top_level.txt
${PYSITELIB}/xen-3.0-py${PYVERSSUFFIX}.egg-info/PKG-INFO
${PYSITELIB}/xen-3.0-py${PYVERSSUFFIX}.egg-info/SOURCES.txt
${PYSITELIB}/xen-3.0-py${PYVERSSUFFIX}.egg-info/dependency_links.txt
${PYSITELIB}/xen-3.0-py${PYVERSSUFFIX}.egg-info/top_level.txt
cvs diff: Diffing files
cvs diff: Diffing patches

Cheers
Oskar

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Home | Main Index | Thread Index | Old Index