Bug 270153

Summary: sysutils/syslog-ng: 4.1.1 fails to stage with PYTHON=ON: setuptools missing
Product: Ports & Packages Reporter: Christian Ullrich <chris>
Component: Individual Port(s)Assignee: Cy Schubert <cy>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (cy)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch none

Description Christian Ullrich 2023-03-12 11:44:49 UTC
Created attachment 240790 [details]
Patch

When option PYTHON is on, syslog-ng 4.1.1 fails in stage:

[00:01:00] (cd ./modules/python-modules && /usr/local/bin/python3.11 setup.py \
[00:01:00] 	build --build-base="/wrkdirs/usr/ports/sysutils/syslog-ng/work/syslog-ng-4.1.1/modules/python-modules/build" \
[00:01:00] 	egg_info --egg-base="/wrkdirs/usr/ports/sysutils/syslog-ng/work/syslog-ng-4.1.1/modules/python-modules" \
[00:01:00] 	install --record=/wrkdirs/usr/ports/sysutils/syslog-ng/work/syslog-ng-4.1.1/modules/python-modules/install-manifest.txt --root="/wrkdirs/usr/ports/sysutils/syslog-ng/work/stage" --install-lib="/usr/local/lib/syslog-ng/python")
[00:01:00] Traceback (most recent call last):
[00:01:00]   File "/wrkdirs/usr/ports/sysutils/syslog-ng/work/syslog-ng-4.1.1/modules/python-modules/setup.py", line 24, in <module>
[00:01:00]     from setuptools import setup
[00:01:00] ModuleNotFoundError: No module named 'setuptools'

This is because in 4.1.1 setuptools is required for the Python components.

The attached patch fixes this. I think it is correct not to make the port flavored ecause it does not install anything into the Python site-packages directory.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-03-13 15:10:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=20f895af04b0e2ab425dfc376fd6ffdd27841989

commit 20f895af04b0e2ab425dfc376fd6ffdd27841989
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-03-13 15:04:14 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-03-13 15:08:38 +0000

    sysutils/syslog-ng: Fix PYTHON=ON build

    PYTHON=ON requires devel/py-setuptools to build properly.

    PR:             270153
    Submitted by:   Christian Ulrich <chris _AT_ chrullrich.net>
    Reviewed by:    Peter Czanik <peter.czanik _AT_ balabit.com>

 sysutils/syslog-ng/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2023-03-13 15:11:09 UTC
Committed. Thanks for the patch.