Bug 24843 - buildreq находит зависимость в %install
Summary: buildreq находит зависимость в %install
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-utils (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-30 13:52 MSK by alex@altlinux.org
Modified: 2010-12-31 11:18 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex@altlinux.org 2010-12-30 13:52:45 MSK
Должен ли buildreq искать зависимости %install?

spec:
%install
desktop-file-install %buildroot/%_liconsdir/%name.png

hsh:
+ desktop-file-install /usr/src/tmp/m-ping-buildroot//usr/share/icons/hicolor/48x48/apps/m-ping.png
/usr/src/tmp/rpm-tmp.69067: line 93: desktop-file-install: command not found
error: Bad exit status from /usr/src/tmp/rpm-tmp.69067 (%install)
Comment 1 Sir Raorn 2010-12-30 13:57:02 MSK
Не должен, но может, если его об этом попросить.

buildreq -bi
Comment 2 Sergey Vlasov 2010-12-31 11:18:49 MSK
Причём достаточно попросить один раз - при последующих запусках, если не удалять из spec-файла добавленный buildreq комментарий "# Automatically added by buildreq on ... (-bi)", опция -bi будет использоваться автоматически.

Ещё через комментарии запоминается опция --pruned ("# optimized out: ...").