Bug 273019 - net/samba416 Checking for system installation of Python module dns not found
Summary: net/samba416 Checking for system installation of Python module dns not found
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-08 19:55 UTC by Jordan Ostreff
Modified: 2023-10-19 18:56 UTC (History)
4 users (show)

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


Attachments
build log and pkg info (443.97 KB, application/zip)
2023-08-08 19:55 UTC, Jordan Ostreff
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Ostreff 2023-08-08 19:55:53 UTC
Created attachment 243976 [details]
build log and pkg info

Port can't be build.
Comment 1 Jordan Ostreff 2023-08-08 21:53:07 UTC
I have also installed dns/py311-py3dns-4.0.0 package. So i'm totally confused what is missing ....
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-08 23:42:29 UTC
With what options did you build tevent, talloc and tdb?
And what build options set for samba?
Comment 3 Jordan Ostreff 2023-08-09 05:16:02 UTC
I have made make reconfigure of all mentioned ports, and rebuild them again.
The same with net/samba416.
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-09 17:06:34 UTC
(In reply to Jordan Ostreff from comment #3)
Can you show build options?

For example:
# cat /var/db/ports/databases_tdb/options 
# This file is auto-generated by 'make config'.
# Options for tdb-1.4.7,1
_OPTIONS_READ=tdb-1.4.7,1
_FILE_COMPLETE_OPTIONS_LIST=DEBUG MANPAGES PYTHON
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=MANPAGES
OPTIONS_FILE_SET+=PYTHON

# cat /var/db/ports/devel_tevent/options 
# This file is auto-generated by 'make config'.
# Options for tevent-0.13.0
_OPTIONS_READ=tevent-0.13.0
_FILE_COMPLETE_OPTIONS_LIST=DEBUG MANPAGES PYTHON
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=MANPAGES
OPTIONS_FILE_SET+=PYTHON

# cat /var/db/ports/devel_talloc/options 
# This file is auto-generated by 'make config'.
# Options for talloc-2.3.4
_OPTIONS_READ=talloc-2.3.4
_FILE_COMPLETE_OPTIONS_LIST=DEBUG MANPAGES PYTHON
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=MANPAGES
OPTIONS_FILE_SET+=PYTHON

# cat /var/db/ports/net_samba416/options 
# This file is auto-generated by 'make config'.
# Options for samba416-4.16.5
_OPTIONS_READ=samba416-4.16.5
_FILE_COMPLETE_OPTIONS_LIST=ADS AD_DC CLUSTER CUPS DOCS FAM GPGME LDAP MANDOC PROFILE PYTHON3 QUOTAS SPOTLIGHT SYSLOG UTMP GSSAPI_BUILTIN GSSAPI_MIT ZEROCONF_NONE AVAHI MDNSRESPONDER FRUIT GLUSTERFS
OPTIONS_FILE_SET+=ADS
OPTIONS_FILE_SET+=AD_DC
OPTIONS_FILE_UNSET+=CLUSTER
OPTIONS_FILE_SET+=CUPS
OPTIONS_FILE_UNSET+=DOCS
OPTIONS_FILE_SET+=FAM
OPTIONS_FILE_UNSET+=GPGME
OPTIONS_FILE_SET+=LDAP
OPTIONS_FILE_UNSET+=MANDOC
OPTIONS_FILE_UNSET+=PROFILE
OPTIONS_FILE_SET+=PYTHON3
OPTIONS_FILE_SET+=QUOTAS
OPTIONS_FILE_UNSET+=SPOTLIGHT
OPTIONS_FILE_SET+=SYSLOG
OPTIONS_FILE_SET+=UTMP
OPTIONS_FILE_SET+=GSSAPI_BUILTIN
OPTIONS_FILE_UNSET+=GSSAPI_MIT
OPTIONS_FILE_SET+=ZEROCONF_NONE
OPTIONS_FILE_UNSET+=AVAHI
OPTIONS_FILE_UNSET+=MDNSRESPONDER
OPTIONS_FILE_UNSET+=FRUIT
OPTIONS_FILE_UNSET+=GLUSTERFS
Comment 5 Jordan Ostreff 2023-08-09 22:04:40 UTC
Sure:

cat /var/db/ports/databases_tdb/options
# This file is auto-generated by 'make config'.
# Options for tdb-1.4.7,1
_OPTIONS_READ=tdb-1.4.7,1
_FILE_COMPLETE_OPTIONS_LIST=DEBUG MANPAGES PYTHON
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=MANPAGES
OPTIONS_FILE_SET+=PYTHON

cat /var/db/ports/devel_tevent/options
# This file is auto-generated by 'make config'.
# Options for tevent-0.13.0_1
_OPTIONS_READ=tevent-0.13.0_1
_FILE_COMPLETE_OPTIONS_LIST=DEBUG MANPAGES PYTHON
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=MANPAGES
OPTIONS_FILE_SET+=PYTHON

/var/db/ports/devel_talloc/options
# This file is auto-generated by 'make config'.
# Options for talloc-2.3.4
_OPTIONS_READ=talloc-2.3.4
_FILE_COMPLETE_OPTIONS_LIST=DEBUG MANPAGES PYTHON
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=MANPAGES
OPTIONS_FILE_SET+=PYTHON

cat /var/db/ports/net_samba416/options
# This file is auto-generated by 'make config'.
# Options for samba416-4.16.11
_OPTIONS_READ=samba416-4.16.11
_FILE_COMPLETE_OPTIONS_LIST=ADS AD_DC CLUSTER CUPS DOCS FAM GPGME LDAP MANDOC PROFILE PYTHON3 QUOTAS SPOTLIGHT SYSLOG UTMP GSSAPI_BUILTIN GSSAPI_MIT ZEROCONF_NONE AVAHI MDNSRESPONDER FRUIT GLUSTERFS
OPTIONS_FILE_SET+=ADS
OPTIONS_FILE_SET+=AD_DC
OPTIONS_FILE_UNSET+=CLUSTER
OPTIONS_FILE_UNSET+=CUPS
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_SET+=FAM
OPTIONS_FILE_UNSET+=GPGME
OPTIONS_FILE_SET+=LDAP
OPTIONS_FILE_UNSET+=MANDOC
OPTIONS_FILE_SET+=PROFILE
OPTIONS_FILE_SET+=PYTHON3
OPTIONS_FILE_SET+=QUOTAS
OPTIONS_FILE_UNSET+=SPOTLIGHT
OPTIONS_FILE_SET+=SYSLOG
OPTIONS_FILE_SET+=UTMP
OPTIONS_FILE_SET+=GSSAPI_BUILTIN
OPTIONS_FILE_UNSET+=GSSAPI_MIT
OPTIONS_FILE_UNSET+=ZEROCONF_NONE
OPTIONS_FILE_SET+=AVAHI
OPTIONS_FILE_UNSET+=MDNSRESPONDER
OPTIONS_FILE_SET+=FRUIT
OPTIONS_FILE_UNSET+=GLUSTERFS
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-09 23:04:19 UTC
I see you set python version to 3.11 - are you sure samba support python 3.11?
I'm use python 3.10 and samba build fine on 10 different hosts.
Comment 7 Jordan Ostreff 2023-08-10 08:06:38 UTC
I have migrated to python 3.11 almost 7 machines. 
One of them can build samba 4.16.11 and i've distributed builded package from it to all other which fail to build it.
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-10 13:56:15 UTC
Most probably you have broken environment.

Try to rebuild py311-dnspython-2.4.1,1.
Or all python related ports:
python-3.11_3,2
python3-3_3
python311-3.11.4
py311-*
Comment 9 O. Hartmann 2023-08-10 18:16:21 UTC
(In reply to Vladimir Druzenko from comment #8)

We face this exact error on recent CURRENT and recent 13-STABLE. On both OS versions, we already rebuilt net/samb416 via "portmaster -dfR" as well as we rebuilt all python3/python3.9 and py39-* ports as well as "portmaster -df py39-dns/py-dnspython". Summa summarum, over 600 ports has been rebuilt so far (several multiple times).

And another mystery: on CURRENT and 13-STABLE, the build of net/samba broke at the same time with the same error on multiple hosts - that is barely an indication for a single broken installation!
Comment 10 O. Hartmann 2023-08-10 18:18:47 UTC
net/samba416 is configured as shown below, devel/talloc, devel/tevent and databases/tdb are set to default (to assure having the right settings, I made a "make rmconfig" first on all related ports, net/samba416 included.

 # make showconfig
===> The following configuration options are available for samba416-4.16.11:
     ADS=on: Active Directory client(implies LDAP)
     AD_DC=on: Active Directory Domain Controller(implies PYTHON3)
     CLUSTER=off: Clustering support
     CUPS=on: CUPS printing system support
     DOCS=on: Build and/or install documentation
     FAM=on: File Alteration Monitor
     GPGME=off: GpgME support
     LDAP=on: LDAP client
     MANDOC=off: Build manpages from DOCBOOK templates
     PROFILE=on: Profiling data
     PYTHON3=on: Python 3.x bindings or support
     QUOTAS=on: Disk quota support
     SPOTLIGHT=off: Spotlight server-side search support
     SYSLOG=on: Syslog logging support
     UTMP=on: UTMP accounting
====> VFS modules
     FRUIT=on: MacOSX and TimeMachine support
     GLUSTERFS=off: GlusterFS support
====> GSSAPI Security API support: you have to select exactly one of them
     GSSAPI_BUILTIN=on: GSSAPI support via bundled Heimdal
     GSSAPI_MIT=off: GSSAPI support via security/krb5
====> Zero configuration networking: you have to select exactly one of them
     ZEROCONF_NONE=off: Zeroconf support is absent
     AVAHI=on: Zeroconf support via Avahi
     MDNSRESPONDER=off: Zeroconf support via mDNSResponder
===> Use 'make config' to modify these settings
Comment 11 Jekyll Chen 2023-08-14 01:03:08 UTC
(In reply to Jordan Ostreff from comment #7)
Disabling AD_DC results in successful build in my environment.
Would you please confirm on your machine which can build samba?
Comment 12 Jordan Ostreff 2023-08-14 08:09:49 UTC
(In reply to Jekyll Chen from comment #11)
Here is the result from the machine which build samba fine.

joker:/usr/ports/net/samba416 # make showconfig
===> The following configuration options are available for samba416-4.16.11:
     ADS=on: Active Directory client(implies LDAP)
     AD_DC=on: Active Directory Domain Controller(implies PYTHON3)
     CLUSTER=off: Clustering support
     CUPS=off: CUPS printing system support
     DOCS=on: Build and/or install documentation
     FAM=on: File Alteration Monitor
     GPGME=off: GpgME support
     LDAP=on: LDAP client
     MANDOC=off: Build manpages from DOCBOOK templates
     PROFILE=on: Profiling data
     PYTHON3=on: Python 3.x bindings or support
     QUOTAS=on: Disk quota support
     SPOTLIGHT=off: Spotlight server-side search support
     SYSLOG=on: Syslog logging support
     UTMP=on: UTMP accounting
====> VFS modules
     FRUIT=on: MacOSX and TimeMachine support
     GLUSTERFS=off: GlusterFS support
====> GSSAPI Security API support: you have to select exactly one of them
     GSSAPI_BUILTIN=on: GSSAPI support via bundled Heimdal
     GSSAPI_MIT=off: GSSAPI support via security/krb5
====> Zero configuration networking: you have to select exactly one of them
     ZEROCONF_NONE=off: Zeroconf support is absent
     AVAHI=on: Zeroconf support via Avahi
     MDNSRESPONDER=off: Zeroconf support via mDNSResponder
===> Use 'make config' to modify these settings