From: Alexey Morozov <alex-altlinux@idisys.iae.nsk.su> To: ALT Devel discussion list <devel@altlinux.ru> Subject: [devel] Проблема с макросами %def_enable & Co Date: Fri, 6 Feb 2004 17:18:49 +0600 Message-ID: <20040206111849.GH9608@pyro.hopawar.private.net> (raw) [-- Attachment #1: Type: text/plain, Size: 784 bytes --] Собственно, проблема простая: Если условная переменная содержит '-' в середине, то содержимое этой переменной становится странным (и не работают должным образом макросы %{enable smth}): %def_enable abcd %def_enable ac-cd ... echo "abcd: %_enabled_abcd" echo "ab-cd: %_enabled_ab-cd" дают в итоге: + echo 'abcd: --enable-abcd' abcd: --enable-abcd + echo 'ab-cd: -cd --enable-ab-cd-cd' ab-cd: -cd --enable-ab-cd-cd Это как-нибудь лечится? Сходу я не понял, где это в def_enable может такая засада твориться. Разве что, у rpm'а есть некоторые представления о границе идентификаторов, и мы на эти границы наступаем. Я понимаю, что если "не делайте так, если больно", но очень уж хотелось подсунуть в %configure соответствующие ключики напрямую, без %if_enabled ab-cd %else %endif [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2004-02-06 11:18 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-02-06 11:18 Alexey Morozov [this message] 2004-02-06 22:01 ` [devel] " Mikhail Zabaluev
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=20040206111849.GH9608@pyro.hopawar.private.net \ --to=alex-altlinux@idisys.iae.nsk.su \ --cc=devel@altlinux.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