ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] /usr/lib/rpm/perl.req -- patch
Date: Thu, 31 Oct 2002 03:32:18 +0300
Message-ID: <20021031003218.GB10202@basalt.office.altlinux.ru> (raw)
In-Reply-To: <20021031001930.GA14722@homestead.turbinal.org>


[-- Attachment #1.1: Type: text/plain, Size: 960 bytes --]

On Thu, Oct 31, 2002 at 03:19:30AM +0300, at@turbinal.org wrote:
> On Thu, Oct 31, 2002 at 02:44:53AM +0300, at@turbinal.org wrote:
> > Я посмотрел, как это сделано в rpm-*mdk. Там используется такое
> > наблюдение, что условные зависимости (require) обычно начинаются с
> > отступа. Всё это абсолютно в духе грязного хака, но пока это лучшее, что
> > можно придумать. Если мне дадут возможность отхачить perl.req, я
> > попробую быстро добиться приемлемой его работы на всем, что мы собираем
> > (нужно подтверждение).
> 
> Поймал (ценную мысль)! Нужно сделать 2 метода поиска перловых
> зависимостей: relaxed и strict. Большая часть пакетов должна собираться
> с strict (по умолчанию), а там, где появляются нелепые или слишком

Отлавливать сложно.

> сильные зависимости (как в perl-CGI), нужно в spec-файле явно указывать:
> 
> %set_perl_req_method relaxed
> 
s/strict/normal/ - стоит зарезервировать strict для более жестких
проверок.

Пробуйте.


--
ldv

[-- Attachment #1.2: perl_req.diff --]
[-- Type: text/plain, Size: 2138 bytes --]

--- /usr/lib/rpm/i586-linux/macros.orig	2002-10-28 02:13:21 +0300
+++ /usr/lib/rpm/i586-linux/macros	2002-10-31 03:25:16 +0300
@@ -276,6 +276,7 @@
 %_cleanup_method	auto
 %_compress_method	auto
 %_verify_elf_method	normal
+%_perl_req_method	normal
 %_fixup_method	binconfig pkgconfig libtool
 %_strip_method	%{?_enable_debug:none}%{!?_enable_debug:executable shared}
 %_findreq_default_method	files lib pam perl shell
@@ -302,6 +303,7 @@
 %set_fixup_method()	%global _fixup_method %*
 %set_strip_method()	%global _strip_method %*
 %set_verify_elf_method()	%global _verify_elf_method %*
+%set_perl_req_method()	%global _perl_req_method %*
 
 %set_cleanup_topdir()	%global _cleanup_topdir %*
 %set_compress_topdir()	%global _compress_topdir %*
--- /usr/lib/rpm/noarch-linux/macros.orig	2002-10-28 02:13:21 +0300
+++ /usr/lib/rpm/noarch-linux/macros	2002-10-31 03:25:16 +0300
@@ -276,6 +276,7 @@
 %_cleanup_method	auto
 %_compress_method	auto
 %_verify_elf_method	normal
+%_perl_req_method	normal
 %_fixup_method	binconfig pkgconfig libtool
 %_strip_method	%{?_enable_debug:none}%{!?_enable_debug:executable shared}
 %_findreq_default_method	files lib pam perl shell
@@ -302,6 +303,7 @@
 %set_fixup_method()	%global _fixup_method %*
 %set_strip_method()	%global _strip_method %*
 %set_verify_elf_method()	%global _verify_elf_method %*
+%set_perl_req_method()	%global _perl_req_method %*
 
 %set_cleanup_topdir()	%global _cleanup_topdir %*
 %set_compress_topdir()	%global _compress_topdir %*
--- /usr/lib/rpm/macros.orig	2002-10-28 02:10:24 +0300
+++ /usr/lib/rpm/macros	2002-10-31 03:22:22 +0300
@@ -621,6 +621,7 @@
   %{?_findreq_skiplist:export RPM_FINDREQ_SKIPLIST=\"%_findreq_skiplist\"}\
   %{?_findprov_skiplist:export RPM_FINDPROV_SKIPLIST=\"%_findprov_skiplist\"}\
   %{?_perl_lib_path:export RPM_PERL_LIB_PATH=\"%_perl_lib_path\"}\
+  %{?_perl_req_method:export RPM_PERL_REQ_METHOD=\"%_perl_req_method\"}\
   %{?__python:export RPM_PYTHON=\"%__python\"}\
   \
   unset LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL ||:\

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

  reply	other threads:[~2002-10-31  0:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29 23:27 [devel] /usr/lib/rpm/perl.req -- ахтунг! at
2002-10-30  0:58 ` at
2002-10-30  8:05   ` Alexey Morozov
2002-10-30 17:23     ` at
2002-10-30 23:44 ` [devel] /usr/lib/rpm/perl.req -- patch at
2002-10-31  0:19   ` at
2002-10-31  0:32     ` Dmitry V. Levin [this message]
2002-10-31  1:15       ` at
2002-11-02  9:27         ` [devel] " Mikhail Zabaluev
2002-10-31  0:22   ` [devel] " Dmitry V. Levin
2002-11-02  9:49   ` [devel] " Mikhail Zabaluev
2002-11-02 14:01     ` at
2002-11-02 15:18         ` Alexey Tourbin

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=20021031003218.GB10202@basalt.office.altlinux.ru \
    --to=ldv@altlinux.org \
    --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