Re: mock: ImportError: /lib64/libdnf.so.2: undefined symbol: g_once_init_enter_pointer

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

 





On Wed, 21 Feb 2024 at 12:38, Jun Aruga (he / him) <jaruga@xxxxxxxxxx> wrote:
On Wed, Feb 21, 2024 at 6:09 PM Stephen Smoogen <ssmoogen@xxxxxxxxxx> wrote:
>
>
>
> On Wed, 21 Feb 2024 at 12:05, Miroslav Suchý <msuchy@xxxxxxxxxx> wrote:
>>
>> Dne 21. 02. 24 v 17:38 Jun Aruga (he / him) napsal(a):
>>
>> $ mock -r fedora-rawhide-x86_64 --shell
>>
>> ....
>>
>> --setenv=LC_MESSAGES=C.UTF-8 --resolv-conf=off /usr/bin/dnf-3
>> --disableplugin=versionlock install @buildsys-build
>>
>> This is suspicious. It should use DNF5 now.
>>
>> What is
>>
>>   rpm -qf /etc/mock/fedora-rawhide-x86_64.cfg
>>
>> Since mock-core-configs-40.2-1 it should use DNF5.
>>
>> That said, DNF3 should work too. But instead of hunting this bug it may be easier to update configs and use DNF5 that should be used anyway.
>
>
> Usually when I see errors like this.. it is usually a mixed up rawhide cache stored somewhere.. aka something is pulling in something really old. `mock --clean fedora-rawhide-x86_64` usually fixes these but it may also need a local update first too.

Thanks for your help. I still see the same error after running the
`mock --clean fedora-rawhide-x86_64`.

```
$ mock --clean fedora-rawhide-x86_64

$ mock -r fedora-rawhide-x86_64 --shell
...
ERROR: Command failed:
 # /usr/bin/systemd-nspawn -q -M 46d4e94c6647468aa33584d8fb7d42ae -D
/var/lib/mock/fedora-rawhide-x86_64-bootstrap/root -a
--capability=cap_ipc_lock
--bind=/tmp/mock-resolv.0la37cbp:/etc/resolv.conf --console=pipe
--setenv=TERM=vt100 --setenv=SHELL=/bin/bash
--setenv=HOME=/var/lib/mock/fedora-rawhide-x86_64/root/installation-homedir
--setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin
'--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"'
'--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8
--setenv=LC_MESSAGES=C.UTF-8 --resolv-conf=off /usr/bin/dnf-3
--installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever
35 --setopt=deltarpm=False --setopt=allow_vendor_change=yes
--allowerasing --disableplugin=local --disableplugin=spacewalk
--disableplugin=versionlock install @buildsys-build
--setopt=tsflags=nocontexts
Traceback (most recent call last):
  File "/usr/bin/dnf-3", line 61, in <module>
    from dnf.cli import main
  File "/usr/lib/python3.12/site-packages/dnf/__init__.py", line 30, in <module>
    import dnf.base
  File "/usr/lib/python3.12/site-packages/dnf/base.py", line 29, in <module>
    import libdnf.transaction
  File "/usr/lib64/python3.12/site-packages/libdnf/__init__.py", line
14, in <module>
    from . import conf
  File "/usr/lib64/python3.12/site-packages/libdnf/conf.py", line 10,
in <module>
    from . import _conf
ImportError: /lib64/libdnf.so.2: undefined symbol: g_once_init_enter_pointer
```


Ok what I Have on my system f39 toolbox is:

⬢[root@toolbox ~]# rpm -qa | grep -E 'dnf|mock|distribution-gpg|glib2' | sort
distribution-gpg-keys-1.101-1.fc39.noarch
dnf-4.18.2-1.fc39.noarch
dnf-data-4.18.2-1.fc39.noarch
dnf-plugins-core-4.4.4-1.fc39.noarch
dnf-utils-4.4.4-1.fc39.noarch
dnf5-5.1.12-1.fc39.x86_64
dnf5-plugins-5.1.12-1.fc39.x86_64
glib2-2.78.3-1.fc39.x86_64
libdnf-0.72.0-1.fc39.x86_64
libdnf5-5.1.12-1.fc39.x86_64
libdnf5-cli-5.1.12-1.fc39.x86_64
mock-5.5-1.fc39.noarch
mock-core-configs-40.1-1.fc39.noarch
mock-filesystem-5.5-1.fc39.noarch
python3-dnf-4.18.2-1.fc39.noarch
python3-dnf-plugins-core-4.4.4-1.fc39.noarch
python3-libdnf-0.72.0-1.fc39.x86_64
 
I built a package against rawhide which worked.. and the dnf_cache for mock says it was using

./fedora-2d95c80a1fa0a67d/packages/glib2-2.79.1-1.fc40.x86_64.rpm
./fedora-2d95c80a1fa0a67d/packages/dnf-4.19.0-1.fc40.noarch.rpm
./fedora-2d95c80a1fa0a67d/packages/python3-dnf-4.19.0-1.fc40.noarch.rpm
./fedora-2d95c80a1fa0a67d/packages/dnf-data-4.19.0-1.fc40.noarch.rpm
./fedora-2d95c80a1fa0a67d/packages/python3-libdnf-0.73.0-1.fc40.x86_64.rpm
./fedora-2d95c80a1fa0a67d/packages/libdnf-0.73.0-1.fc40.x86_64.rpm
[

--
Jun | He - Him | Timezone: UTC+1 or 2, Czech Republic
See <https://www.worldtimebuddy.com/czech-republic-prague-to-utc> for
the timezone.
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue


--
Stephen Smoogen, Red Hat Automotive
Let us be kind to one another, for most of us are fighting a hard battle. -- Ian MacClaren
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux