From: "Sergey Y. Afonin" <asy@altlinux.ru> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] [rpm] %files, двойные включения и %exclude Date: Wed, 10 Oct 2012 15:58:13 +0400 Message-ID: <201210101558.13139.asy@altlinux.ru> (raw) Приветствую. Разбираясь с с пакетом otrs, обнаружил такой вот момент: секция %files содержит %config(noreplace) %attr(0660,root,%webserver_group) %installdir/Kernel/Config.pm %installdir/Kernel Соответственно, образуется вот такое предупреждение: warning: File listed twice: /var/www/webapps/otrs/Kernel/Config.pm Тут два вопроса. config(noreplace), действительно, сработает, как хочется, или файл будет перезаписан (хотя, это можно и проверить) ? А как убрать предупреждение красиво ? Макрос %exclude обрабатывается не последовательно, и вот такая конструкция эффект не даёт: %config(noreplace) %attr(0660,root,%webserver_group) %installdir/Kernel/Config.pm %exclude %installdir/Kernel/Config.pm %installdir/Kernel Переписывать все файлы в %installdir/Kernel совсем не хочется, их там вагон. Единственное решение, которое приходит в голову пока, это сделать ещё один пакет %name-config и вынести конфиги (а там, на самом деле, ещё два файла надо описать, как %config(noreplace)) в отдельный пакет... -- С уважением, Сергей Афонин asy@altlinux.ru
reply other threads:[~2012-10-10 11:58 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201210101558.13139.asy@altlinux.ru \ --to=asy@altlinux.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