<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:Calibri;
panose-1:2 15 5 2 2 2 4 3 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.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
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";}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">On 7/12/21, 9:52 PM, "macports-users on behalf of Langer, Stephen A. (Fed) via macports-users" <<a href="mailto:macports-users-bounces@lists.macports.org">macports-users-bounces@lists.macports.org</a> on behalf
of <a href="mailto:macports-users@lists.macports.org">macports-users@lists.macports.org</a>> wrote:<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<p class="MsoPlainText" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in">On 7/12/21, 8:34 PM, "Ryan Schmidt" <ryandesign@macports.org> wrote:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> On Jul 12, 2021, at 10:40, Langer, Stephen A. (Fed) wrote:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > Hi --<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > 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:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > % python<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> >>>> import gi<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> >>>> gi.require_version("Gtk", "3.0")<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> >>>> from gi.repository import Gtk<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > Leads to this:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > ** (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:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > using either python27 or python38. The gdk-pixbuf2 port is installed.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > 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:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > 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:1.0in"> > <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> > 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:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> 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:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> 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:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> and<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> 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:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> 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:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> shared-library="/opt/local/lib/libgdk_pixbuf-2.0.0.dylib"<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> 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:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> 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:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> 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:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> (replacing both occurrences of /opt/local with whatever your MacPorts prefix is).<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:1.0in"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">Here is the output:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/opt/local/stow/ports-quartz/share/gir-1.0/GDesktopEnums-3.0.gir: shared-library=""<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in">/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" style="margin-left:.5in"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black">I should have said I'm on Intel.</span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><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.</span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black">Thanks again.</span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black">-- Steve</span><o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">More info:
<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
I moved my non-standard installations aside (unstowed them) and installed MacPorts 2.7.1 from the pkg file, with no customizations. Then I installed the gdk-pixbuf2, gobject-introspection, and py38-pygobject3 ports and their dependencies from source (with
"port -s install …"). After that /opt/local/share/gir-1.0/GkdPixbuf-2.0.gir and /opt/local/share/gir-1.0/GdkPixdata-2.0.gir both contain relative paths for shared-library.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Uninstalling gdk-pixbuf2 and reinstalling without -s leads to .gir files with absolute paths.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I'll file a bug report but I don't know if this is a gdk-pixbuf2 bug or a gobject-introspection bug.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">-- Steve<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoPlainText" style="margin-left:.5in"><span style="color:black"> </span><o:p></o:p></p>
</div>
</body>
</html>