From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 16 Jan 2019 16:25:37 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20190116132537.GB23636@altlinux.org> References: <20190116060023.9FC269A2FBD@gyle.altlinux.org> <7456397.pxH1shzaRA@zerg.malta.altlinux.ru> <20190116093850.vocl5cx5uqcrnpyp@titan.localdomain> <20190116131503.GA23636@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GID0FwUMdk1T2AWN" Content-Disposition: inline In-Reply-To: <20190116131503.GA23636@altlinux.org> Subject: Re: [devel] hsh-rebuild --query-repackage 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: Wed, 16 Jan 2019 13:25:37 -0000 Archived-At: List-Archive: List-Post: --GID0FwUMdk1T2AWN Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 16, 2019 at 04:15:03PM +0300, Dmitry V. Levin wrote: > On Wed, Jan 16, 2019 at 01:38:50PM +0400, Ivan A. Melnikov wrote: > > On Wed, Jan 16, 2019 at 12:29:50PM +0300, Sergey V Turchin wrote: > > > On Wednesday, 16 January 2019 12:22:19 MSK Ivan Zakharyaschev wrote: > > >=20 > > > [...] > > > > =EE=C5=D4, =DC=D4=CF=D4 =CB=C1=CB-=D4=CF =D7=D9=DA=D7=C1=CE=CF %ubt= , =C1 =CE=C5 =CE=C5=CF=C2=D2=C1=C2=CF=D4=CB=CF=CA glob-=CF=D7 =D7 rpm. > > > =F7=CF=DA=CD=CF=D6=CE=CF, =D0=D2=CF=C4=CF=CC=D6=C5=CE=C9=C5 > > > https://lists.altlinux.org/pipermail/devel/2018-October/205623.html > > > =20 > > > > =E9=D3=C8=CF=C4=CE=D9=CA =D0=C1=CB=C5=D4 =C8=D2=C1=CE=C9=CC=D3=D1 = =CB=C1=CB bird-1.6.4-alt1.S1 , =C1 =D0=CF=D3=CC=C5 =CF=C2=D2=C1=C2=CF=D4=CB= =C9 =D3=D4=C1=CC > > > > =C2=C5=DA .S1. > > >=20 > > > [...] > >=20 > > =E4=C1, =DC=D4=CF =CF=CE=CF. > >=20 > > =FE=C1=D3=D4=D8 1: https://lists.altlinux.org/pipermail/devel/2018-Octo= ber/205623.html > > =FE=C1=D3=D4=D8 2: https://lists.altlinux.org/pipermail/devel/2018-Nove= mber/205788.html > > =FE=C1=D3=D4=D8 3: https://bugzilla.altlinux.org/35828 > > =FE=C1=D3=D4=D8 4: =DC=D4=CF=D4 =D4=D2=C5=C4. > >=20 > > =F4=C5=D0=C5=D2=D8 =D7=D3=C5 =D0=C1=CB=C5=D4=D9, =D3=CF=C2=D2=C1=CE=CE= =D9=C5 =D3 =D2=C5=CC=C9=DA=CF=CD, =DA=C1=CB=C1=CE=DE=C9=D7=C1=C0=DD=C9=CD= =D3=D1 =CE=C1 %ubt, > > =C4=CF =C2=C1=CE=C1 %ubt, =D7=CD=C5=D3=D4=CF =D4=CF=C7=CF, =DE=D4=CF=C2= =D9 =D0=C5=D2=C5=D3=CF=C2=C9=D2=C1=D4=D8=D3=D1 =D3 =D0=CF=D4=C5=CE=C3=C9=C1= =CC=D8=CE=CF > > =CE=C5=D0=CF=CC=CE=D9=CD =CE=C1=C2=CF=D2=CF=CD =DA=C1=D7=C9=D3=C9=CD=CF= =D3=D4=C5=CA, =CE=C5 =D0=C5=D2=C5=D3=CF=C2=C9=D2=C1=C0=D4=D3=D1. > >=20 > > =E9=CE=D4=D2=C9=C7=C1. >=20 > hsh-rebuild --query-repackage =C4=C5=CC=C1=C5=D4 =D3=CC=C5=C4=D5=C0=DD=C5= =C5: >=20 > make_srpm_from_pkgtar '"$HOME/in/nosrpm"' >=20 > # The repackaged in/nosrpm/*.(no)src.rpm is > # only used to query the build dependencies; > # the original in/srpm/*.src.rpm is used for the final rebuild. > # It may seem that if the build dependencies have shrunk > # after repackaging, then the final build could fail because > # the original srpm would list more build dependencies. > # This is not a problem, however, because rpmbuild --rebuild > # calculates correctly the new set of build deps; > # --nodeps is not needed for it to work properly. >=20 > cat >chroot/.host/query_req <<__EOF__ > #!/bin/sh -e > cd "\$HOME/in/nosrpm" > rpmquery -pR -- "\${@%.src.rpm}".*src.rpm > __EOF__ >=20 > =E4=CC=D1 =D4=CF=C7=CF, =DE=D4=CF=C2=D9 =D7 =DC=D4=CF=CD =CB=CF=C4=C5 =DA= =C1=CD=C5=CE=C9=D4=D8 =DC=D4=D5 =D6=A3=D3=D4=CB=D5=C0 =CB=CF=CE=D3=D4=D2=D5= =CB=C3=C9=C0 > =CE=C1 =DE=D4=CF-=D4=CF =CD=C5=CE=C5=C5 =D6=C5=D3=D4=CB=CF=C5, =CE=C1=D0= =D2=C9=CD=C5=D2, *src.rpm, =CE=C1=C4=CF =CF=DE=C9=DD=C1=D4=D8 > "$HOME/in/nosrpm" =CB=C1=D6=C4=D9=CA =D2=C1=DA =D0=C5=D2=C5=C4 =DA=C1=D0= =CF=CC=CE=C5=CE=C9=C5=CD. =EB=C1=CB =C4=D5=CD=C1=C5=D4=C5? =F0=CF=D3=CB=CF=CC=D8=CB=D5 =D0=C5=D2=C5=C4 make_srpm_from_pkgtar =C5=D3=D4= =D8 =D7=D9=DA=CF=D7 install_source_package (=CB=CF=D4=CF=D2=D9=CA =C4=C5=CC=C1=C5=D4 =C9=CD=C5=CE=CE=CF =DC=D4=CF -- = =D5=C4=C1=CC=D1=C5=D4 $HOME/in), =C1 =D3=C1=CD make_srpm_from_pkgtar =D3=D4=D2=C1=C8=D5=C5=D4=D3=D1 =CF=D4 =CF=DB=C9=C2=CB= =C9 =D3 =D0=CF=CD=CF=DD=D8=C0 mkdir $HOME/in/nosrpm (=C2=C5=DA -p), =D4=CF =D5=D3=CC=CF=D7=C9=C5 =D7=D9=D0=CF=CC=CE=C5=CE=CF = =C9 =DC=D4=CF=D4 =D6=A3=D3=D4=CB=C9=CA =DB=C1=C2=CC=CF=CE =D0=CF=C9=D3=CB=C1 =C4=C5=CA=D3=D4=D7=C9=D4=C5=CC=D8=CE=CF =CD=CF=D6=CE=CF =CF=D3=CC=C1=C2=C9= =D4=D8. --=20 ldv --GID0FwUMdk1T2AWN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJcPzDRAAoJEAVFT+BVnCUIBOcQAPjWdkHxBJTfV4L9nZ9tMcr8 3NElUKB7F5e9TCTD7weVaV7oL+OMbqlBwluX2DH+3sqBhoTez99Md7iCR9aaE22O q85ChfNRk1fqXQHEUgDKgT6J3iFRccobf4ZCK0S4UIWS4tmGqtoPCKpGABqrcjMs mUQW5IEI0wtKNzkQxV4J7iKka6qkYCIhCP7Y1dyIQwR6dCwBFzsPDouIiKR6aqa4 MMAfXDeJXTp9G5BockFy0QqL8JRtlmpFTiCX6CM3lkWZsJLHOizg+DALWD69jchK 4krUOgyWiAiK1MtWBs7xHwIIlkxwr9MddwGSBOXwfI13SvSHCUkW75Xidr5K0k31 0xA4CWDmfb1ZgfhT+U+og+xBakAeljpvqkNTRT2jxnOfreENE953GxlzG9tK/CRe sEBiu6R2Y/hLeWYc34YfsC/h4tSmNUQvjB+wC14p+/29vGd0W5TQWf2Ih3v7ZpL/ 9qnKw1IXdaPh5k2SNEksKoNG6ZZDgFRYPiWSAPwb998PWZOcZdW0W+d1422x39NC w3e1kCH9dxzGIUH8kFYl26e81jDvOTU6IzZR64ml+KTMX0cxzT2TVoMCQQC3YDH2 aT+X129B84kegMNzp1IhD/B0+z3DgOdCuq1H+pypjch/a40U2lgXfaWnEvrZieFM vq5BUFOKe/u/dGPGAywQ =yXgr -----END PGP SIGNATURE----- --GID0FwUMdk1T2AWN--