From: "Ivan A. Melnikov" <iv@altlinux.org>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] Где определён макрос %_docdir?
Date: Thu, 16 Oct 2025 21:40:21 +0400
Message-ID: <shvyid42dhh2fqesao4nusjw5x@iv-work> (raw)
In-Reply-To: <3f0febd9-2f94-4257-b450-42a0e298aa76@yandex.ru>
On Thu, Oct 16, 2025 at 08:05:37PM +0300, Alexander Lubyagin wrote:
> Скрипт rpmcs предлагает заменить %_defaultdocdir на %_docdir.
>
> Но по выхлопу grep -ire _docdir /usr/lib/rpm/ - непонятно, где и как этот
> макрос определён.
>
> Где найти его определение?
Макерос %_docdir определяется непосредственно в коде rpmbuild
при разборе spec-файла. По умолчанию это синоним %_defaultdocdir,
однако он может быть переопределён в спеке неким древним, забытым,
никому не нужным и глубоко задепрекейченым способом.
Думаю, rpmcs прав, использовать %_docdir в спеке и удобнее, и корректнее.
--
wbr,
iv m.
prev parent reply other threads:[~2025-10-16 17:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-16 17:05 Alexander Lubyagin
2025-10-16 17:40 ` Ivan A. Melnikov [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=shvyid42dhh2fqesao4nusjw5x@iv-work \
--to=iv@altlinux.org \
--cc=devel-newbies@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
devel@ where you _can_ ask
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
public-inbox-index devel-newbies
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git