ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Q: rpmbuild: hardlink identical files together by default
Date: Thu, 25 Mar 2010 13:37:39 +0300
Message-ID: <20100325103738.GA22497@wo.int.altlinux.org> (raw)
In-Reply-To: <20100325071604.GK8193@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

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,
> > 
> > Добавляя сегодня в очередной свой пакет следующие строки,
> > # Hardlink identical files together.
> > %define __spec_install_custom_post hardlink -v %buildroot
> 
> 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".

> > в очередной раз подумал о том, что хорошо бы распространить этот опыт
> > в более общей форме (с макросами вида %set_hardlink_path) по умолчанию
> > на все пакеты.
> > 
> > Что скажете?
> 
> 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.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

      parent reply	other threads:[~2010-03-25 10:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-24 23:29 Dmitry V. Levin
2010-03-25  3:51 ` Slava Semushin
2010-03-25  4:25 ` Денис Смирнов
2010-03-25  8:56   ` Afanasov Dmitry
2010-03-25 11:19     ` Денис Смирнов
2010-03-25 11:41       ` Terechkov Evgenii
2010-03-25  7:16 ` Alexey Tourbin
2010-03-25  8:22   ` Slava Semushin
2010-03-25  8:30     ` Sergei Epiphanov
2010-03-27 12:23       ` [devel] [JT] " Michael Shigorin
2010-03-27 13:54         ` Ivan A. Melnikov
2010-03-27 14:16           ` Денис Смирнов
2010-03-27 20:20         ` Sergey Vlasov
2010-03-25 10:37   ` Dmitry V. Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100325103738.GA22497@wo.int.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git