From: Led <ledest@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] rpm5 и ALTLinux
Date: Fri, 3 Apr 2009 02:05:46 +0300
Message-ID: <200904030205.47026.ledest@gmail.com> (raw)
In-Reply-To: <20090402225845.GM27603@altlinux.org>
On Friday, 03 April 2009 01:58:45 Alexey I. Froloff wrote:
> * Led <ledest@> [090402 19:30]:
> > Только толку от него мало, если он у нас опционален, а не обязателен для
> > действительно noarch-частей. Т.о. Даже багу на этот счёт на пакет вешать
> > бесполезно, потому как мейнтейнер пошлёт подальше с формулировкой "А мне
> > что-то механизм noarch-субпакетов лично не нравится".
>
> Г-н, Led, это у Вас очередной случай так называемого вранья?
> Потрудитесь, пожалуйста, привести код, который функционально
> отличался бы от этого:
>
> 700 const char *platform = rpmExpand("%{_target_platform}", NULL);
> 701 const char *arch = rpmExpand("%{_target_cpu}", NULL);
> 702 const char *os = rpmExpand("%{_target_os}", NULL);
> 703
> 704 for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
> ...
> 712 he->tag = RPMTAG_ARCH;
> 713 he->t = RPM_STRING_TYPE;
> 714 he->p.str = (pkg->noarch ? "noarch" : arch);
> 715 he->c = 1;
> 716 xx = headerPut(pkg->header, he, 0);
> 717
> 718 he->tag = RPMTAG_PLATFORM;
> 719 he->t = RPM_STRING_TYPE;
> 720 he->p.str = platform;
> 721 he->c = 1;
> 722 xx = headerPut(pkg->header, he, 0);
>
> Или этого:
>
> 853 const char *platform = rpmExpand("%{_target_platform}", NULL);
> 854 const char *arch = rpmExpand("%{_target_cpu}", NULL);
> 855 const char *os = rpmExpand("%{_target_os}", NULL);
> 856 #endif
> 857
> 858 for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
> ...
> 869 if (!headerIsEntry(pkg->header, RPMTAG_ARCH))
> 870 headerAddEntry(pkg->header, RPMTAG_ARCH, RPM_STRING_TYPE,
> arch, 1); 871 else
> 872 assert(pkg != spec->packages); /* noarch subpackage */
> 873 if (!headerIsEntry(pkg->header, RPMTAG_RHNPLATFORM))
> 874 (void) headerAddEntry(pkg->header, RPMTAG_RHNPLATFORM,
> 875 RPM_STRING_TYPE, arch, 1);
> 876 (void) headerAddEntry(pkg->header, RPMTAG_PLATFORM,
> 877 RPM_STRING_TYPE, platform, 1);
>
> Первый фрагмент это HEAD rpm5.org, второй - так называемый
> "ALT-rpm", который Вы усиленно ругаете.
$ rpm -qp --qf "%{NAME}:%{ARCH}:%{PLATFORM}:%{RHNPLATFORM}\n" \
tftp-doc-5.0-alt1.noarch.rpm
tftp-doc:noarch:i586-alt-linux:i586
Как это объяснить?
--
Led
next prev parent reply other threads:[~2009-04-02 23:05 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-31 16:53 Eugene Ostapets
2009-04-02 14:53 ` Sergey Y. Afonin
2009-04-02 15:04 ` Eugene Ostapets
2009-04-02 15:18 ` Sergey Y. Afonin
2009-04-02 14:26 ` Led
2009-04-02 17:45 ` Sergey Y. Afonin
2009-04-02 16:52 ` Led
2009-04-02 17:59 ` Anton Farygin
2009-04-02 17:10 ` Led
2009-04-02 22:58 ` Alexey I. Froloff
2009-04-02 23:05 ` Led [this message]
2009-04-02 23:55 ` Alexey I. Froloff
2009-04-04 7:59 ` Michael Shigorin
2009-04-02 23:14 ` Led
2009-04-02 23:57 ` Alexey I. Froloff
2009-04-03 0:09 ` Led
2009-04-03 0:55 ` Alexey I. Froloff
2009-04-03 1:20 ` Led
2009-04-03 5:41 ` Max Ivanov
2009-04-03 9:29 ` Sergey Y. Afonin
2009-04-03 9:31 ` Aleksey Novodvorsky
2009-04-03 6:45 ` Aleksey Novodvorsky
2009-04-02 23:25 ` [devel] noarch Dmitry V. Levin
2009-04-02 23:28 ` Led
2009-04-02 23:41 ` Dmitry V. Levin
2009-04-02 23:47 ` Led
2009-04-02 23:56 ` Dmitry V. Levin
2009-04-03 0:02 ` Led
2009-04-03 0:09 ` Dmitry V. Levin
2009-04-03 0:20 ` Alexey Gladkov
2009-04-03 0:29 ` Dmitry V. Levin
2009-04-03 4:34 ` Anton Farygin
2009-04-03 13:12 ` George V. Kouryachy
2009-04-04 8:15 ` Michael Shigorin
2009-04-04 10:33 ` Anton Farygin
2009-04-03 0:54 ` Led
2009-04-03 1:10 ` Dmitry V. Levin
2009-04-03 4:37 ` Anton Farygin
2009-04-03 10:45 ` Dmitry V. Levin
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=200904030205.47026.ledest@gmail.com \
--to=ledest@gmail.com \
--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