ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Упаковка приложения, написанного на Perl
Date: Tue, 7 Aug 2007 01:21:33 +0400
Message-ID: <20070806212133.GF7530@solemn.turbinal> (raw)
In-Reply-To: <75e139a00706271321u32e71abk97933ae61d13fcb1@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2058 bytes --]

On Thu, Jun 28, 2007 at 03:21:28AM +0700, Slava Semushin wrote:
> Здравствуйте!
> 
> Во время сборки swatch вижу следующее сообщение:
> 
> warning: Installed (but unpackaged) file(s) found:
>     /.perl.req
> 
> При этом сборка установка программы сводится к следующему:
> 
> %build
> %perl_vendor_build
> 
> %install
> %perl_vendor_install
> 
> Кто-то из этих макросов создаёт этот файл и не удаляет его.
> 
> Вопросов несколько:
> - Что это за файл и зачем он нужен?
> - Что с ним делать: удалять, включать в пакет, игнорировать?

Это левый файл, на которые не следует обращать внимания.

Он нужен примерно вот зачем.  В Makefile.PL иногда указаны
более точные версии модулей.  Это информацию нужно как-то "протащить"
до стадии find-requires.  К сожалению, на стадии find-requires НЕТ
СПОСОБА ОПРЕДЕЛИТЬ, В КАКОМ КАТАЛОГЕ СОБИРАЛСЯ ПАКЕТ.  То есть на
стадии find-requires доступен только RPM_BUILD_ROOT.  Чтобы как-то
протащить информацию со стадии %build на стадию find-requires,
на стадии %install я копирую этот файл в %buildroot.  Тогда perl.req
знает, откуда подобрать информацию из Makefile.PL.

Вообще, по-моему, это глючок RPM.  Что ему стоит заходить на стадии
find-requires в каталог сборки?  А он заходит просто в ~/RPM/BUILD.

> Также программа устанавливает следующий файл:
> 
> /usr/lib/perl5/vendor_perl/auto/Swatch/Actions/autosplit.ix
> 
> Для таких файлов вроде бы есть макрос %perl_vendor_autolib, но у него
> путь отличается:
> 
> /usr/lib/perl5/vendor_perl/i386-linux/auto
> 
> Т.е. у меня auto/ вместо i386-auto/ Может программа чего не туда
> ставит? Тогда как это подправить?

Если в %buildroot/usr/lib/perl5/vendor_perl/auto/ кроме файла
autosplit.ix ничего нет, то нужно из Actions.pm удалить всякое
упоминание об AutoLoader.  Если же рядом с autosplit.ix лежат
всякие-разные *.al файлы, то AutoLoader нужен (или его можно
чуть сложнее оторвать, но это желательно чувствовать, стоит или
не стоит его отрывать).  В случае с *.al файлами паковать
%perl_vendor_privlib/auto/*.*

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2007-08-06 21:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 20:21 Slava Semushin
2007-08-06 21:21 ` Alexey Tourbin [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=20070806212133.GF7530@solemn.turbinal \
    --to=at@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