Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2019 01:40:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 237952] mail/notmuch: port still has build dependency python27 (transitive, via devel/talloc)
Message-ID:  <bug-237952-7788-Mn60lUH56X@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237952-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237952-7788@https.bugs.freebsd.org/bugzilla/>

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

Kubilay Kocak <koobs@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|mail/notmuch: port still    |mail/notmuch: port still
                   |has build dependency        |has build dependency
                   |python27                    |python27 (transitive, via
                   |                            |devel/talloc)
           Assignee|ports-bugs@FreeBSD.org      |koobs@FreeBSD.org
         Resolution|---                         |FIXED
           Keywords|needs-qa                    |
           See Also|                            |https://bugzilla.samba.org/
                   |                            |show_bug.cgi?id=3D13504
             Status|Open                        |Closed
              Flags|                            |maintainer-feedback?(timur@
                   |                            |FreeBSD.org)

--- Comment #5 from Kubilay Kocak <koobs@FreeBSD.org> ---
Fixing the exception syntax throughout the bundled waf results in further
errors:

os.chmod:

File "./buildtools/wafsamba/wafsamba.py", line 801
    os.chmod(installed_location, 0755)
                                    ^
SyntaxError: invalid token

and after fixing that:

NameError: name 'xrange' is not defined (function removed from Python 3)

I stopped my 'quick fix investigation' at this point.

Suffice it to say:

1) devel/talloc uses :2.7 because the bundled waf bundled is (very) old,
pre-Python 3 support, and only supports 2.x.

The options from here are, in no specific order:

a) Port/fix the bundled waf script to work with python 3.x

b) Ask/get talloc upstream to upgrade their bundled waf version

This may already be occurring:=20

https://bugzilla.samba.org/show_bug.cgi?id=3D13504

c) In the meantime, get devel/talloc port to expose a PYTHON option that is
disabled by default (might impact other samba ports?). This may be an
incomplete solution, and still has a *build* dependency on Python 2.7, but
removes the *runtime* requirement for it.

d) Investigate/Get notmuch to not use talloc. I don't know if its compulsor=
y,
or an optional/swappable backend

IMO,=20

(a) is too much (and duplicate) work, and has a high QA and maintenance
overhead.
(b) is worth adding your support to.
(c) is worth exploring with samba port maintainer (not as a bug), as a back=
up
for, and in the meantime to (b)
(d) is worth investigating

Once we have the answers to (c) and (d), we can consider resolution for this
issue. If they bear no fruit, this will likely need to be closed "Not A Bug=
",
"Works As Intended" or "Not Accepted" as necessary

Either way I'm happy to be the coordindator on resolution for this

--=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-237952-7788-Mn60lUH56X>