Opened 3 years ago
Closed 3 years ago
#64193 closed defect (invalid)
GTK3 won’t build on M1 MacBook because of Python 2.6 dependency
Reported by: | beowulff | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I’m trying to install gerbv.
One of the huge number of dependencies is gtk. Doing a sudo port install gtk3 results in the following error:
Error: Failed to fetch python26: python26 cannot be built for Apple Silicon
I already have python39 installed. Is there any way to get gtk to use that?
Change History (5)
comment:1 Changed 3 years ago by jmroot (Joshua Root)
comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:3 Changed 3 years ago by beowulff
port rdeps gtk3 says:
xz
libiconv
gperf
gettext
libtextstyle
ncurses
gettext-runtime gettext-tools-libs
gtk-doc
pkgconfig glib2
libxml2
icu zlib
meson
py39-setuptools
py-bootstrap-modules python39
bzip2 expat libedit libffi
expect
automake
autoconf
m4
tcl
dejagnu
openssl
openssl3
sqlite3 python_select python3_select
ninja
re2c
bison
bison-runtime
pcre
libxslt docbook-xml
xmlcatmgr docbook-xml-4.1.2
unzip docbook-xml-4.2
docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0
docbook-xsl-nons itstool
gawk py310-libxml2
python310
py39-anytree
py39-six
py39-pytest
py39-setuptools_scm
py39-packaging
py39-parsing py39-pretend
py39-tomli
py39-attrs
py39-hypothesis
py39-sortedcontainers
py39-zopeinterface
py39-zope-event py39-pip
pip_select
py39-iniconfig py39-pluggy
py39-py
py39-toml pytest_select
py39-nose
nosetests_select
py39-lxml py39-pygments
pygments_select
py39-mock
libtool
xattr
atk
gobject-introspection
autoconf-archive cairo
libpixman fontconfig
freetype
brotli
cmake
libcxx curl
libidn2
libunistring
perl5
perl5.28
db48 gdbm
readline
texinfo
help2man
perl5.30 p5.30-locale-gettext
libpsl zstd
lz4
curl-ca-bundle
libarchive
lzo2 libb2
libuv
libpng
ossp-uuid
xrender
xorg-libX11
xorg-xtrans xorg-xorgproto xorg-util-macros xorg-libXdmcp xorg-libXau xorg-libxcb
xorg-xcb-proto xorg-libpthread-stubs
xorg-libXext xorg-xcb-util
py39-mako
py39-beaker py39-markupsafe
py39-markdown
pango
fribidi harfbuzz
graphite2
py39-fonttools
fonttools_select py39-brotli py39-zopfli
py39-wheel
py39-python-install
py39-build
py39-pep517
py39-unicodedata2
Xft2
gdk-pixbuf2
shared-mime-info
xmlto
getopt coreutils
gmp
findutils fop grep gsed libpaper links
libevent
jasper
libjpeg-turbo
tiff
libepoxy
mesa
flex
lzip
gindent py27-libxml2
python27
openssl11 python2_select
xorg-libXdamage
xorg-libXfixes
xorg-libXi xorg-libXmu
xorg-libXt
xorg-libsm
xorg-libice
xorg-libXxf86vm
xorg-libXrandr xorg-libXcursor xorg-libXinerama xorg-libXcomposite at-spi2-atk
at-spi2-core
dbus xorg-libXtst
hicolor-icon-theme
port echo rdepends:python26 says:
gwee libhsplasma PCLauncher PlasmaClient PlasmaShop py-clnum py-psyco py-rpncalc py26-bdist_mpkg py26-clnum py26-gdbm py26-numeric py26-pil py26-pip py26-psyco py26-rpncalc py26-setuptools py26-tkinter sounddecompress sphinx3 zopeedit
comment:4 Changed 3 years ago by beowulff
This is what I get when I say sudo port install gtk3
---> Computing dependencies for gtk3
---> Cleaning gtk3
---> Scanning binaries for linking errors
---> Found 70 broken files, matching files to ports
Warning: No port py26-libxml2 found in the index; can't rebuild
Warning: No port ncursesw found in the index; can't rebuild
Warning: No port indent found in the index; can't rebuild
---> Found 12 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
python26 @2.6.4+darwin
groff @1.22.2
popt @1.15
xorg-libxkbfile @1.0.6
xorg-libxkbui @1.0.2
p5-locale-gettext @1.05
help2man @1.37.1
p5-xml-parser @2.36
pstoedit @3.45
gperf @3.0.4
p7zip @9.04
rarian @0.8.1
comment:5 Changed 3 years ago by jmroot (Joshua Root)
Resolution: | → invalid |
---|---|
Status: | new → closed |
So gtk3 installed successfully, and you already had python26 installed, and rev-upgrade has found that it and several other ports are broken and need to be rebuilt. That's not surprising given that it must have been brought over from another OS version that was able to build it. You need to follow the wiki:Migration instructions.
Very little actually depends on python26, and it doesn't seem to be a dependency of gtk3 on x86_64 systems at least. Could you please confirm what specifically is depending on python26, with e.g.
port rdeps gtk3
andport echo rdepends:python26
?