From: Vitaly Lipatov <lav@altlinux.ru> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Cc: "Dmitry V. Levin" <ldv@altlinux.org> Subject: Re: [devel] I: lib.req: upgraded "library not found" warnings to errors Date: Wed, 09 Feb 2022 03:54:34 +0300 Message-ID: <079fc7b1e7749f20e914d6d8847eecf5@altlinux.ru> (raw) In-Reply-To: <20220209001109.GE21338@altlinux.org> Dmitry V. Levin писал(а) 9.2.22 3:11: > On Tue, Feb 08, 2022 at 11:50:39PM +0300, Vitaly Lipatov wrote: ... >> Вы не могли бы подсказать хороший способ для этого? >> Вот к примеру >> https://git.altlinux.org/tasks/295053/gears/10/git?p=git;a=blob;f=test_lib_requires2.spec;h=93cbd138404bdff484450d986f7b42f0a6721d4f;hb=57d1826fc867f8617bb0de9e0cb3af1c872a3161 >> >> у меня есть приватная библиотека ntdll.so, которая расположена в >> %_libdir/%name >> Там же находится линкующаяся с ntdll.so библиотека sane.so. > > По идее, достаточно сделать %add_findprov_lib_path %_libdir/%name, > плюс что-то у линкующихся, например, rpath или ld.so.conf, > должно навести линкер на мысль поискать библиотеку в %_libdir/%name/. Видимо я не хочу наводить линкер на мысль, делать rpath или тем более ld.so.conf. К тому же такое указание приведёт к появлению provides всех библиотек в %_libdir/name, а они никому не нужны снаружи. В Wine придерживаются подхода, что его можно запускать из любого каталога, потому там не будет rpath для библиотек. Если его добавлять, то надо понимать, за что мы боремся. >> Я смог найти только такой вариант: >> 1. Положил ntdll.so также и в %_libdir >> 2. Убрал генерируемые зависимости на неё: >> %filter_from_requires /^ntdll.so()(64bit).*/d >> 3. Не стал упаковывать %_libdir/ntdll.so в пакет, потому что она там >> не >> нужна. > > Это по сути способ отключить проверку зависимостей на ntdll.so. Да. Но я думал, что есть менее костыльный. >> https://git.altlinux.org/tasks/295053/build/10/x86_64/log >> >> А как было бы лучше? При условии, что мне нужны auto requires для >> ntdll.so, но не нужны auto provides для неё. > > Почему вы хотите избежать auto provides вида > %_libdir/%name/ntdll.so()(64bit) ? Ну я думал, что начнётся история с дубликатами. Пакетов с ntdll.so внутри может быть много, но снаружи об этом незачем знать. Но видимо, если полный путь, то не начнётся. Просто чтобы не мусорить? -- С уважением, Виталий Липатов, ALT Linux Team
next prev parent reply other threads:[~2022-02-09 0:54 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-06 13:41 Dmitry V. Levin 2022-02-06 22:44 ` Alexey V. Vissarionov 2022-02-06 23:01 ` Dmitry V. Levin 2022-02-07 3:18 ` Alexey V. Vissarionov 2022-02-08 20:50 ` Vitaly Lipatov 2022-02-09 0:11 ` Dmitry V. Levin 2022-02-09 0:54 ` Vitaly Lipatov [this message] 2022-04-28 11:39 ` Sergey Afonin 2022-02-09 3:11 ` Evgeniy Kukhtinov 2022-02-09 11:15 ` Dmitry V. Levin 2022-02-09 12:12 ` Vitaly Lipatov 2022-02-09 12:46 ` Dmitry V. Levin 2022-02-27 13:15 ` Yuri Sedunov
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=079fc7b1e7749f20e914d6d8847eecf5@altlinux.ru \ --to=lav@altlinux.ru \ --cc=devel@lists.altlinux.org \ --cc=ldv@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