Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Apr 2019 21:58:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 237086] irc/znc Build fails with:make[8]: stopped in /usr/ports/devel/py-enum34
Message-ID:  <bug-237086-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237086

            Bug ID: 237086
           Summary: irc/znc Build fails with:make[8]: stopped in
                    /usr/ports/devel/py-enum34
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: nightrecon@gmail.com
                CC: bofh@freebsd.org, dbaio@freebsd.org
                CC: bofh@freebsd.org, dbaio@freebsd.org

Created attachment 203455
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D203455&action=
=3Dedit
znc Makefile modification

All work here was done in a 12-Release VM clean install:

FreeBSD freebsd.test.zip 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC=
=20
amd64

Make.conf only contains BATCH=3D yes, ports tree updated prior to each
test run, and pkg info to trigger pkg install and verify it's there. Each t=
est
run was done using a VM snapshot of this base install.

I also tried disabling the Python option, then both the Python and Docs
option in the znc make config and this made no difference; the python
dependencies are being pulled in by other depends.

[...]
=3D=3D=3D>   Registering installation for py27-asn1crypto-0.22.0 as automat=
ic
Installing py27-asn1crypto-0.22.0...
=3D=3D=3D>   py27-cryptography-2.6.1 depends on package: py27-asn1crypto>=
=3D0.21.0 -
found
=3D=3D=3D>   Returning to build of py27-cryptography-2.6.1
=3D=3D=3D>   py27-cryptography-2.6.1 depends on package: py27-cffi>=3D1.8 -=
 found
=3D=3D=3D>   py27-cryptography-2.6.1 depends on package: py27-enum34>0 - no=
t found
=3D=3D=3D>  py27-enum34-1.1.6 needs Python 3.3 at most, but 3.6 was specifi=
ed.
*** Error code 1

Stop.
make[8]: stopped in /usr/ports/devel/py-enum34
*** Error code 1

Stop.
make[7]: stopped in /usr/ports/security/py-cryptography
*** Error code 1

Initially traced to the security/py-cryptography port Makefile here:
[...]
${PYTHON_PKGNAMEPREFIX}cffi>=3D1.8:devel/py-cffi@${PY_FLAVOR} \
${PY_ENUM34} \
${PY_IPADDRESS} \
[...]

Tried replacing the above 2 lines with this:

${PYTHON_PKGNAMEPREFIX}enum34>=3D1.1.6:devel/py-enum34@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ipaddress>=3D1.0.22:net/py-ipaddress@${PY_FLAVOR} \

This makes no difference either way. So I looked at Mk/bsd.default-versions=
.mk:

[...]
# Possible values: 2.7, 3.5, 3.6, 3.7
PYTHON_DEFAULT?=3D        2.7
# Possible values: 2.7
PYTHON2_DEFAULT?=3D       2.7
# Possible values: 3.5, 3.6, 3.7
PYTHON3_DEFAULT?=3D       3.6
[...]

As well as Mk/Uses/python.mk and noticed there is no 3.3 in either.=20

Noticed this port in the web search shows a dependency for 2.7 and 3.7 and
was confused as to why it would depend on 3.7 at all:

py27-enum34-1.1.6
    Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7

Same for the following with 2.7 and 3.6 (Was looking for where the 3.6 was
coming from in the initial build failure).

py27-ipaddress-1.0.22
    Port of Python 3.3+ ipaddress module to 2.7

Checked upstream on both for newer release, but these are the current ones.=
=20=20=20=20

So back to irc/znc and when I hardcoded:

USES=3D   compiler:c++11-lib cpe cmake:run iconv pathfix pkgconfig python:3=
.5+

to

USES=3D   compiler:c++11-lib cpe cmake:run iconv pathfix pkgconfig python:2=
.7

the problem was gone and znc would now build and install without error. Upo=
n=20
further testing it became apparent all that was necessary was this modifica=
tion
to the irc/znc port Makefile:

USES=3D           compiler:c++11-lib cpe cmake:run iconv pathfix pkgconfig =
python

USE_PYTHON=3D flavors

The aforementioned changes to the security/py-cryptography make no differen=
ce
either way. The included diff to the irc/znc Makefile is all that is needed.

I am just a user and not a developer or programmer, so this should be exami=
ned
closely by devs who know the ports build system well (no ripple out to crea=
te
new problems somewhere else so to speak). I am aware of several other PRs
currently being worked that could have interplay.

This is my first attempt at a PR, so critique and advice on how I could do =
it=20
better are welcome, and notes will be taken.

Thanks!

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237086-7788>