From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 22 Dec 2009 11:05:56 +0300 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20091222080556.GP9864@altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20091221154028.9681B2D7602E@ssh.git.orion.altlinux.org> <20091221233616.GN9864@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lHNupHuuosULgVTo" Content-Disposition: inline In-Reply-To: <20091221233616.GN9864@altlinux.org> Subject: Re: [devel] noarch and /usr/share (packages/aptitude: tags/0.4.5-alt5) X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 08:05:57 -0000 Archived-At: List-Archive: List-Post: --lHNupHuuosULgVTo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > Shouldn't /usr/share part of the packages be identical, much the same > way as noarch packages must be identical? >=20 > 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 ar= ch pacakges 60af4a7c gb-task-check-noarch-i: use rpmfile(1) to check noarch cpio conte= nts 67f83c43 gb-task-check-noarch-i: use ls again 17d6d4ea gb-task-check-noarch, gb-task-check-noarch-i: factored from gb-ta= sk-check-build-i Examples. 1) Cannot package static binary into noarch package. E.g. cannot make cpio-static noarch. [at@people 17774]$ PATH=3D~/git.alt/girar-builder:$PATH gb-task-check-noarc= h-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, ver= sion 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 =3D 2.10-alt4 error (#1): non-identical noarch packages [at@people 17774]$=20 2) Arch packages must have identical /usr/share parts. E.g. cannot use %doc to package binary files. [at@people 17774]$ PATH=3D~/git.alt/girar-builder:$PATH gb-task-check-noarc= h-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 stri= pped /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/cTestCall= .la 100644 libtool library file =2E.. 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=3D~/git.alt/girar-builder:$PATH gb-task-check-noarc= h-i 5 error (#5): perl-Net-IP-1.25-alt2.i586.rpm should be noarch [at@people 17774]$=20 > If you don't like it, now is the right time to have your say. --lHNupHuuosULgVTo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkswfeQACgkQfBKgtDjnu0YdPwCfTepz1X6O9N+HeY81zFg5TqNc /rYAnRFGqGfeZCSXef2bsT4GZDIrUsdA =SOuy -----END PGP SIGNATURE----- --lHNupHuuosULgVTo--