From: Alexey Tourbin <at@altlinux.ru> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] noarch and /usr/share (packages/aptitude: tags/0.4.5-alt5) Date: Tue, 22 Dec 2009 11:05:56 +0300 Message-ID: <20091222080556.GP9864@altlinux.org> (raw) In-Reply-To: <20091221233616.GN9864@altlinux.org> [-- Attachment #1: Type: text/plain, Size: 3999 bytes --] On Tue, Dec 22, 2009 at 02:36:16AM +0300, Alexey Tourbin wrote: > > @@ -29,6 +29,15 @@ can't be ported to apt-rpm. > > %package doc > > Summary: English manual for aptitude, a terminal-based apt frontend > > Group: Books/Computer books > > +# Can't use noarch: > > +#--- aptitude-doc-0.4.5-alt5.noarch.rpm.i586 2009-12-21 18:23:35 +0300 > > +#+++ aptitude-doc-0.4.5-alt5.noarch.rpm.x86_64 2009-12-21 18:23:35 +0300 > > +#@@ -77,35 +77,35 @@ > > +# /usr/share/doc/aptitude-doc-0.4.5/index.html > > +#-/usr/share/doc/aptitude-doc-0.4.5/ld-id2608397.html > > +#+/usr/share/doc/aptitude-doc-0.4.5/ld-id3016206.html > > +#... > > +#BuildArch: noarch > > Conflicts: %name < %version-%release > > Conflicts: %name > %version-%release > > Shouldn't /usr/share part of the packages be identical, much the same > way as noarch packages must be identical? > > I think I am going to implement much stricter checking for both noarch > packages and /usr/share part of arch packages. Also, I am going to > implement new "force-noarch" check which will require some packages > be noarch (by the principle of "extensional equality"). http://git.altlinux.org/people/at/packages/girar-builder.git 642af655 gb-task-check-noarch-i: force noarch by extensional equality 9bce38b3 gb-task-check-noarch-i: check for identical /usr/share part in arch pacakges 60af4a7c gb-task-check-noarch-i: use rpmfile(1) to check noarch cpio contents 67f83c43 gb-task-check-noarch-i: use ls again 17d6d4ea gb-task-check-noarch, gb-task-check-noarch-i: factored from gb-task-check-build-i Examples. 1) Cannot package static binary into noarch package. E.g. cannot make cpio-static noarch. [at@people 17774]$ PATH=~/git.alt/girar-builder:$PATH gb-task-check-noarch-i 1 --- cpio-static-2.10-alt4.noarch.rpm.i586 2009-12-22 10:54:20 +0300 +++ cpio-static-2.10-alt4.noarch.rpm.x86_64 2009-12-22 10:54:20 +0300 @@ -1,2 +1,2 @@ -/usr/bin/cpio.static 100755 ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.18, stripped +/usr/bin/cpio.static 100755 ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.18, stripped Requires: cpio = 2.10-alt4 error (#1): non-identical noarch packages [at@people 17774]$ 2) Arch packages must have identical /usr/share parts. E.g. cannot use %doc to package binary files. [at@people 17774]$ PATH=~/git.alt/girar-builder:$PATH gb-task-check-noarch-i 4 --- python-module-pyorbit-2.24.0-alt1.2.i586.rpm.usr-share 2009-12-22 10:55:33 +0300 +++ python-module-pyorbit-2.24.0-alt1.2.x86_64.rpm.usr-share 2009-12-22 10:55:33 +0300 @@ -15,11 +15,11 @@ /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/TestCall_module.lai 100644 libtool library file -/usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/TestCall_module.so 100755 ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped -/usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/c-impl.o 100644 ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped +/usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/TestCall_module.so 100755 ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped +/usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/c-impl.o 100644 ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/cTestCall.la 100644 libtool library file ... 3) Cannot make arch package with identical files and deps. E.g. cannot make arch perl module which should be noarch. [at@people 17774]$ PATH=~/git.alt/girar-builder:$PATH gb-task-check-noarch-i 5 error (#5): perl-Net-IP-1.25-alt2.i586.rpm should be noarch [at@people 17774]$ > If you don't like it, now is the right time to have your say. [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2009-12-22 8:05 UTC|newest] Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-12-21 23:36 ` Alexey Tourbin 2009-12-22 8:05 ` Alexey Tourbin [this message] 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 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=20091222080556.GP9864@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