ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Помощь с зависимостями в python
Date: Tue, 15 Oct 2019 22:44:04 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1910152239100.28829@imap.altlinux.org> (raw)
In-Reply-To: <fc1f585267210ef040e2ccf03bc087b6@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 1405 bytes --]

On Tue, 15 Oct 2019, Vitaly Lipatov wrote:

> > > Проваливается сборка пакета:
> > >         x86_64: NEW unmet dependencies detected:
> > > certbot-apache#0.38.0-alt1      python3(certbot) < 0
> > > 
> > > http://git.altlinux.org/tasks/237698/logs/events.5.1.log
> > > 
> > > При этом при сборке пакета certbot автовыставляется такое:
> > > Provides: letsencrypt = 0.38.0, python3(certbot) = set:edzs
> > > 
> > > Не пойму, почему не удовлетворяется зависимость.
> > > Не пойму, почему в зависимости написано < 0 и что это значит.
> > > Соответственно, не могу починить :(
> > 
> > python3(certbot) = set:edzs  означает что этот модуль лежит в
> > приватном месте, не стандартный путь поиска для python3 модулей
> А зачем пакет провайдит модуль из приватного места, если им никто не может
> воспользоваться?

Вообще-то, воспользоваться может, если специально обучен этому его код.

> > И действительно:
> > certbotdir %_datadir/%name
> 
> > 
> > Что бы сделать его "стандартным", вам нужно в спек добавить следующее:
> > %allow_python3_import_path %certbotdir

Если какой-то пакет умеет импортировать модули из нестандартного места, 
мейнтейнер пишет ему %allow_python3_import_path NEWPATH

Тогда и Requires у него поменяются (можно посмотреть в твоём примере) с

python3(certbot) < 0

на

python3(certbot) <= set:....

т.е. удовлетворить его смогут больше всяких разных Provides.

-- 
Best regards,
Ivan

      parent reply	other threads:[~2019-10-15 19:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 14:13 Vitaly Lipatov
2019-10-15 14:27 ` Grigory Ustinov
2019-10-15 15:24   ` Vitaly Lipatov
2019-10-15 14:55 ` Michael Shigorin
2019-10-15 15:32 ` Alexey Shabalin
2019-10-15 16:13   ` Vitaly Lipatov
2019-10-15 16:25     ` Alexey Shabalin
2019-10-15 19:44     ` Ivan Zakharyaschev [this message]

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=alpine.LFD.2.20.1910152239100.28829@imap.altlinux.org \
    --to=imz@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /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