From: Alexey Sheplyakov <asheplyakov@basealt.ru> To: devel@lists.altlinux.org Subject: Re: [devel] gem-chef стал валиться... Date: Tue, 28 Jul 2020 14:42:00 +0400 Message-ID: <f676a3b8-ea1c-4422-8f58-baf38f8b0d5f@basealt.ru> (raw) In-Reply-To: <20200727160106.GK19101@altlinux.org> On 7/27/20 8:01 PM, Alexey V. Vissarionov wrote: > On 2020-07-27 19:52:24 +0400, Ivan A. Melnikov wrote: > > >>>> 1. Как так вышло что сбора на этом этапе стала виснуть на > >>>> сборке питона, > >>> /usr/src/tmp/gem-chef-buildroot/usr/lib/ruby/gems/2.7.0/gems/chef-16.2.89/ext/git/block/block/block/block/block/block/block/block/ewah/ewah/xdiff/compat: > >>> symbolic link to `.' > >> Если это апстрим -- надо обратить внимание всем стадионом. > >>> Видимо, /usr/lib/rpm/python.compileall.py не умеет обрабатывать > >>> циклы из символических ссылок. > >> Это realpath на каждый чих или как-то иначе? > > Их там просто несколько, так что у /usr/lib/rpm/python.compileall.py > > уходит достаточно большое время чтобы всеми возможными способами > > дойти до ELOOP > > Ну классическая же грабля... и решение классическое: использовать > lstat() вместо stat() (ну, или fstatat() с AT_SYMLINK_NOFOLLOW). os.walk не ходит по симлинкам по умолчанию. Можно попросить followlinks=True, но в документации предупреждают, что это чревато. > Надеюсь, хотя бы такие элементарные вещи в пыхтоне все же есть? В python много чего есть, но это никак не помешает желающим сделать свой велосипед с квадратными колесами.
next prev parent reply other threads:[~2020-07-28 10:42 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-27 14:17 ` Ivan A. Melnikov 2020-07-27 15:11 ` Michael Shigorin 2020-07-27 15:52 ` Ivan A. Melnikov 2020-07-27 15:57 ` Dmitry V. Levin 2020-07-27 16:01 ` Alexey V. Vissarionov 2020-07-28 10:42 ` Alexey Sheplyakov [this message] 2020-07-27 16:19 ` [devel] /usr/lib/rpm/python{, 3}.compileall.py don't skip symlinks Dmitry V. Levin 2020-07-28 3:08 ` [devel] Проблема клонирования проекта alexei 2020-07-28 7:40 ` Dmitry V. Levin 2020-07-28 7:57 ` [devel] /usr/lib/rpm/python{, 3}.compileall.py don't skip symlinks Ivan A. Melnikov
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=f676a3b8-ea1c-4422-8f58-baf38f8b0d5f@basealt.ru \ --to=asheplyakov@basealt.ru \ --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