From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 25 Mar 2010 13:37:39 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20100325103738.GA22497@wo.int.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20100324232930.GA21626@wo.int.altlinux.org> <20100325071604.GK8193@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <20100325071604.GK8193@altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] Q: rpmbuild: hardlink identical files together by default 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, 25 Mar 2010 10:37:39 -0000 Archived-At: List-Archive: List-Post: --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 25, 2010 at 10:16:04AM +0300, Alexey Tourbin wrote: > On Thu, Mar 25, 2010 at 02:29:31AM +0300, Dmitry V. Levin wrote: > > Hi, > >=20 > > =E4=CF=C2=C1=D7=CC=D1=D1 =D3=C5=C7=CF=C4=CE=D1 =D7 =CF=DE=C5=D2=C5=C4= =CE=CF=CA =D3=D7=CF=CA =D0=C1=CB=C5=D4 =D3=CC=C5=C4=D5=C0=DD=C9=C5 =D3=D4= =D2=CF=CB=C9, > > # Hardlink identical files together. > > %define __spec_install_custom_post hardlink -v %buildroot >=20 > Is there an option like "hardlink only in the same dir"? No, but there are methods like "find -type d | xargs -rn1" and "find %buildroot -mindepth 3 -maxdepth 3 -type d | xargs -r". > > =D7 =CF=DE=C5=D2=C5=C4=CE=CF=CA =D2=C1=DA =D0=CF=C4=D5=CD=C1=CC =CF =D4= =CF=CD, =DE=D4=CF =C8=CF=D2=CF=DB=CF =C2=D9 =D2=C1=D3=D0=D2=CF=D3=D4=D2=C1= =CE=C9=D4=D8 =DC=D4=CF=D4 =CF=D0=D9=D4 > > =D7 =C2=CF=CC=C5=C5 =CF=C2=DD=C5=CA =C6=CF=D2=CD=C5 (=D3 =CD=C1=CB=D2= =CF=D3=C1=CD=C9 =D7=C9=C4=C1 %set_hardlink_path) =D0=CF =D5=CD=CF=CC=DE=C1= =CE=C9=C0 > > =CE=C1 =D7=D3=C5 =D0=C1=CB=C5=D4=D9. > >=20 > > =FE=D4=CF =D3=CB=C1=D6=C5=D4=C5? >=20 > This dependes on what you're trying to save, which is either internet > traffic or disk space. Saving internet traffic is already easier due > to the xz compression (which can handle similar files very well). And > disks are nowadays 1Tb+. Not on laptops, though. SSD devices aren't so large yet. --=20 ldv --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkurPPIACgkQfKvmrJ41Nh6zRwCgtT3drsVL2SqELTAxOnWB8f/z 4hMAnjMMQ3f0h40SCpQpuvth+0+p5BQz =kyGc -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--