#66417 closed defect (wontfix)

python310 @3.10.9 seems to install static libraries, but they are faulty – why at all?

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: upstream Cc: jmr@…
Port: python310

Description

configure has the option --without-static-libpython. Leaving it out results in:

pete 228 /\ port contents python310 | ggrep libpython
  /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib
  /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.a
  /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.dylib
pete 229 /\ ls -l `port contents python310 | ggrep libpython`
lrwxr-xr-x   1 root  wheel   9  8 Dez 09:29 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib -> ../Python
lrwxr-xr-x   1 root  wheel  15  8 Dez 09:29 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.a -> ../../../Python
lrwxr-xr-x   1 root  wheel  15  8 Dez 09:29 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.dylib -> ../../../Python
pete 230 /\ ls -Lil `port contents python310 | ggrep libpython`
96769351 -rwxr-xr-x   1 root  wheel  3577140  8 Dez 09:15 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib
96769351 -rwxr-xr-x   1 root  wheel  3577140  8 Dez 09:15 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.a
96769351 -rwxr-xr-x   1 root  wheel  3577140  8 Dez 09:15 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.dylib
pete 231 /\ find /opt/local -type f -inum 96769351 -ls
96769351 6992 -rwxr-xr-x    1 root     wheel     3577140 8 Dez 09:15: /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Python
pete 232 /\ file /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Python
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/Python: Mach-O dynamically linked shared library ppc

The SDKs do not contain many, /opt/local/lib has 266 of them. And in other places many, many more. Are they necessary?

Change History (5)

comment:1 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

The originally built static library is different:

root 281 /\ gfind /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.9 \( -name "libpython*" -o -name "*.a" \) -ls
 96783484     68 -rwxr-xr-x   1 macports admin       65727 Dez  6 19:31 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.9/Tools/gdb/libpython.py
 96792229  15264 -rw-r--r--   1 macports admin    15626416 Dez  8 10:14 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.9/libpython3.10.a
root 282 /\ file /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.9/libpython3.10.a
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.9/libpython3.10.a: current ar archive

comment:2 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

The same on macOS High Sierra, Version 10.13.6.

comment:3 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

Keywords: highsierra added

comment:4 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

On intel Monterey it does not seem to make much of difference whether Python 3.10 is configured --without-static-libpython or without this option, as default. This situation has

532365306        8 -rwxr-xr-x    1 root             wheel               49400  7 Dez 03:06 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
532350588        0 lrwxr-xr-x    1 root             wheel                   9  7 Dez 03:06 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib -> ../Python
532353525        0 lrwxr-xr-x    1 root             wheel                  15  7 Dez 03:06 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.a -> ../../../Python
532353526        0 lrwxr-xr-x    1 root             wheel                  15  7 Dez 03:06 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.dylib -> ../../../Python
532350580     4104 -rwxr-xr-x    1 root             wheel             4188688  7 Dez 03:05 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Python
531241552        0 lrwxr-xr-x    1 root             wheel                  67  1 Dez 12:16 /opt/local/Library/Frameworks/Python.framework/Python -> /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Python

and the other has 20,040 bytes less:

532349776        8 -rwxr-xr-x    1 root             wheel               49400  8 Dez 20:40 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
532335049        0 lrwxr-xr-x    1 root             wheel                   9  8 Dez 20:40 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib -> ../Python
532337976        0 lrwxr-xr-x    1 root             wheel                  15  8 Dez 20:40 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.a -> ../../../Python
532337977        0 lrwxr-xr-x    1 root             wheel                  15  8 Dez 20:40 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.dylib -> ../../../Python
532335041     4104 -rwxr-xr-x    1 root             wheel             4168648  8 Dez 20:36 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Python
531241552        0 lrwxr-xr-x    1 root             wheel                  67  1 Dez 12:16 /opt/local/Library/Frameworks/Python.framework/Python -> /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Python

It's just strange (to me) what Python 3.10 does. IMO the ticket can be closed as invalid. (port test python310 is OK.)

comment:5 Changed 17 months ago by jmroot (Joshua Root)

Keywords: upstream added; tiger highsierra monterey removed
Resolution: wontfix
Status: newclosed

I certainly didn't change this in the port, so questions and concerns about it are probably best taken upstream.

Note: See TracTickets for help on using tickets.