Bug 272932 - dns/py-dnspython: does not install any Python files
Summary: dns/py-dnspython: does not install any Python files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-04 08:12 UTC by Torsten Schneider
Modified: 2023-10-27 17:42 UTC (History)
5 users (show)

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


Attachments
Patch Makefile (457 bytes, patch)
2023-08-17 07:19 UTC, Henri Hennebert
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Schneider 2023-08-04 08:12:33 UTC
dns/py-dnspython does not install anything at all except license information, examples, and README files - the module itself is missing. Even if every option in make config is checked, the options do not affect the behaviour.

Ports depending on this port complain about the missing dns module.

root@host# pkg info -l py39-dnspython-2.4.1,1
py39-dnspython-2.4.1,1:
        /usr/local/lib/python3.9/site-packages/dnspython-2.4.1.dist-info/LICENSE
        /usr/local/lib/python3.9/site-packages/dnspython-2.4.1.dist-info/METADATA
        /usr/local/lib/python3.9/site-packages/dnspython-2.4.1.dist-info/RECORD
        /usr/local/lib/python3.9/site-packages/dnspython-2.4.1.dist-info/WHEEL
        /usr/local/share/examples/py39-dnspython/ddns.py
        /usr/local/share/examples/py39-dnspython/e164.py
        /usr/local/share/examples/py39-dnspython/mx.py
        /usr/local/share/examples/py39-dnspython/name.py
        /usr/local/share/examples/py39-dnspython/reverse.py
        /usr/local/share/examples/py39-dnspython/reverse_name.py
        /usr/local/share/examples/py39-dnspython/xfr.py
        /usr/local/share/examples/py39-dnspython/zonediff.py
        /usr/local/share/licenses/py39-dnspython-2.4.1,1/ISCL
        /usr/local/share/licenses/py39-dnspython-2.4.1,1/LICENSE
        /usr/local/share/licenses/py39-dnspython-2.4.1,1/catalog.mk
Comment 1 jSML4ThWwBID69YC 2023-08-05 02:25:29 UTC
Ahh! This is why iocage stopped working.
Comment 2 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-08-05 09:16:17 UTC
Are you using ports or packages? Which FreeBSD version are you using? I cannot reproduce this on clean environment.
Comment 3 Torsten Schneider 2023-08-05 10:16:07 UTC
(In reply to Muhammad Moinur Rahman from comment #2)
FreeBSD server 13.2-STABLE FreeBSD 13.2-STABLE stable/13-n255938-fec383bb5385 MAILIN amd64

I'm using the port.
Comment 4 vometia 2023-08-08 14:36:24 UTC
I'm also having the same problem (dependency of pyspf in my case) and have been trying to identify the problem without success.  I've had to revert to 2.3.0,1 which still installs correctly.
Comment 5 Dmitry Petrov 2023-08-10 00:58:45 UTC
Looks like 2.4.0 is fine, 2.4.1 is not.

Also, the 2.4.1 tar.gz file size at https://github.com/rthalley/dnspython/archive/refs/tags/v2.4.1.tar.gz is 357296 bytes, but the one in distinfo is 327929.

It is possible that the archive was since repacked/fixed, and this explains the issue.

In any case, there is also a just released version 2.4.2.
Comment 6 Torsten Schneider 2023-08-10 19:45:21 UTC
(In reply to Dmitry Petrov from comment #5)
2.4.2 doesn't work either:

root@host# pkg info -l py39-dnspython-2.4.2,1
py39-dnspython-2.4.2,1:
        /usr/local/lib/python3.9/site-packages/dnspython-2.4.2.dist-info/LICENSE
        /usr/local/lib/python3.9/site-packages/dnspython-2.4.2.dist-info/METADAT  A
        /usr/local/lib/python3.9/site-packages/dnspython-2.4.2.dist-info/RECORD
        /usr/local/lib/python3.9/site-packages/dnspython-2.4.2.dist-info/WHEEL
        /usr/local/share/examples/py39-dnspython/ddns.py
        /usr/local/share/examples/py39-dnspython/e164.py
        /usr/local/share/examples/py39-dnspython/mx.py
        /usr/local/share/examples/py39-dnspython/name.py
        /usr/local/share/examples/py39-dnspython/reverse.py
        /usr/local/share/examples/py39-dnspython/reverse_name.py
        /usr/local/share/examples/py39-dnspython/xfr.py
        /usr/local/share/examples/py39-dnspython/zonediff.py
        /usr/local/share/licenses/py39-dnspython-2.4.2,1/ISCL
        /usr/local/share/licenses/py39-dnspython-2.4.2,1/LICENSE
        /usr/local/share/licenses/py39-dnspython-2.4.2,1/catalog.mk
Comment 7 vometia 2023-08-11 02:56:38 UTC
(In reply to Torsten Schneider from comment #6)

Same here: every version after 2.3.0,1 won't install any Python files other than the examples.  I've tried numerous combinations of config options in case it's that but always the same result.
Comment 8 Dmitry Petrov 2023-08-11 20:07:48 UTC
It seems to only happen when it is installed from the port. Installing using "pkg install" seems to be okay.
Comment 9 Peter Blok 2023-08-16 12:04:12 UTC
I have the same problem. pkg install works, install from ports does not. How and where in the Makefiles does a python module get installed?
Comment 10 Henri Hennebert 2023-08-17 07:19:11 UTC
Created attachment 244166 [details]
Patch Makefile

I blindly take the patch from bug #270549 at it solve this problem.
Comment 11 Peter Blok 2023-08-17 11:57:56 UTC
That patch fixed it for me. Am I correct to understand that when git is present the install of the modules follows a different flow compared to when git is not installed?

That would explain why on a jail in the same box, the install works fine.
Comment 12 commit-hook freebsd_committer freebsd_triage 2023-10-27 17:40:59 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=18aa04f15f9552c9ac84cdd67ec6b594ec72fb75

commit 18aa04f15f9552c9ac84cdd67ec6b594ec72fb75
Author:     Torsten Schneider <fbsd-bug@tschneider.org>
AuthorDate: 2023-10-27 17:30:05 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-27 17:40:42 +0000

    dns/py-dnspython: Fix installation

    - When git is installed and ports tree is used files are not properly
      installed. [1]
    - TRIO_DESC is very short and do not explain the real reason of the OPTION
      hence update the DESC in details. [2]
    - There was a typo in the IDNA_DESC which is fixed. [3]

    PR:             272932 [1], 274416 [2], 272624 [3]
    Reported by:    fbsd-bug@tschneider.org [1],
                    dewayne@heuristicsystems.com.au [2]

 dns/py-dnspython/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)