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] forced noarch
Date: Wed, 23 Dec 2009 23:11:00 +0300
Message-ID: <20091223201100.GA9864@altlinux.org> (raw)
In-Reply-To: <20091223111253.GB3966@wo.int.altlinux.org>

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

On Wed, Dec 23, 2009 at 02:12:53PM +0300, Dmitry V. Levin wrote:
> > Here is the full list of packages which should be made noarch.
> cpuburn-1.4-alt5.i586.rpm should be made noarch?  Do you really think so?

[at@people at]$ rpmquery --qf '[%{FILENAMES}\t%{FILEMD5S}\n]' -p /ALT/Sisyphus/files/i586/RPMS/cpuburn-1.4-alt5.i586.rpm 
/usr/bin/burnBX 3963165dea4eceac2ad550c2ebe9e93e
/usr/bin/burnK6 b72d685d7beed398bccd0a56f7c36d1a
/usr/bin/burnK7 6be9eabb21b8482f3e3261e2af0de188
/usr/bin/burnMMX        0050bf8ac72ba7f3187a2830f05cc340
/usr/bin/burnP5 d10fbf78fb2396c02e2a1022641796e1
/usr/bin/burnP6 13e1dd053a0c5e77f08d8cc0af2fe898
/usr/share/doc/cpuburn-1.4      
/usr/share/doc/cpuburn-1.4/Design       94eb3d0c7095d10b7c670545e211b767
/usr/share/doc/cpuburn-1.4/README       92aa364c1942f0396bb7c99a91b2bf88
[at@people at]$ rpmquery --qf '[%{FILENAMES}\t%{FILEMD5S}\n]' -p /ALT/Sisyphus/files/x86_64/RPMS/cpuburn-1.4-alt5.x86_64.rpm 
/usr/bin/burnBX 3963165dea4eceac2ad550c2ebe9e93e
/usr/bin/burnK6 b72d685d7beed398bccd0a56f7c36d1a
/usr/bin/burnK7 6be9eabb21b8482f3e3261e2af0de188
/usr/bin/burnMMX        0050bf8ac72ba7f3187a2830f05cc340
/usr/bin/burnP5 d10fbf78fb2396c02e2a1022641796e1
/usr/bin/burnP6 13e1dd053a0c5e77f08d8cc0af2fe898
/usr/share/doc/cpuburn-1.4      
/usr/share/doc/cpuburn-1.4/Design       94eb3d0c7095d10b7c670545e211b767
/usr/share/doc/cpuburn-1.4/README       92aa364c1942f0396bb7c99a91b2bf88
[at@people at]$ 

[at@people at]$ rpmfile /ALT/Sisyphus/files/x86_64/RPMS/cpuburn-1.4-alt5.x86_64.rpm
/usr/bin/burnBX 100755  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
/usr/bin/burnK6 100755  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
/usr/bin/burnK7 100755  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
/usr/bin/burnMMX        100755  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
/usr/bin/burnP5 100755  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
/usr/bin/burnP6 100755  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
/usr/share/doc/cpuburn-1.4      40755   directory
/usr/share/doc/cpuburn-1.4/Design       100644  ASCII English text
/usr/share/doc/cpuburn-1.4/README       100644  ASCII English text
[at@people at]$ 

cpuburn.spec:
%define cpulist P6 BX K6 K7 MMX P5
for n in %cpulist; do
        gcc -m32 -Wa,--noexecstack -nostdlib -o burn$n burn$n.S
done

Hmm, so you build the same *.S files, and basically you should have the
same binaries on all architectures.  (But there is also ExclusiveArch
there...)

> $ zgrep -c ^E force-noarch.gz
> 892

That's around 600 source packages.

[at@people at]$ zgrep ^E force-noarch.gz |cut -f2 |(cd /ALT/Sisyphus/files/i586/RPMS/; xargs rpmquery --qf '%{SOURCERPM}\n' -p) |sort -u |wc -l
error: open of qemu-kvm-vde-0.11.1-alt5.i586.rpm failed: No such file or directory
error: open of sysstat-isag-9.0.4-alt1.i586.rpm failed: No such file or directory
601
[at@people at]$ 

> Isn't it too hard indeed?  Maybe we could patch rpmbuild to make such
> packages noarch automatically?

rpmbuild itself cannot decide whether certain packages should be noarch.
Consider my previous example with perl-Net-IP-1.25-alt3.noarch.rpm (yeah,
it's been fixed).  It contains /usr/lib/perl5/vendor_perl/Net/IP.pm.
This is plain text file, but since it is under /usr/lib, we cannot
automatically decide whether it's good for noarch (e.g. it might have
platform-specific paths hardcoded into it).  So, to decide whether IP.pm
is good enough for noarch, we should build the package on both
architectures and ensure that IP.pm is exactly the same.

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

  parent reply	other threads:[~2009-12-23 20:11 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-21 23:36 ` [devel] noarch and /usr/share (packages/aptitude: tags/0.4.5-alt5) Alexey Tourbin
2009-12-22  8:05   ` Alexey Tourbin
2009-12-22 12:12     ` Michael Shigorin
2009-12-22 17:57       ` Alexey Tourbin
2009-12-23 12:00         ` Michael Shigorin
2009-12-23 18:48           ` Alexey Tourbin
2009-12-22 18:18     ` [devel] forced noarch Dmitry V. Levin
2009-12-22 18:54       ` Alexey Tourbin
2009-12-22 19:02         ` Damir Shayhutdinov
2009-12-22 19:06           ` Alexey Tourbin
2009-12-23 14:17         ` Kirill A. Shutemov
2009-12-23 19:19           ` Alexey Tourbin
2009-12-23 20:33             ` Kirill A. Shutemov
2009-12-23 21:23               ` Alexey Tourbin
2009-12-23  0:49       ` [devel] packages with non-identical /usr/share Alexey Tourbin
2009-12-23 11:57         ` Michael Shigorin
2009-12-23  2:11       ` [devel] forced noarch Alexey Tourbin
2009-12-23 11:12         ` Dmitry V. Levin
2009-12-23 12:38           ` Damir Shayhutdinov
2009-12-23 12:47             ` Michael Shigorin
2009-12-23 13:11             ` Dmitry V. Levin
2009-12-23 13:17               ` Damir Shayhutdinov
2009-12-23 13:52                 ` Dmitry V. Levin
2009-12-23 20:11           ` Alexey Tourbin [this message]
2009-12-23 22:30             ` Alexey Tourbin
2009-12-24  0:26               ` Alexey Tourbin
2009-12-27  1:09     ` [devel] forcing arch/noarch Dmitry V. Levin
2009-12-27  1:53       ` Alexey Tourbin
2009-12-27  9:50         ` Денис Смирнов
2009-12-28  0:44         ` Dmitry V. Levin
2009-12-28 17:23         ` [devel] suggesting arch/noarch Michael Shigorin
2009-12-29  0:47           ` 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=20091223201100.GA9864@altlinux.org \
    --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