From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 13 Aug 2007 14:03:43 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20070813100343.GC6933@solemn.turbinal> Mail-Followup-To: ALT Devel discussion list References: <20070811160656.5B5388E80D5@ssh.git.local.altlinux.org> <20070811161324.GB27837@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3siQDZowHQqNOShm" Content-Disposition: inline In-Reply-To: <20070811161324.GB27837@basalt.office.altlinux.org> Subject: Re: [devel] [git update] packages/apt: heads/master X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2007 09:58:32 -0000 Archived-At: List-Archive: List-Post: --3siQDZowHQqNOShm Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 11, 2007 at 08:13:24PM +0400, Dmitry V. Levin wrote: > > Changelog since `0.5.15lorg2-alt12' follows: > > commit 30e27b0f1c74b4f67354a6035fae3e210131bca1 > > Author: Alexey Tourbin > > Date: Sat Aug 11 20:01:05 2007 +0400 > >=20 > > apt-0.5.15lorg2-alt-genpkglist-reqfiles.patch > > =20 > > genpkglist strips file lists by default (without --bloat option). > > It keeps only some "useful files" by using a few ad hoc patterns. > > =20 > > This can break file-level dependencies. Consider pkgA requires > > /usr/lib/foo1/bar, and pkgB owns this file without explicitly > > providing it. Now if genpkglist strips /usr/lib/foo1/bar > > from pkgB file list, this is going to be an unmet dependency. > > =20 > > This patch changes genpkglist behaviour, so that, when genpkglist > > is invoked without --bloat option, it first finds all file-level > > dependencies (something like "rpm -qaR |grep ^/"). This requires > > a separate pass. The list of file-level dependencies is saved into > > "reqfiles" global variable. And on the second (normal) pass, the > > function usefulFile() is modified to check the "reqfiles" variable; > > that is, it should keep a file in the file list if it's been requir= ed > > by some package in the repo. >=20 > =F1 =CE=C5 =D0=CF=CE=D1=CC, =DC=D4=C1 =C9=CE=C6=CF=D2=CD=C1=C3=C9=D1 =CB= =C5=DB=C9=D2=D5=C5=D4=D3=D1 =C9=CC=C9 =CB=C1=D6=C4=D9=CA =DA=C1=D0=D5=D3=CB= genpkglist =C2=D5=C4=C5=D4 > =C4=C1=CD=D0=C9=D4=D8 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9 =D7=D3=C5=C8 =D0= =C1=CB=C5=D4=CF=D7? =FC=D4=C1 =C9=CE=C6=CF=D2=CD=C1=C3=C9=D1 =CB=C5=DB=C9=D2=D5=C5=D4=D3=D1, = =C1 =CB=C1=D6=C4=D9=CA =DA=C1=D0=D5=D3=CB genpkglist =C2=D5=C4=C5=D4 =C4=C1= =CD=D0=C9=D4=D8 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9 =D7=D3=C5=C8 =D0=C1=CB=C5=D4=CF=D7. :) =F3=D5=D4=D8 =D7 =D4=CF=CD, =DE=D4=CF =D7 =D3=D4=C1=D2=CF=CD =D7=C1=D2=C9= =C1=CE=D4=C5 genpkglist =C2=C5=DA =CF=D0=C3=C9=C9 --bloat =D3=CF=C8=D2=C1= =CE=D1=C5=D4 =D0=D5=D4=C9 =D7 =C8=C5=C4=C5=D2=C5 (DIRNAMES, BASENAMES =C9 DIRINDEXES) = =CC=C9=DB=D8 =DE=C1=D3=D4=C9=DE=CE=CF, =D0=CF =DB=C1=C2=CC=CF=CE=C1=CD usefulFile(). =F4=C5=D0=C5=D2=D8 =C2=D5=C4=C5=D4 = =D2=C1=C2=CF=D4=C1=D4=D8 =D7 =C4=D7=C1 =D0=D2=CF=C8=CF=C4=C1: =D0=C5=D2=D7= =D9=CA =D0=D2=C8=CF=C4 -- =C4=C1=CD=D0=C9=D4 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9 req= uires =C9 =D3=CF=C8=D2=C1=CE=D1=C5=D4 "file-level dependencies"; =CE=C1 =D7=D4=CF=D2=CF=CD (=CF=C2=D9=DE=CE=CF=CD) =D0=D2=CF= =C8=CF=C4=C5 =D7 usefulFile(), =CB=D2=CF=CD=C5 =DB=C1=C2=CC=CF=CE=CF=D7, =D0=D2=CF=D7=C5=D2=D1=C5=D4=D3=D1 =D4=C1=CB=D6=C5= =D3=D0=C9=D3=CF=CB file-level dependencies. =E5=D3=CC=C9 =D7=CF=D0=D2=CF=D3 =D0=CF =D3=CB=CF=D2=CF=D3=D4=C9 =D2=C1=C2= =CF=D4=D9, =D4=CF =D0=CF=D0=D2=CF=C2=D5=CA =D3 =CF=D0=C3=C9=C5=CA --progres= s. =EE=CF =DC=D4=CF =CF=DE=C5=CE=D8 =DA=C1=D7=C9=D3=C9=D4 =CF=D4 =D2=C1=C2=CF= =D4=D9 =C2=D5=C6=C5=D2=CE=CF=C7=CF =CB=C5=DB=C1. > > (Unfortunately, this patch does not solve all of the problems > > I want it to solve; we have separate repos for i586 and noarch -- > > inter-repo file-level dependencies cannot be resolved this way.) > =F4=CF=C7=C4=C1 =DA=C1=DE=C5=CD =DC=D4=CF =C9=DA=CD=C5=CE=C5=CE=C9=C5? =F0=CF=D4=CF=CD=D5 =DE=D4=CF =DC=D4=CF =D0=D2=C1=D7=C9=CC=D8=CE=CF. =E5=D3= =CC=C9 =D5=D6 =C9 =CF=C2=D2=C5=DA=C1=D4=D8 =C6=C1=CA=CC=CF=D7=D9=C5 =D3=D0= =C9=D3=CB=C9, =D4=CF =CE=D5=D6=CE=CF =DC=D4=CF =C4=C5=CC=C1=D4=D8 =D3 =D5=CD=CF=CD. =EF=D0=D4=C9=CD=C9=DA=C1=C3= =C9=D1, =CB=CF=D4=CF=D2=C1=D1 =C4=C1=A3=D4 unmet'=D9, =DC=D4=CF =CE=C5=D0= =D2=C1=D7=C9=CC=D8=CE=C1=D1 =CF=D0=D4=C9=CD=C9=DA=C1=C3=C9=D1. =E4=C1=CE=CE=D9=CA =D0=C1=D4=DE =C4=C5= =CC=C1=C5=D4 =D7=D3=A3 =D7=CF=DA=CD=CF=D6=CE=CF=C5 =D3=D5=D0=D2=CF=D4=C9=D7= =CF=D0=D4=C9=CD=C9=DA=C1=C3=C9, =CB=CF=D4=CF=D2=C1=D1 =DE=D2=C5=D7=C1=D4=C1 =C1=CE=CD=C5=D4=C1=CD=C9. =EB = =D3=CF=D6=C1=CC=C5=CE=C9=C0, =DC=D4=CF=D4 =D0=C1=D4=DE =CE=C5 =CD=CF=D6=C5= =D4 =D3=C4=C5=CC=C1=D4=D8 =D4=C1=CB=D6=C5 =C9 =CE=C5=D7=CF=DA=CD=CF=D6=CE=CF=C5. =F1 =D7=CF=CF=C2=DD=C5 =D3=DE=C9=D4=C1=C0 =DE=D4=CF =C7=C5=CE=C5=D2=C9=D2= =CF=D7=C1=D4=D8 =DA=C1=D7=C5=C4=CF=CD=CF =CE=C5=DA=C1=CD=CB=CE=D5=D4=D9=C5 = =D2=C5=D0=CF=DA=C9=D4=C1=D2=C9=C9 (=CB=C1=CB i586 =C9 noarch =D5 =CE=C1=D3) =DC=D4=CF =CE=C5=D0=D2=C1=D7=C9=CC=D8=CE=CF.= =E9 =CF=C4=CE=CF=D7=D2=CD=C5=CE=CE=CF =CF=C2=D2=C5=DA=C1=D4=D8 =C6=C1=CA= =CC=CF=D7=D9=C5 =CC=C9=D3=D4=D9. --3siQDZowHQqNOShm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGwCx/fBKgtDjnu0YRAoxZAKCE92SrpfTdcL1+GdHPh1HHmxdG5wCgqLqc cGL+e00nnwG7gB+F+D/KSxc= =Kd10 -----END PGP SIGNATURE----- --3siQDZowHQqNOShm--