pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Python 3.6 retirement



Hi,
So
@Adam
I sent you the files you requested to your personal email (outside mailing
list)

@Jonathan :
I put the flags in my mk.conf. Unfortunately it changed nothing.


@Chavdar
Good thing to see Python 3.10 working on Solaris 10 x86_64. However I've
seens cases where something works on x86_64  but not on sparc64. We'll have
to keep that in mind.

On Wed, Oct 13, 2021 at 3:46 PM Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:

> With the (obvious, and obviously wrong this way) patch
> ...
>
> ---
> /export/home/tmp/lang/python310/work/Python-3.10.0/Modules/socketmodule.c.ORIG
>      Wed Oct 13 20:28:22 2021
> +++
> /export/home/tmp/lang/python310/work/Python-3.10.0/Modules/socketmodule.c
>   Wed Oct 13 20:28:43 2021
> @@ -5440,10 +5440,7 @@
>      Py_buffer buf;
>      int res, flag = 0;
>
> -#ifdef _AIX
> -/* issue #18259, not declared in any useful header file */
>  extern int sethostname(const char *, size_t);
> -#endif
>
>      if (!PyArg_ParseTuple(args, "S:sethostname", &hnobj)) {
>          PyErr_Clear();
>
> ...
>
> python3.10 builds and works under Solaris10 update 11 as downloaded
> today from Oracle. The compiler in use was gcc5 from OpenCSW. On the
> way of getting functional bootstrap I had to butcher a few other
> packages (e.g. libuuid lacking errx - just took them off for now).
>
> Anyway:
>
> ➜  ~ uname -a
> SunOS s10u11 5.10 Generic_147148-26 i86pc i386 i86pc
> ➜  ~ python3.10
> Python 3.10.0 (default, Oct 13 2021, 20:13:42) [GCC 5.5.0] on sunos5
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> print(sys.version)
> 3.10.0 (default, Oct 13 2021, 20:13:42) [GCC 5.5.0]
>
> _crypt module doesn't build. I had to 'bmake print-PLIST > PLIST &&
> bmake repackage' because of this and two other modules with fake in
> their names - built but not importable.
>
> So there is some work to be done, but it is certainly better than
> saying that only 3.6 is working under Solaris 10.
>
>
> Chavdar
>
>
> On Wed, 13 Oct 2021 at 09:46, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> >
> > * On 2021-10-13 at 06:19 BST, Julien Savard wrote:
> >
> >
> >/var/tmp/pkgbuild/lang/python39/work/Python-3.9.7/Modules/socketmodule.c:5514:15:
> > >error: implicit declaration of function 'sethostname'; did you mean
> > >'gethostname'? [-Werror=implicit-function-declaration]
> >
> > This is the important bit, the rest is just noise.
> >
> > The interesting bit is that this code is only included if
> > HAVE_SETHOSTNAME is declared, yet your compiler is saying it can't be
> > found.  What's probably happening is that configure is using flags that
> > enable the symbol visibility, but the build of the module itself is not


Home | Main Index | Thread Index | Old Index