<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Bitstream Vera Sans Mono";
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
font-size:10.0pt;
font-family:"Bitstream Vera Sans Mono";}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Bitstream Vera Sans Mono";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="font-family:"Courier New""></span>On 7/12/21, 8:34 PM, "Ryan Schmidt" <ryandesign@macports.org> wrote:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> On Jul 12, 2021, at 10:40, Langer, Stephen A. (Fed) wrote:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > Hi --<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > Since upgrading to Big Sur and reinstalling all ports, I can't run gtk3 with either python37 or python38. Running this:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > % python<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> >>>> import gi<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> >>>> gi.require_version("Gtk", "3.0")<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> >>>> from gi.repository import Gtk<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > Leads to this:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > ** (process:3291): WARNING **: 11:18:57.866: Failed to load shared library './gdk-pixbuf/libgdk_pixbuf-2.0.0.dylib' referenced by the typelib: dlopen(./gdk-pixbuf/libgdk_pixbuf-2.0.0.dylib, 9): image not
found<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > using either python27 or python38. The gdk-pixbuf2 port is installed.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > I have two MacPorts installations, one for the default variants and one that uses quartz instead of x11, so both are built from source and use a non-standard installation prefix. This didn’t cause a problem
before the Big Sur upgrade. Both have the same problem now.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > Can someone tell me if this problem exists on a normal MacPorts installation? Am I doing something wrong? I've tried the fixes suggested in https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrac.macports.org%2Fticket%2F61699&data=04%7C01%7Cstephen.langer%40nist.gov%7C4dca606d006f4e75dad208d945960583%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637617332906884800%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2B9RNpGISzc4bbqR7MixWiP5MsPAbLMlOcC6Mb%2BPcHNc%3D&reserved=0.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> > I don't know for sure if the problem is due to the Big Sur upgrade.
<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> You didn't say whether you were on Intel or Apple Silicon so I downloaded both<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpackages.macports.org%2Fgdk-pixbuf2%2Fgdk-pixbuf2-2.42.2_2%252Bx11.darwin_20.x86_64.tbz2&data=04%7C01%7Cstephen.langer%40nist.gov%7C4dca606d006f4e75dad208d945960583%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637617332906884800%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NpfVAyOtQI0MdQXTml5Jfx1IB%2BuhmRqJgeO64fLAMHw%3D&reserved=0<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> and<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpackages.macports.org%2Fgdk-pixbuf2%2Fgdk-pixbuf2-2.42.2_2%252Bx11.darwin_20.arm64.tbz2&data=04%7C01%7Cstephen.langer%40nist.gov%7C4dca606d006f4e75dad208d945960583%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637617332906884800%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Q1y0oU4sMgjr8p62Ny%2BM9UinouOsepTeHm4WY2CEGCU%3D&reserved=0<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> and extracted the contents. In both of those, the files opt/local/share/gir-1.0/GdkPixbuf-2.0.gir and opt/local/share/gir-1.0/GdkPixdata-2.0.gir have the correct (absolute path) library reference:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> shared-library="/opt/local/lib/libgdk_pixbuf-2.0.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> which is as I would have expected since gobject-introspection and gdk-pixbuf2 (and atk) were rev-bumped 6 months ago to fix this problem (https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrac.macports.org%2Fticket%2F61699%23comment%3A19&data=04%7C01%7Cstephen.langer%40nist.gov%7C4dca606d006f4e75dad208d945960583%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637617332906884800%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Z6dOvDfUwZ%2F6Q0%2FlL6tPKGn%2FIJUezGdai7ujzlUomv4%3D&reserved=0).
Since you use nonstandard MacPorts prefixes you won't have received those archives but will have built from source, but we would expect the result to be comparable.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> Can you show us the output of this command on your system (from https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrac.macports.org%2Fticket%2F61699%23comment%3A14&data=04%7C01%7Cstephen.langer%40nist.gov%7C4dca606d006f4e75dad208d945960583%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637617332906884800%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=FNXwYlzyHdFKuSf6dF63DEdFkZwzB7I101oQNswQIJY%3D&reserved=0):<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> grep "shared-library" /opt/local/share/gir-1.0/*.gir | grep -v /opt/local/lib<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> (replacing both occurrences of /opt/local with whatever your MacPorts prefix is).<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Here is the output:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">iolanthe 505>> grep "shared-library" /opt/local/stow/ports-quartz/share/gir-1.0/*.gir | grep -v /opt/local/stow/ports-quartz/lib<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/AppStreamGlib-1.0.gir: shared-library="./libappstream-glib/libappstream-glib.8.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/Atk-1.0.gir: shared-library="./atk/libatk-1.0.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/Atspi-2.0.gir: shared-library="./atspi/libatspi.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/Babl-0.1.gir: shared-library="./babl/libbabl-0.1.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/GDesktopEnums-3.0.gir: shared-library=""<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/GExiv2-0.10.gir: shared-library="./gexiv2/libgexiv2.2.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/GdkPixbuf-2.0.gir: shared-library="./gdk-pixbuf/libgdk_pixbuf-2.0.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/GdkPixdata-2.0.gir: shared-library="./gdk-pixbuf/libgdk_pixbuf-2.0.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/Gegl-0.4.gir: shared-library="./gegl/libgegl-0.4.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/GtkSource-4.gir: shared-library="./gtksourceview/libgtksourceview-4.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/Notify-0.7.gir: shared-library="./libnotify/libnotify.4.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/Peas-1.0.gir: shared-library="./libpeas/libpeas-1.0.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/PeasGtk-1.0.gir: shared-library="./libpeas-gtk/libpeas-gtk-1.0.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/Soup-2.4.gir: shared-library="./libsoup/libsoup-2.4.1.dylib"<o:p></o:p></p>
<p class="MsoPlainText">/opt/local/stow/ports-quartz/share/gir-1.0/SoupGNOME-2.4.gir: shared-library="./libsoup/libsoup-gnome-2.4.1.dylib"<o:p></o:p></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="color:black">I should have said I'm on Intel.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="color:black">To be more specific about what I'm doing, the two installation prefixes are /opt/local/stow/ports-quartz and /opt/local/stow/ports/-x11. When building macports, I also use --with-applications-dir=/Applications/stow/ports-quartz
or --with-applications-dir=/Applications/stow/ports-x11. To switch from one to the other, I have a script that unstows one and stows the other (using the stow port). The only place where that's not practical is for startup items, so I add "startupitem_install
no" to macports.conf in the quartz directory.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="color:black">Thanks again.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="color:black">-- Steve<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
</div>
</body>
</html>