From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, SPF_FAIL, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=altlinux.org; s=dkim; h=Subject:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=S+nPjM+FwvkZTS3XPllZjBgSL4bCdYRBvCM7j1l+SxI=; b=Qk12XH181z3dnmMlgZFw5cynqp doDnM5wMyqGoqBaomXvJ+wuySHwujXuoefcw3E/zN7xDom4w6/6LHJ+eKhRGytuNAiSKRU55i9TyV DD0xRfiRpzGCYpYmBd2Ko2dL1QmVWOGcnwAcdqfTquGdcQU1rzHoqGRfu6u7Ms1939G846ADT/a+h HC7ITRXgm8/rsYSL7Z4OsIB2H9IqadSJhYpzJSdSxq/x+nXsvdAPhlsmG05I/HrCzhvAYWSrcsos5 4zfFYJzi8G1S7SAN/06vO2MDopimaymCLAZqynMW4H6D2Nz/ui5T0lGlMkBYahA/hFK4PrFQ+i/f8 Olgtms/A==; Date: Thu, 11 Jul 2024 14:22:45 +0300 From: Arseny Maslennikov To: ALT Linux Team development discussions Message-ID: References: <202405141530.29200.asy@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sV8gq92m3qkXokDV" Content-Disposition: inline In-Reply-To: OpenPGP: url=http://grep.cs.msu.ru/~ar/pgp-key.asc X-SA-Exim-Connect-IP: 37.110.126.107 X-SA-Exim-Mail-From: arseny@altlinux.org X-SA-Exim-Version: 4.2.1 X-SA-Exim-Scanned: No (on mail.cs.msu.ru); Unknown failure Subject: Re: [devel] =?utf-8?b?0JLQvdC10LfQsNC/0L3Ri9C1ICBwb3N0LWluc3RhbGwg?= =?utf-8?q?unowned_files?= 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: Thu, 11 Jul 2024 11:23:04 -0000 Archived-At: List-Archive: List-Post: --sV8gq92m3qkXokDV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 14, 2024 at 02:48:53PM +0300, Arseny Maslennikov wrote: > Date: Wed, 1 May 2024 23:45:47 +0300 > Message-ID: <20240501204548.25091-1-arseny@altlinux.org> > Subject: [RFC PATCH girar.git] remote-check-install: temporarily fix unow= ned files reports >=20 > On merged-usr systems for each file path accessible under both /lib and > /usr/lib, etc. `find /*` automatically optimizes away the /lib one. Many > rpm packages contain files under /lib, though, and are reported by > rpmquery as such, so the real file under /usr/lib is considered > "unprovided". >=20 > For each path in the output of `(rpmquery -al; rpmquery -a --provides)` > under a legacy directory alias, add a matching path under the prefix. > The transformation will look like this: > % sed 's!^/\(bin\|lib\|lib32\|lib64\|libx32\|sbin\).\+!/usr&\n&!' <<____ > /sbin/chroot > /bin/bash > ____ > /usr/sbin/chroot > /sbin/chroot > /usr/bin/bash > /bin/bash >=20 > This way the new files under the prefix can never show up. >=20 > --- > gb/remote/gb-remote-check-install | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/gb/remote/gb-remote-check-install b/gb/remote/gb-remote-chec= k-install > index 5cac126..ac09c4f 100755 > --- a/gb/remote/gb-remote-check-install > +++ b/gb/remote/gb-remote-check-install > @@ -189,7 +189,10 @@ sort -u -o instprov{,} > hsh-run --rooter -- \ > rpmquery -al >instfiles 2>>warnings > sed '/^(contains no files)$/d' -i warnings > +# Temporary hack: for each entry in legacy aliased dirs, > +# add its real location. > +sed -i 's!^/\(bin\|lib\|lib32\|lib64\|libx32\|sbin\).\+!/usr&\n&!' instf= iles > sort -u -o instfiles{,} > =20 > sort -u instprov instfiles >instlist > comm -23 new-files instlist >unprovided > --=20 > 2.42.1 =D0=94=D0=BB=D1=8F unmerged-usr =D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82= =D0=BE=D1=80=D0=B8=D0=B5=D0=B2 =D1=82=D0=B0=D0=BA=D0=BE=D0=B5 =D1=80=D0=B5= =D1=88=D0=B5=D0=BD=D0=B8=D0=B5 =D0=B2 =D1=82=D0=B5=D0=BE=D1=80=D0=B8=D0=B8 = =D1=82=D0=BE=D0=B6=D0=B5 =D0=BF=D0=BE=D0=B4=D1=85=D0=BE=D0=B4=D0=B8=D1=82, =D0=BF=D0=BE=D1=82=D0=BE=D0=BC=D1=83 =D1=87=D1=82=D0=BE, =D0=BA=D0=B0=D0=BA= =D0=B2=D0=B8=D0=B4=D0=BD=D0=BE =D0=B8=D0=B7 =D1=82=D0=B5=D0=BA=D1=81=D1=82= =D0=B0 gb-remote-check-install =D0=B4=D0=B0=D0=BB=D0=B5=D0=B5, =D1=81=D0=BF= =D0=B8=D1=81=D0=BE=D0=BA post-install unowned files =D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B0=D0=B5=D1=82= =D1=81=D1=8F =D0=B8=D0=B7 =D1=84=D0=B0=D0=B9=D0=BB=D0=B0 `unprovided`, =D1= =82. =D0=B5. =D0=BD=D0=B5 =D1=81=D0=BE=D0=B4=D0=B5=D1=80=D0=B6=D0=B8=D1=82 =D1=84=D0=B0=D0=B9=D0=BB= =D0=BE=D0=B2, =D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B=D0=B5 =D0=BD=D0=B5 =D0= =BE=D0=BA=D0=B0=D0=B7=D0=B0=D0=BB=D0=B8=D1=81=D1=8C =D1=82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1=82=D0=B8=D0=BC =D1=82=D0=B0=D0=BA=D0=B8=D1=85 =D0=B4=D0=BE=D0=BF=D1= =83=D1=89=D0=B5=D0=BD=D0=B8=D0=B9 =D0=BF=D1=80=D0=B8 =D1=84=D0=BE=D1=80=D0= =BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B8 `instlist`, =D1=82=D0=BE =D0=BC=D0=BE=D0=B6=D0=BD=D0=BE =D0=B8 =D1=83=D1=81=D0=BB=D0=BE=D0=B6=D0=BD= =D0=B8=D1=82=D1=8C: =D0=BB=D0=B8=D0=B1=D0=BE =D0=B4=D0=B5=D1=82=D0=B5=D0=BA= =D1=82=D0=B8=D1=82=D1=8C merged-usr =D0=BE=D0=BA=D1=80=D1=83=D0=B6=D0=B5=D0= =BD=D0=B8=D0=B5, =D0=BB=D0=B8=D0=B1=D0=BE =D0=BF=D0=B5=D1=80=D0=B5=D0=B4 =D0=B2=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC =D0=BF=D0=B0= =CC=81=D1=80=D0=BD=D0=BE=D0=B3=D0=BE =D1=84=D0=B0=D0=B9=D0=BB=D0=B0 =D0=B2 = `instlist` =D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D1=8F=D1=82=D1=8C =D0=B5=D0= =B3=D0=BE =D1=84=D0=B0=D0=BA=D1=82=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0= =B5 =D0=BD=D0=B0=D0=BB=D0=B8=D1=87=D0=B8=D0=B5, =D0=BB=D0=B8=D0=B1=D0=BE =D0=B5=D1=89=D1=91 =D1=87=D1=82=D0=BE-=D1=82=D0=BE. --sV8gq92m3qkXokDV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE56JD3UKTLEu/ddrm9dQjyAYL01AFAmaPwIUACgkQ9dQjyAYL 01CeqhAAnjo0jKdOOo5UvjDn9cUhxycZlzV6b2rgAYqfjo0zMdBPcbjKpBGe+nZo b8jowIBW/LC3cwdVCygh9z733Cu+Krwosv3oSWRYlciIiLMm7nwwOJsbHVecCo9z gmuDZnxhFdsPbPa3TZrIecyJC7btgM2MDbB0hzqHnnwop6/Nd/nyD8uNq/x+BsEk LZTp2qt+WI3qitW9y7X1W0axh1l+eT7Gp7mPj//AunShtZKWWyNviECjkeSItUSl z0dRASbegas15eLSU2O86sD+NgZ0qdn1pKwDgIOW5UoBUcKJDOGerYwy+KM648c0 QjWUZXyo6jK050uSxXmpauGxvmwQEIZ/o4XfP3dQQsAfN8s+s2w8rwzsgJ6yxGuB QrDQc9pYCeVLEBTtTDO3kHdFDU1l8FS2ZS7G++YMRz4Bsrpuf6EXWQKzJETXvktG S+P2G/cBTnckoRrErP22i4xtYpsM5CbPchuFbwJgpazPBjiTIqjjjynOYLSPhHke CwdmHiDxdwzwGqi8VpIxSx8iwt6G+uGXwg6096eAkqdsihald16iA2pb0AcOypa2 KcFAOD6M6q7X5IXSZtdKEWi3+PgcSZxyQmOekIHTW5c5zZQTrrU4cgoiJ5UBF3YH z/o6Je8y44JkCfgBsdCTn/BynUu09nVc+a4BAxyjEHd4FwYnNO0= =FzFW -----END PGP SIGNATURE----- --sV8gq92m3qkXokDV--