From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] net-snmp & perl
Date: Sun, 6 Aug 2006 00:52:03 +0400
Message-ID: <20060805205203.GH9204@localhost.localdomain> (raw)
In-Reply-To: <20060805171303.GC9204@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]
On Sat, Aug 05, 2006 at 09:13:03PM +0400, Alexey Tourbin wrote:
> > $ rpm --provides perl-SNMP-5.3.1-alt1.i686.rpm -qp
> > perl(SNMP.pm) = 5.030
> >
> > Но при этом:
> > $ rpm --requires perl-SNMP-5.3.1-alt1.i686.rpm -qp
> > perl(NetSNMP/OID.pm) >= 5.100
>
> Где-то внутри требуется версия больше, чем предоставляется.
> Там может быть перепутали обычную версию и v-string.
Короче там скорее всего действительно перепутали обычную версию и
v-string, но не в коде, а в Makefile.PL. Проще всего эту проблему
решить так:
--- net-snmp-5.3.1/perl/TrapReceiver/Makefile.PL- 2006-08-06 00:34:25 +0400
+++ net-snmp-5.3.1/perl/TrapReceiver/Makefile.PL 2006-08-06 00:40:22 +0400
@@ -43,7 +43,6 @@ sub InitMakeParams {
'NAME' => 'NetSNMP::TrapReceiver',
'VERSION_FROM' => 'TrapReceiver.pm', # finds $VERSION
'XSPROTOARG' => '-prototypes',
- 'PREREQ_PM' => { NetSNMP::OID => 5.1 },
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'TrapReceiver.pm',
AUTHOR =>
Замечу, что данная зависимость действительно некорректна (с точки зрения
самого перла, а не только с точки зрения поиска зависимостей):
$ hsh-install ~tmp/build perl-SNMP
Preparing packages for installation...
libssl-0.9.7g-alt3
libwrap-7.6-alt7
libnet-snmp-5.3.1-alt1
perl-SNMP-5.3.1-alt1
$ hsh-run ~tmp/build -- perl -e 'use NetSNMP::OID 5.1'
NetSNMP::OID version 5.1 required--this is only version 5.0301 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
$ hsh-run ~tmp/build -- perl -e 'use NetSNMP::OID v5.1'
$
Здесь v5.1 в некотором смысле эквивалентно 5.001.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2006-08-05 20:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-05 16:48 Pavlov Konstantin
2006-08-05 17:13 ` Alexey Tourbin
2006-08-05 20:52 ` 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=20060805205203.GH9204@localhost.localdomain \
--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