ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Shabalin <a.shabalin@gmail.com>
To: Stanislav Levin <slev@basealt.ru>
Cc: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] python and typelib
Date: Mon, 2 Dec 2019 22:27:27 +0300
Message-ID: <CAEdvWkQ1WY0bLsJcnz7hBTUc1auWFfEUQLYnw_Yq_em6TTPzEw@mail.gmail.com> (raw)
In-Reply-To: <ca33968f-dda1-b0d0-7cc0-fd6ab5208be9@basealt.ru>

пн, 2 дек. 2019 г. в 21:52, Stanislav Levin <slev@basealt.ru>:
>
> Добрый вечер!
>
>
> 02.12.2019 20:39, Alexey Shabalin пишет:
> > День добрый.
> > Разбираясь с пакетом virt-install по поводу отсутствующих нужных
> > зависимостей, Пришел к следующему выводу:
> > Если в пакете есть зависимость вида
> > python3(gi)
> > python3(gi.repository)
> > то так же обязана быть хотя бы одна зависимость на _typelib_.
> >
> > Рассмотрим пример:
> > в virt-manager-common в osdict.py присутствует код:
> > -----------------------------
> > from gi.repository import Libosinfo
> > -----------------------------
> > Это означает, что должны появится следующие зависимости:
> > python3(gi.repository)
> > typelib(Libosinfo)
>
> Это означает только то, что написано - python-клиент хочет "Libosinfo"
> из "gi.repository". А вот "Libosinfo" для функционирования требуется
> "libosinfo-gir".

Не совсем понял, к чему Вы тут придираетесь?
"Libosinfo" из "gi.repository" по сути и есть typelib(Libosinfo),
потому что только пакет
libosinfo-gir провайдит typelib(Libosinfo). Поэтому надо выставить
зависимость на typelib(Libosinfo), что специально умеет делать
rpm-build-gir.
Да, есть более тяжёлые случаи, когда провайдят разные версии разные
пакеты(например gtk2 и gtk3).

> Возможно, что эта зависимость отсутствует (ошибка) или оторвана по
> какой-то разумной причине в "python3-module-pygobject3".

Нет, конкретно в python3-module-pygobject3 ничего не оторвано.
Я вам пример из пакета virt-manager показывал, у которого должна
появится зависимость на libosinfo-gir.
При чем тут python3-module-pygobject3?

>
>
> Конечно, в качестве "срочнонужного" костыля можно указать прямую
> зависимость.

В качестве "срочнонужного" не костыля я предложил использовать rpm-build-gir.

-- 
Alexey Shabalin

  reply	other threads:[~2019-12-02 19:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-02 17:39 Alexey Shabalin
2019-12-02 18:52 ` Stanislav Levin
2019-12-02 19:27   ` Alexey Shabalin [this message]
2019-12-02 20:10     ` Stanislav Levin
2019-12-04 18:22       ` Alexey Shabalin
2019-12-03 12:59 ` Mikhail Efremov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEdvWkQ1WY0bLsJcnz7hBTUc1auWFfEUQLYnw_Yq_em6TTPzEw@mail.gmail.com \
    --to=a.shabalin@gmail.com \
    --cc=devel@lists.altlinux.org \
    --cc=slev@basealt.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git