From: Ilya Kurdyukov <ilyakurdyukov@basealt.ru> To: devel@lists.altlinux.org Subject: [devel] cmake_insource и _disable_check Date: Mon, 7 Jul 2025 15:39:37 +0700 Message-ID: <87eed1ed-671b-4860-afe8-cb04934c60b9@basealt.ru> (raw) In-Reply-To: <d0a5cc80-b599-4863-ac50-54736f5e2ab4@basealt.ru> Собираю libopentelemetry для e2k, потому что потребовался в зависимостях. Компилятор не смог собрать тесты. Отключаю сборку тестов: %cmake_insource \ %ifarch %e2k -DBUILD_TESTING=OFF \ %endif -DCMAKE_MODULE_PATH=%_libdir/cmake \ Но потом же в спеке есть %check, и он не может найти тесты. Отключаю тесты по правильному: %ifarch %e2k %def_disable check %endif ... %cmake_insource \ %if_disabled check -DBUILD_TESTING=OFF \ %endif -DCMAKE_MODULE_PATH=%_libdir/cmake \ Внезапно, %cmake_insource перестаёт работать как insource: + cd libopentelemetry-1.17.0.25 + make 'INSTALL=/usr/libexec/rpm-build/install -p' install DESTDIR=/usr/src/tmp/libopentelemetry-buildroot -C e2kv5-alt-linux make: Entering directory '/usr/src/RPM/BUILD/libopentelemetry-1.17.0.25' make: *** e2kv5-alt-linux: No such file or directory. Stop. Хотя до %if_disabled работал так: + cd libopentelemetry-1.17.0.25 + make 'INSTALL=/usr/libexec/rpm-build/install -p' install DESTDIR=/usr/src/tmp/libopentelemetry-buildroot -C . Пробую: %cmake_insource \ %{?_disable_check:-DBUILD_TESTING=OFF} \ -DCMAKE_MODULE_PATH=%_libdir/cmake \ Опять та же ошибка. Пробую: %cmake_insource \ %{?!_enable_check:-DBUILD_TESTING=OFF} \ -DCMAKE_MODULE_PATH=%_libdir/cmake \ Теперь работает. Объясните что это за магия такая, для меня выглядит как баг.
next prev parent reply other threads:[~2025-07-07 8:39 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-07-04 9:54 [devel] python3-module-aiodns woes Sergey Bolshakov 2025-07-04 10:57 ` Sergey Bolshakov 2025-07-04 11:16 ` Grigory Ustinov 2025-07-04 11:42 ` Sergey Bolshakov 2025-07-04 14:29 ` Anton Farygin 2025-07-04 11:13 ` Stanislav Levin 2025-07-04 11:14 ` Danil Shein 2025-07-04 14:36 ` Anton Farygin 2025-07-07 8:39 ` Ilya Kurdyukov [this message] 2025-07-07 11:15 ` [devel] cmake_insource и _disable_check Dmitry V. Levin
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=87eed1ed-671b-4860-afe8-cb04934c60b9@basealt.ru \ --to=ilyakurdyukov@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